_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c160200
train
// Shutdown implements the DiskBlockCache interface for DiskBlockCacheLocal.
{ "resource": "" }
c160201
train
// Returns the string that might be the token, and whether the content looked like a token paste.
{ "resource": "" }
c160202
train
// ParseIKeyFromString safely creates SeitanIKey value from // plaintext string. Only format is checked - any 18-character token // with '+' character at position 5 can be "Invite Key". Alphabet is // not checked, as it is only a hint for token generation and it can // change over time, but we assume that token length ...
{ "resource": "" }
c160203
train
// DumpExtraMetadata returns a detailed dump of the given // ExtraMetadata's contents.
{ "resource": "" }
c160204
train
// verifyMemberRoleInTeam checks if role give in MemberInfo matches // what team chain says. Nothing is checked when MemberInfo's role is // NONE, in this context it means that user has implied membership in // the team and no role given in sigchain.
{ "resource": "" }
c160205
train
// IDFromString creates a ID from the given string. If the // returned error is nil, the returned ID is valid.
{ "resource": "" }
c160206
train
// IDFromBytes creates a ID from the given bytes. If the returned error is nil, // the returned ID is valid.
{ "resource": "" }
c160207
train
// MarshalBinary implements the encoding.BinaryMarshaler interface for // ID. Returns an error if the ID is invalid and not the zero // ID.
{ "resource": "" }
c160208
train
// UnmarshalBinary implements the encoding.BinaryUnmarshaler interface // for ID. Returns an error if the given byte array is non-empty and // the ID is invalid.
{ "resource": "" }
c160209
train
// MakeTemporaryID generates a temporary block ID using a CSPRNG. This // is used for indirect blocks before they're committed to the server.
{ "resource": "" }
c160210
train
// MakePermanentID computes the permanent ID of a block given its // encoded and encrypted contents.
{ "resource": "" }
c160211
train
// VerifyID verifies that the given block ID is the permanent block ID // for the given encoded and encrypted data.
{ "resource": "" }
c160212
train
// FakeID returns an ID derived from the given byte, suitable for // testing.
{ "resource": "" }
c160213
train
// FakeIDAdd returns an ID derived from the given ID and the given // byte, suitable for testing.
{ "resource": "" }
c160214
train
// Get the user's role right after link at seqno was processed.
{ "resource": "" }
c160215
train
// Find a point where the role is taken away.
{ "resource": "" }
c160216
train
// AssertWasRoleOrAboveAt asserts that user `uv` had `role` or above on the // team just after the given SigChainLocation `scl`. // We start at the point given, go backwards until we find a promotion, // then go forwards to make sure there wasn't a demotion before the specified time. // If there was, return a Permissio...
{ "resource": "" }
c160217
train
// Whether the link has been processed and is not stubbed.
{ "resource": "" }
c160218
train
// Inform the UserLog of a user's role. // Mutates the UserLog. // Must be called with seqno's and events in correct order. // Idempotent if called correctly.
{ "resource": "" }
c160219
train
// Only call this on a Team that has been loaded with NeedAdmin. // Otherwise, you might get incoherent answers due to links that // were stubbed over the life of the cached object. // // For subteams that you were removed from, this list may // still include them because your removal was stubbed. // The list will not ...
{ "resource": "" }
c160220
train
// Check that a subteam rename occurred just so. // That the subteam `subteamID` got a new name `newName` at exactly `seqno` in this, // the parent, chain. // Note this only checks against the last part of `newName` because mid-team renames are such a pain. // This is currently linear in the number of times that subtea...
{ "resource": "" }
c160221
train
// InflateLink adds the full inner link for a link that has already been added in stubbed form. // `state` is moved into this function. There must exist no live references into it from now on.
{ "resource": "" }
c160222
train
// Add a chain link to the end. // `prevState` is moved into this function. There must exist no live references into it from now on. // `signer` may be nil iff link is stubbed. // If `prevState` is nil this is the first chain link.
{ "resource": "" }
c160223
train
// Whether the roleUpdates would demote any current owner to a lesser role.
{ "resource": "" }
c160224
train
// Update `userLog` with the membership in roleUpdates. // The `NONE` list removes users. // The other lists add users.
{ "resource": "" }
c160225
train
// Check that the subteam name is valid and kind of is a child of this chain. // Returns the parsed subteam name.
{ "resource": "" }
c160226
train
// NewUserKeyAPIer returns a UserKeyAPIer implementation.
{ "resource": "" }
c160227
train
// NewOnDemandStorer constructs an on-demand storage layer on top of // an existing `Storer`.
{ "resource": "" }
c160228
train
// EncodedObject implements the storage.Storer interface for OnDemandStorer.
{ "resource": "" }
c160229
train
// DeltaObject implements the storer.DeltaObjectStorer interface for // OnDemandStorer.
{ "resource": "" }
c160230
train
// Start the timer running, if it's not already started.
{ "resource": "" }
c160231
train
// Stop the timer; panic if it hasn't been previously started. Return // the total duration spent in the timer.
{ "resource": "" }
c160232
train
// Report stops and resets the timer, then logs to Info what the duration was.
{ "resource": "" }
c160233
train
// NewTimerSet looks into the given context for configuration information // about how to set up timers. It then returns the corresponding TimerSet.
{ "resource": "" }
c160234
train
// Start allocates and starts a new timer if the passed TimerSelector // is currently enabled. Otherwise, it just returns a Dummy timer.
{ "resource": "" }
c160235
train
// Whether a type is for team sigchains. // Also the list of which types are supported by this client.
{ "resource": "" }
c160236
train
// Whether the type can be stubbed for a team member with role
{ "resource": "" }
c160237
train
// NextUpdate returns a channel that triggers when the app state changes
{ "resource": "" }
c160238
train
// Update updates the current app state, and notifies any waiting calls from NextUpdate
{ "resource": "" }
c160239
train
// State returns the current app state
{ "resource": "" }
c160240
train
// NewBlockOpsConstrained constructs a new BlockOpsConstrained.
{ "resource": "" }
c160241
train
// BinPath returns path to the keybase executable. If the executable path is a // symlink, the target path is returned.
{ "resource": "" }
c160242
train
// Open implements the billy.Filesystem interface for Browser.
{ "resource": "" }
c160243
train
// OpenFile implements the billy.Filesystem interface for Browser.
{ "resource": "" }
c160244
train
// Lstat implements the billy.Filesystem interface for Browser.
{ "resource": "" }
c160245
train
// Stat implements the billy.Filesystem interface for Browser.
{ "resource": "" }
c160246
train
// Join implements the billy.Filesystem interface for Browser.
{ "resource": "" }
c160247
train
// ReadDir implements the billy.Filesystem interface for Browser.
{ "resource": "" }
c160248
train
// Readlink implements the billy.Filesystem interface for Browser.
{ "resource": "" }
c160249
train
// Chroot implements the billy.Filesystem interface for Browser.
{ "resource": "" }
c160250
train
// MkdirAll implements the billy.Filesystem interface for Browser.
{ "resource": "" }
c160251
train
// Symlink implements the billy.Filesystem interface for Browser.
{ "resource": "" }
c160252
train
// NewLoginWithPaperKey creates a LoginWithPaperKey engine. // Uses the paperkey to log in and unlock LKS.
{ "resource": "" }
c160253
train
// FavoriteDelete implements KeybaseDaemon for KeybaseDaemonLocal.
{ "resource": "" }
c160254
train
// FavoriteList implements KeybaseDaemon for KeybaseDaemonLocal.
{ "resource": "" }
c160255
train
// EncryptFavorites implements KeybaseService for KeybaseDaemonLocal
{ "resource": "" }
c160256
train
// DecryptFavorites implements KeybaseService for KeybaseDaemonLocal
{ "resource": "" }
c160257
train
// NotifyOnlineStatusChanged implements KeybaseDaemon for KeybaseDeamonLocal.
{ "resource": "" }
c160258
train
// Notify implements KeybaseDaemon for KeybaseDeamonLocal.
{ "resource": "" }
c160259
train
// NotifyPathUpdated implements KeybaseDaemon for KeybaseDeamonLocal.
{ "resource": "" }
c160260
train
// NotifySyncStatus implements KeybaseDaemon for KeybaseDeamonLocal.
{ "resource": "" }
c160261
train
// NotifyOverallSyncStatus implements KeybaseDaemon for KeybaseDeamonLocal.
{ "resource": "" }
c160262
train
// PutGitMetadata implements the KeybaseService interface for // KeybaseDaemonLocal.
{ "resource": "" }
c160263
train
// FindNextMerkleRootAfterTeamRemoval finds the first Merkle root that contains the user being // removed from the team at that given seqno in the team's chain. You should pass in a previous // Merkle root as a starting point for the binary search.
{ "resource": "" }
c160264
train
// ProfileTeamLoad loads a team and then throws it on the ground, for the purposes of profiling // the team load machinery.
{ "resource": "" }
c160265
train
// Gets a TeamID from a team name string. Returns an error if the // current user can't read the team.
{ "resource": "" }
c160266
train
// List files in a path. Implemented by KBFS service.
{ "resource": "" }
c160267
train
// resetAuth is called to reset the authorization on a BlockServer // connection.
{ "resource": "" }
c160268
train
// NewBlockServerRemote constructs a new BlockServerRemote for the // given address.
{ "resource": "" }
c160269
train
// Get implements the BlockServer interface for BlockServerRemote.
{ "resource": "" }
c160270
train
// GetEncodedSize implements the BlockServer interface for BlockServerRemote.
{ "resource": "" }
c160271
train
// Put implements the BlockServer interface for BlockServerRemote.
{ "resource": "" }
c160272
train
// AddBlockReference implements the BlockServer interface for BlockServerRemote
{ "resource": "" }
c160273
train
// RemoveBlockReferences implements the BlockServer interface for // BlockServerRemote
{ "resource": "" }
c160274
train
// ArchiveBlockReferences implements the BlockServer interface for // BlockServerRemote
{ "resource": "" }
c160275
train
// GetLiveBlockReferences implements the BlockServer interface for // BlockServerRemote.
{ "resource": "" }
c160276
train
// IsUnflushed implements the BlockServer interface for BlockServerRemote.
{ "resource": "" }
c160277
train
// GetUserQuotaInfo implements the BlockServer interface for BlockServerRemote
{ "resource": "" }
c160278
train
// Shutdown implements the BlockServer interface for BlockServerRemote.
{ "resource": "" }
c160279
train
// NewPGPDecrypt creates a PGPDecrypt engine.
{ "resource": "" }
c160280
train
// MakeID creates a new ID from the given RootMetadata object.
{ "resource": "" }
c160281
train
// AutoInstall installs auto start on unix
{ "resource": "" }
c160282
train
// KBFSBinPath returns the path to the KBFS executable
{ "resource": "" }
c160283
train
// NewPGPEncrypt creates a PGPEncrypt engine.
{ "resource": "" }
c160284
train
// Add adds bundle to the keyset. If a key already exists, it // will be ignored.
{ "resource": "" }
c160285
train
// Sorted returns the unique keys in insertion order.
{ "resource": "" }
c160286
train
// Invalidate marks the session as invalid and posts a logout // notification.
{ "resource": "" }
c160287
train
// MakeNaclSigningKeyPairFromSecret makes a signing key pair given a // secret. Of course, the security of depends entirely on the // randomness of the bytes in the secret.
{ "resource": "" }
c160288
train
// MakeNaclDHKeyPairFromSecret makes a DH key pair given a secret. Of // course, the security of depends entirely on the randomness of the // bytes in the secret.
{ "resource": "" }
c160289
train
// EncryptToString fails for this type of key.
{ "resource": "" }
c160290
train
// Encrypt a message to the key `k` from the given `sender`. If sender is nil, an ephemeral // keypair will be invented
{ "resource": "" }
c160291
train
// EncryptToString encrypts the plaintext using DiffieHelman; the this object is // the receiver, and the passed sender is optional. If not provided, we'll make // up an ephemeral key.
{ "resource": "" }
c160292
train
// DecryptFromString decrypts the output of EncryptToString above, // and returns the kbcrypto.KID of the other end.
{ "resource": "" }
c160293
train
// In some flows the user will get
{ "resource": "" }
c160294
train
// PopulateArgs populates the given HTTP args with parameters in this PDPKA package. // Right now that includes v4 and v5 of the PDPKA login system.
{ "resource": "" }
c160295
train
// Note that since diskJournal.move takes a pointer receiver, so must // this.
{ "resource": "" }
c160296
train
// UninstallKBNM removes NativeMessaging whitelisting for KBNM.
{ "resource": "" }
c160297
train
// InstallKBNM writes NativeMessaging whitelisting for KBNM.
{ "resource": "" }
c160298
train
// ResetSocket clears and returns a new socket
{ "resource": "" }
c160299
train
// NewWalletState creates a wallet state with a remoter that will be // used for any network calls.
{ "resource": "" }