_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c161400
train
// setSigningKey acquires the write lock and sets the signing key. // The acct parameter is not used for anything except to help ensure // that this is called from inside a LogingState account request.
{ "resource": "" }
c161401
train
// setEncryptionKey acquires the write lock and sets the encryption key. // The acct parameter is not used for anything except to help ensure // that this is called from inside a LogingState account request.
{ "resource": "" }
c161402
train
// setDeviceName acquires the write lock and sets the device name. // The acct parameter is not used for anything except to help ensure // that this is called from inside a LoginState account request.
{ "resource": "" }
c161403
train
// should only called by the functions in this type, with the write lock.
{ "resource": "" }
c161404
train
// Clear acquires the write lock and resets all the fields to zero values.
{ "resource": "" }
c161405
train
// UID returns the user ID that was provided when the device keys were cached. // Safe for use by concurrent goroutines.
{ "resource": "" }
c161406
train
// Username tries to get the active user's username by looking into the current // environment and mapping an UID to a username based on our config file. It // won't work halfway through a provisioning.
{ "resource": "" }
c161407
train
// DeviceID returns the device ID that was provided when the device keys were // cached. Safe for use by concurrent goroutines.
{ "resource": "" }
c161408
train
// SigningKey returns the signing key for the active device. // Safe for use by concurrent goroutines.
{ "resource": "" }
c161409
train
// EncryptionKey returns the encryption key for the active device. // Safe for use by concurrent goroutines.
{ "resource": "" }
c161410
train
// KeyByType returns a cached key based on SecretKeyType. // Safe for use by concurrent goroutines.
{ "resource": "" }
c161411
train
// AllFields returns all the ActiveDevice fields via one lock for consistency. // Safe for use by concurrent goroutines.
{ "resource": "" }
c161412
train
// DoRUnlockedIfPossible must be called when r- or w-locked. If // r-locked, r-unlocks, runs the given function, and r-locks after // it's done. Otherwise, just runs the given function.
{ "resource": "" }
c161413
train
// markForReIdentifyIfNeeded checks whether this tlf is identified and mark // it for lazy reidentification if it exceeds time limits.
{ "resource": "" }
c161414
train
// Shutdown safely shuts down any background goroutines that may have // been launched by folderBranchOps.
{ "resource": "" }
c161415
train
// isUnmerged should not be called if mdWriterLock is already taken.
{ "resource": "" }
c161416
train
// clearConflictView tells the journal to move any pending writes elsewhere, // resets the CR counter, and resets the FBO to have a synced view of the TLF.
{ "resource": "" }
c161417
train
// getJournalPredecessorRevision returns the revision that precedes // the current journal head if journaling enabled and there are // unflushed MD updates; otherwise it returns // kbfsmd.RevisionUninitialized. If there aren't any flushed MD // revisions, it returns errNoFlushedRevisions.
{ "resource": "" }
c161418
train
// validateHeadLocked validates an untrusted head and sets it as trusted. // see headTrustedState comment for more information.
{ "resource": "" }
c161419
train
// doPartialMarkAndSweep runs a mark-and-sweep algorithm against all // the currently-synced paths, to delete any blocks not reachable from // one of these paths.
{ "resource": "" }
c161420
train
// setNewInitialHeadLocked is for when we're creating a brand-new TLF. // This is trusted.
{ "resource": "" }
c161421
train
// setInitialHeadTrustedLocked is for when the given RootMetadata // was fetched due to a user action, and will be checked against the // TLF name.
{ "resource": "" }
c161422
train
// setHeadSuccessorLocked is for when we're applying updates from the // server or when we're applying new updates we created ourselves.
{ "resource": "" }
c161423
train
// setHeadPredecessorLocked is for when we're unstaging updates.
{ "resource": "" }
c161424
train
// setHeadConflictResolvedLocked is for when we're setting the merged // update with resolved conflicts.
{ "resource": "" }
c161425
train
// getMDForRead returns an existing md for a read operation. Note that // mds will not be fetched here.
{ "resource": "" }
c161426
train
// GetTLFHandle implements the KBFSOps interface for folderBranchOps.
{ "resource": "" }
c161427
train
// getMDForWriteOrRekeyLocked can fetch MDs, identify them and // contains the fancy logic. For reading use getMDLockedForRead. // Here we actually can fetch things from the server. // rekeys are untrusted.
{ "resource": "" }
c161428
train
// getMostRecentFullyMergedMD is a helper method that returns the most // recent merged MD that has been flushed to the server. This could // be different from the current local head if journaling is on. If // the journal is on a branch, it returns an error.
{ "resource": "" }
c161429
train
// getMDForRekeyWriteLocked returns a nil `rmd` if it is a team TLF, // since that can't be rekeyed by KBFS.
{ "resource": "" }
c161430
train
// ResetRootBlock creates a new empty dir block and sets the given // metadata's root block to it.
{ "resource": "" }
c161431
train
// SetInitialHeadToNew creates a brand-new ImmutableRootMetadata // object and sets the head to that. This is trusted.
{ "resource": "" }
c161432
train
// statEntry is like Stat, but it returns a DirEntry. This is used by // tests.
{ "resource": "" }
c161433
train
// Returns true if the passed error indicates a revision conflict.
{ "resource": "" }
c161434
train
// PathType returns path type
{ "resource": "" }
c161435
train
// canonicalPath returns full canonical path for dir node and name.
{ "resource": "" }
c161436
train
// notifyAndSyncOrSignal caches an op in memory and dirties the // relevant node, and then sends a notification for it. If batching // is on, it signals the write; otherwise it syncs the change. It // should only be called as the final instruction that can fail in a // method.
{ "resource": "" }
c161437
train
// unrefEntry modifies md to unreference all relevant blocks for the // given entry.
{ "resource": "" }
c161438
train
// SyncAll implements the KBFSOps interface for folderBranchOps.
{ "resource": "" }
c161439
train
// notifyBatchLocked sends out a notification for all the ops in md.
{ "resource": "" }
c161440
train
// searchForNode tries to figure out the path to the given // blockPointer, using only the block updates that happened as part of // a given MD update operation.
{ "resource": "" }
c161441
train
// Assumes all necessary locking is either already done by caller, or // is done by applyFunc.
{ "resource": "" }
c161442
train
// getUnmergedMDUpdates returns a slice of the unmerged MDs for this // TLF's current unmerged branch and unmerged branch, between the // merge point for the branch and the current head. The returned MDs // are the same instances that are stored in the MD cache, so they // should be modified with care.
{ "resource": "" }
c161443
train
// Returns a list of block pointers that were created during the // staged era.
{ "resource": "" }
c161444
train
// finalizeResolution caches all the blocks, and writes the new MD to // the merged branch, failing if there is a conflict. It also sends // out the given newOps notifications locally. This is used for // completing conflict resolution.
{ "resource": "" }
c161445
train
// TeamAbandoned implements the KBFSOps interface for folderBranchOps.
{ "resource": "" }
c161446
train
// MigrateToImplicitTeam implements the KBFSOps interface for folderBranchOps.
{ "resource": "" }
c161447
train
// GetEditHistory implements the KBFSOps interface for folderBranchOps
{ "resource": "" }
c161448
train
// ClearPrivateFolderMD implements the KBFSOps interface for // folderBranchOps.
{ "resource": "" }
c161449
train
// ForceFastForward implements the KBFSOps interface for // folderBranchOps.
{ "resource": "" }
c161450
train
// Reset implements the KBFSOps interface for folderBranchOps.
{ "resource": "" }
c161451
train
// GetSyncConfig implements the KBFSOps interface for folderBranchOps.
{ "resource": "" }
c161452
train
// InvalidateNodeAndChildren implements the KBFSOps interface for // folderBranchOps.
{ "resource": "" }
c161453
train
// NewNotificationChannel implements the KBFSOps interface for // folderBranchOps.
{ "resource": "" }
c161454
train
// encodeReply JSON encodes all replies.
{ "resource": "" }
c161455
train
// unmarshalOptions unmarshals any options in Call into opts, // and verify they pass the Checker checks.
{ "resource": "" }
c161456
train
// GetBlock gets a block from the disk cache.
{ "resource": "" }
c161457
train
// GetPrefetchStatus gets the prefetch status from the disk cache.
{ "resource": "" }
c161458
train
// PutBlock puts a block into the disk cache.
{ "resource": "" }
c161459
train
// DeleteBlocks deletes a set of blocks from the disk cache.
{ "resource": "" }
c161460
train
// UpdateBlockMetadata updates the metadata for a block in the disk cache.
{ "resource": "" }
c161461
train
// Pare down the note so that it's less likely to contain tricks. // Such as newlines and fake transactions. // Shows only the first line.
{ "resource": "" }
c161462
train
// execToString returns the space-trimmed output of a command or an error.
{ "resource": "" }
c161463
train
// fuseMount tries to mount the mountpoint. // On a force mount then unmount, re-mount if unsuccessful
{ "resource": "" }
c161464
train
// getBlock implements the interface for realBlockGetter.
{ "resource": "" }
c161465
train
// lock must be locked for writing by the caller
{ "resource": "" }
c161466
train
// lock must be held for writing by the caller
{ "resource": "" }
c161467
train
// GetOrCreate implements the NodeCache interface for nodeCacheStandard.
{ "resource": "" }
c161468
train
// Get implements the NodeCache interface for nodeCacheStandard.
{ "resource": "" }
c161469
train
// UpdatePointer implements the NodeCache interface for nodeCacheStandard.
{ "resource": "" }
c161470
train
// Move implements the NodeCache interface for nodeCacheStandard.
{ "resource": "" }
c161471
train
// Unlink implements the NodeCache interface for nodeCacheStandard.
{ "resource": "" }
c161472
train
// IsUnlinked implements the NodeCache interface for // nodeCacheStandard.
{ "resource": "" }
c161473
train
// UnlinkedDirEntry implements the NodeCache interface for // nodeCacheStandard.
{ "resource": "" }
c161474
train
// UpdateUnlinkedDirEntry implements the NodeCache interface for // nodeCacheStandard.
{ "resource": "" }
c161475
train
// PathFromNode implements the NodeCache interface for nodeCacheStandard.
{ "resource": "" }
c161476
train
// AllNodes implements the NodeCache interface for nodeCacheStandard.
{ "resource": "" }
c161477
train
// AllNodeChildren implements the NodeCache interface for nodeCacheStandard.
{ "resource": "" }
c161478
train
// IsWriter returns whether or not the currently logged-in user is a // valid writer for the folder described by `h`.
{ "resource": "" }
c161479
train
// WritePermMode fills in original based on whether or not the // currently logged-in user is a valid writer for the folder described // by `h`.
{ "resource": "" }
c161480
train
// convertImmutableBareRMDToIRMD decrypts the bare MD into a // full-fledged RMD. The MD is assumed to have been read from the // journal.
{ "resource": "" }
c161481
train
// GetIDForHandle implements the MDOps interface for journalMDOps.
{ "resource": "" }
c161482
train
// GetActivePGPKeys looks into the user's ComputedKeyFamily and // returns only the active PGP keys. If you want only sibkeys, then // specify sibkey=true.
{ "resource": "" }
c161483
train
// FilterActivePGPKeys returns the active pgp keys that match // query.
{ "resource": "" }
c161484
train
// AllSyncedSecretKeys returns all the PGP key blocks that were // synced to API server. LoginContext can be nil if this isn't // used while logging in, signing up.
{ "resource": "" }
c161485
train
// GetHighLinkSeqnos gets the list of all high links in the user's sigchain ascending.
{ "resource": "" }
c161486
train
// localDelegateKey takes the given GenericKey and provisions it locally so that // we can use the key without needing a refresh from the server. The eventual // refresh we do get from the server will clobber our work here.
{ "resource": "" }
c161487
train
// SigChainBump is called during a multikey post to update the correct seqno, hash, and // high skip. When a delegator posts a high link, they specify isHighDelegator=true // in order to set the new high skip pointer to the delegator's link, so subsequent // keys in the multikey will supply the correct high skip.
{ "resource": "" }
c161488
train
// Returns whether or not the current install has an active device // sibkey.
{ "resource": "" }
c161489
train
// PartialCopy copies some fields of the User object, but not all. // For instance, it doesn't copy the SigChain or IDTable, and it only // makes a shallow copy of the ComputedKeyFamily.
{ "resource": "" }
c161490
train
// resolveImplicitTeam returns a TLF display name given a teamID. The publicness // of the team is inferred from the TeamID.
{ "resource": "" }
c161491
train
// This is a devel-only cmd which can be used to see how long different // g.CTraceTimed calls are taking.
{ "resource": "" }
c161492
train
// NewKeybaseServiceMeasured creates and returns a new KeybaseServiceMeasured // instance with the given delegate and registry.
{ "resource": "" }
c161493
train
// Resolve implements the KeybaseService interface for KeybaseServiceMeasured.
{ "resource": "" }
c161494
train
// Identify implements the KeybaseService interface for KeybaseServiceMeasured.
{ "resource": "" }
c161495
train
// NormalizeSocialAssertion implements the KeybaseService interface for // KeybaseServiceMeasured.
{ "resource": "" }
c161496
train
// ResolveIdentifyImplicitTeam implements the KeybaseService interface // for KeybaseServiceMeasured.
{ "resource": "" }
c161497
train
// ResolveImplicitTeamByID implements the KeybaseService interface for // KeybaseServiceMeasured.
{ "resource": "" }
c161498
train
// LoadUserPlusKeys implements the KeybaseService interface for KeybaseServiceMeasured.
{ "resource": "" }
c161499
train
// LoadTeamPlusKeys implements the KeybaseService interface for KeybaseServiceMeasured.
{ "resource": "" }