_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c159300 | train | // FinishSyncLocked finishes the sync process for a file, given the
// state from StartSync. Specifically, it re-applies any writes that
// happened since the call to StartSync. | {
"resource": ""
} | ||
c159301 | train | // notifyErrListeners notifies any write operations that are blocked
// on a file so that they can learn about unrecoverable sync errors. | {
"resource": ""
} | ||
c159302 | train | // searchForNodesInDirLocked recursively tries to find a path, and
// ultimately a node, to ptr, given the set of pointers that were
// updated in a particular operation. The keys in nodeMap make up the
// set of BlockPointers that are being searched for, and nodeMap is
// updated in place to include the corresponding... | {
"resource": ""
} | ||
c159303 | train | // SearchForPaths is like SearchForNodes, except it returns a
// consistent view of all the paths of the searched-for pointers. | {
"resource": ""
} | ||
c159304 | train | // UpdateCachedEntryAttributesOnRemovedFile updates any cached entry
// for the given path of an unlinked file, according to the given op,
// and it makes a new dirty cache entry if one doesn't exist yet. We
// assume Sync will be called eventually on the corresponding open
// file handle, which will clear out the ent... | {
"resource": ""
} | ||
c159305 | train | // UpdatePointers updates all the pointers in the node cache
// atomically. If `afterUpdateFn` is non-nil, it's called under the
// same block lock under which the pointers were updated. | {
"resource": ""
} | ||
c159306 | train | // FastForwardAllNodes attempts to update the block pointers
// associated with nodes in the cache by searching for their paths in
// the current version of the TLF. If it can't find a corresponding
// node, it assumes it's been deleted and unlinks it. Returns the set
// of node changes that resulted. If there are n... | {
"resource": ""
} | ||
c159307 | train | // GetInvalidationChangesForNode returns the list of invalidation
// notifications for all the nodes rooted at the given node. | {
"resource": ""
} | ||
c159308 | train | // GetInvalidationChangesForAll returns the list of invalidation
// notifications for the entire TLF. | {
"resource": ""
} | ||
c159309 | train | // MarkNode marks all the blocks in the node's block tree with the
// given tag. | {
"resource": ""
} | ||
c159310 | train | // populateChainPaths updates all the paths in all the ops tracked by
// `chains`, using the main nodeCache. | {
"resource": ""
} | ||
c159311 | train | // Checks fromErr to see if it is a rekey error.
// Returns a ConversationErrorLocal if it is a rekey error.
// Returns nil otherwise. | {
"resource": ""
} | ||
c159312 | train | // str is everything after either gitPrefix or kbfsPrefix. | {
"resource": ""
} | ||
c159313 | train | // ParseRoot parses a kbp= TXT record from a domain into a Root object. | {
"resource": ""
} | ||
c159314 | train | // ResolveIDToName takes a team ID and resolves it to a name.
// It can use server-assist but always cryptographically checks the result. | {
"resource": ""
} | ||
c159315 | train | // ResolveIDToNameForceRefresh is like ResolveIDToName but forces a refresh of
// the FTL cache. | {
"resource": ""
} | ||
c159316 | train | // ResolveNameToID takes a team name and resolves it to a team ID.
// It can use server-assist but always cryptographically checks the result. | {
"resource": ""
} | ||
c159317 | train | // ResolveNameToIDForceRefresh is just like ResolveNameToID but it forces a refresh. | {
"resource": ""
} | ||
c159318 | train | // Resolve assertions in an implicit team display name and verify the result.
// Resolve an implicit team name with assertions like "alice,bob+bob@twitter#char (conflicted copy 2017-03-04 #1)"
// Into "alice,bob#char (conflicted copy 2017-03-04 #1)"
// The input can contain compound assertions, but if compound assertio... | {
"resource": ""
} | ||
c159319 | train | // preventTeamCreationOnError checks if an error coming from resolver should
// prevent us from creating a team. We don't want a team where we don't know if
// SBS user is resolvable but we just were unable to get the answer. | {
"resource": ""
} | ||
c159320 | train | // Try to resolve implicit team members.
// Modifies the arguments `resSet` and appends to `resolvedAssertions`.
// For each assertion in `sourceAssertions`, try to resolve them.
// If they resolve, add the username to `resSet` and the assertion to `resolvedAssertions`.
// If they don't resolve, add the SocialAsser... | {
"resource": ""
} | ||
c159321 | train | // Verify using Identify that a UID matches an assertion. | {
"resource": ""
} | ||
c159322 | train | // checkStubbed checks if it's OK if a link is stubbed. | {
"resource": ""
} | ||
c159323 | train | // Get the UV from a link but using server-trust and without verifying anything. | {
"resource": ""
} | ||
c159324 | train | // Verify that the user had the explicit on-chain role just before this `link`. | {
"resource": ""
} | ||
c159325 | train | // Does not return a full TeamData because it might get a subteam-reader version. | {
"resource": ""
} | ||
c159326 | train | // Verify that a user has admin permissions.
// Because this uses the proofSet, if it is called may return success and fail later. | {
"resource": ""
} | ||
c159327 | train | // Apply a new link to the sigchain state.
// `state` is moved into this function. There must exist no live references into it from now on.
// `signer` may be nil iff link is stubbed. | {
"resource": ""
} | ||
c159328 | train | // Inflate a link that was stubbed with its non-stubbed data. | {
"resource": ""
} | ||
c159329 | train | // Check that the parent-child operations appear in the parent sigchains. | {
"resource": ""
} | ||
c159330 | train | // Check all the proofs and ordering constraints in proofSet | {
"resource": ""
} | ||
c159331 | train | // AddKBFSCryptKeys mutates `state` | {
"resource": ""
} | ||
c159332 | train | // Check that the RKMs for a generation are covered for all apps. | {
"resource": ""
} | ||
c159333 | train | // Whether the snapshot has fully loaded, non-stubbed, all of the links. | {
"resource": ""
} | ||
c159334 | train | // Calculates the latest name of the team.
// The last part will be as up to date as the sigchain in state.
// The mid-team parts can be as old as the cache time, unless staleOK is false in which case they will be fetched. | {
"resource": ""
} | ||
c159335 | train | // BTC creates a BTCEngine and runs it. | {
"resource": ""
} | ||
c159336 | train | // NewNotifyCtlHandler creates a new handler for setting up notification
// channels | {
"resource": ""
} | ||
c159337 | train | // CanDeleteDirectory - return just nil because tlfs
// can always be removed from favorites. | {
"resource": ""
} | ||
c159338 | train | // Cleanup - forget references, perform deletions etc. | {
"resource": ""
} | ||
c159339 | train | // Favor apple-touch-icon over other favicons, try to get the highest
// resolution. | {
"resource": ""
} | ||
c159340 | train | // setRootMetadata sets the current head metadata for the
// corresponding folder-branch. | {
"resource": ""
} | ||
c159341 | train | // getStatus returns a FolderBranchStatus-representation of the
// current status. If blocks != nil, the paths of any unflushed files
// in the journals will be included in the status. The returned
// channel is closed whenever the status changes, except for journal
// status changes. | {
"resource": ""
} | ||
c159342 | train | // processGetBlocksTask examines the block it is passed, enqueueing any children
// in range into wp, and passing data back through results. | {
"resource": ""
} | ||
c159343 | train | // markParentsDirty caches all the blocks in `parentBlocks` as dirty,
// and returns the dirtied block pointers as well as any block infos
// with non-zero encoded sizes that will now need to be unreferenced. | {
"resource": ""
} | ||
c159344 | train | // readyHelper takes a set of paths from a root down to a child block,
// and readies all the blocks represented in those paths. If the
// caller wants leaf blocks readied, then the last element of each
// slice in `pathsFromRoot` should contain a leaf block, with a child
// index of -1. It's assumed that all slices ... | {
"resource": ""
} | ||
c159345 | train | // ready, if given an indirect top-block, readies all the dirty child
// blocks, and updates their block IDs in their parent block's list of
// indirect pointers. It returns a map pointing from the new block
// info from any readied block to its corresponding old block pointer. | {
"resource": ""
} | ||
c159346 | train | // NewRekeyRequestWithPaperPromptEvent creates a non-delayed rekey request
// Event that causes a paper prompt. | {
"resource": ""
} | ||
c159347 | train | // NewRekeyFSM creates a new rekey FSM. | {
"resource": ""
} | ||
c159348 | train | // Event implements RekeyFSM interface for rekeyFSM. | {
"resource": ""
} | ||
c159349 | train | // listenOnEvent implements RekeyFSM interface for rekeyFSM. | {
"resource": ""
} | ||
c159350 | train | // RequestRekeyAndWaitForOneFinishEvent sends a rekey request to the FSM
// associated with tlfID, and wait for exact one rekeyFinished event. This can
// be useful for waiting for a rekey result in tests.
//
// Note that the supplied ctx is injected to the rekey task, so canceling ctx
// would actually cancel the reke... | {
"resource": ""
} | ||
c159351 | train | // ToStatus implements the ExportableError interface for ServerError. | {
"resource": ""
} | ||
c159352 | train | // Error implements the Error interface for ServerError. | {
"resource": ""
} | ||
c159353 | train | // ToStatus implements the ExportableError interface for ServerErrorBadRequest. | {
"resource": ""
} | ||
c159354 | train | // Error implements the Error interface for ServerErrorConflictRevision. | {
"resource": ""
} | ||
c159355 | train | // ToStatus implements the ExportableError interface for ServerErrorConflictRevision. | {
"resource": ""
} | ||
c159356 | train | // ToStatus implements the ExportableError interface for ServerErrorConflictPrevRoot. | {
"resource": ""
} | ||
c159357 | train | // ToStatus implements the ExportableError interface for ServerErrorConflictDiskUsage. | {
"resource": ""
} | ||
c159358 | train | // ToStatus implements the ExportableError interface for ServerErrorLocked. | {
"resource": ""
} | ||
c159359 | train | // Error implements the Error interface for ServerErrorUnauthorized. | {
"resource": ""
} | ||
c159360 | train | // ToStatus implements the ExportableError interface for ServerErrorWriteAccess. | {
"resource": ""
} | ||
c159361 | train | // Error implements the Error interface for ServerErrorThrottle. | {
"resource": ""
} | ||
c159362 | train | // ToStatus implements the ExportableError interface for ServerErrorConditionFailed. | {
"resource": ""
} | ||
c159363 | train | // Error implements the Error interface for ServerErrorTooManyFoldersCreated. | {
"resource": ""
} | ||
c159364 | train | // ToStatus implements the ExportableError interface for
// ServerErrorCannotReadFinalizedTLF. | {
"resource": ""
} | ||
c159365 | train | // NewScanKeys creates a ScanKeys type. If there is a login
// session, it will load the pgp keys for that user. | {
"resource": ""
} | ||
c159366 | train | // KeysById returns the set of keys that have the given key id.
// It is only called during decryption by openpgp. | {
"resource": ""
} | ||
c159367 | train | // DecryptionKeys returns all private keys that are valid for
// decryption. It is only used if there is no key id in the
// message. | {
"resource": ""
} | ||
c159368 | train | // KeyOwner returns the owner of the keys found by ScanKeys that were
// used in KeysById or KeysByIdUsage, indexed by keyID. | {
"resource": ""
} | ||
c159369 | train | // coalesceBlocks puts the synced pgp key block and all the pgp key
// blocks in ring into s.skbs. | {
"resource": ""
} | ||
c159370 | train | // scan finds the user on the api server for the key id. Then it
// uses PGPKeyfinder to find the public pgp keys for the user. | {
"resource": ""
} | ||
c159371 | train | // apiLookup gets the username and uid from the api server for the
// key id. | {
"resource": ""
} | ||
c159372 | train | // NewCmdDeviceAdd creates a new cli.Command. | {
"resource": ""
} | ||
c159373 | train | // GetPassphrase gets the current keybase passphrase from delegated pinentry. | {
"resource": ""
} | ||
c159374 | train | // DelegateRekeyUI shouldn't be called on this object since it
// should already have a sessionID. | {
"resource": ""
} | ||
c159375 | train | // Get the single context stored in this entry. Only applicable to
// blockPutOp and addRefOp. | {
"resource": ""
} | ||
c159376 | train | // makeBlockJournal returns a new blockJournal for the given
// directory. Any existing journal entries are read. | {
"resource": ""
} | ||
c159377 | train | // putBlockData puts the given block data. If err is non-nil, putData will
// always be false. | {
"resource": ""
} | ||
c159378 | train | // appendBlock appends an entry for the previously-put block to the
// journal, and records the size for the put block. | {
"resource": ""
} | ||
c159379 | train | // removeReferences removes references for the given contexts from
// their respective IDs. | {
"resource": ""
} | ||
c159380 | train | // flushNonBPSBlockJournalEntry flushes journal entries that can't be
// parallelized via a blockPutState. | {
"resource": ""
} | ||
c159381 | train | // getDeferredRange gets the earliest and latest revision of the
// deferred GC journal. If the returned length is 0, there's no need
// for further GC. | {
"resource": ""
} | ||
c159382 | train | // clearDeferredGCRange removes the given range from the deferred
// journal. If the journal goes completely empty, it then nukes the
// journal directories. | {
"resource": ""
} | ||
c159383 | train | // List devices for the user. | {
"resource": ""
} | ||
c159384 | train | // List all devices with detailed history and status information. | {
"resource": ""
} | ||
c159385 | train | // Starts the process of adding a new device using an existing
// device. It is called on the existing device.
// This is for kex2. | {
"resource": ""
} | ||
c159386 | train | // Checks the device name format. | {
"resource": ""
} | ||
c159387 | train | // Dismisses the notifications for a new or revoked device
// assuming this is not that device. | {
"resource": ""
} | ||
c159388 | train | // Checks a given device against all of user's past devices,
// including those that predate a reset. It will also check a device name
// for proper formatting. Return null error on success, and a non-null
// error otherwise. | {
"resource": ""
} | ||
c159389 | train | // Readonly implements the Node interface for ReadonlyNode. | {
"resource": ""
} | ||
c159390 | train | // WrapChild implements the Node interface for ReadonlyNode. | {
"resource": ""
} | ||
c159391 | train | // NewDiskBlockCacheRemote creates a new remote disk cache client. | {
"resource": ""
} | ||
c159392 | train | // Get implements the DiskBlockCache interface for DiskBlockCacheRemote. | {
"resource": ""
} | ||
c159393 | train | // GetPrefetchStatus implements the DiskBlockCache interface for
// DiskBlockCacheRemote. | {
"resource": ""
} | ||
c159394 | train | // Put implements the DiskBlockCache interface for DiskBlockCacheRemote. | {
"resource": ""
} | ||
c159395 | train | // Delete implements the DiskBlockCache interface for DiskBlockCacheRemote. | {
"resource": ""
} | ||
c159396 | train | // UpdateMetadata implements the DiskBlockCache interface for
// DiskBlockCacheRemote. | {
"resource": ""
} | ||
c159397 | train | // GetLastUnrefRev implements the DiskBlockCache interface for
// DiskBlockCacheRemote. | {
"resource": ""
} | ||
c159398 | train | // DoesCacheHaveSpace implements the DiskBlockCache interface for
// DiskBlockCacheRemote. | {
"resource": ""
} | ||
c159399 | train | // Mark implements the DiskBlockCache interface for DiskBlockCacheRemote. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.