_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c160900
train
// Join implements the billy.Filesystem interface for RootFS.
{ "resource": "" }
c160901
train
// ReadDir implements the billy.Filesystem interface for RootFS.
{ "resource": "" }
c160902
train
// Readlink implements the billy.Filesystem interface for RootFS.
{ "resource": "" }
c160903
train
// Chroot implements the billy.Filesystem interface for RootFS.
{ "resource": "" }
c160904
train
// Rename implements the billy.Filesystem interface for RootFS.
{ "resource": "" }
c160905
train
// MkdirAll implements the billy.Filesystem interface for RootFS.
{ "resource": "" }
c160906
train
// Try to get the TeamEK for the given `generation`. If this fails and the // `generation` is also the current maxGeneration, create a new teamEK.
{ "resource": "" }
c160907
train
// AutoInstall is not supported on Windows
{ "resource": "" }
c160908
train
// InstallLogPath combines a handful of install logs in to one for // server upload. // Unfortunately, Dokan can generate UTF16 logs, so we test each file // and translate if necessary.
{ "resource": "" }
c160909
train
// WatchdogLogPath combines a handful of watchdog logs in to one for // server upload.
{ "resource": "" }
c160910
train
// addUnflushedPaths populates the given unflushed paths object. The // caller should NOT be holding any locks, as it's possible that // blocks will need to be fetched.
{ "resource": "" }
c160911
train
// prepUnflushedPaths returns a set of paths that were updated in the // given revision.
{ "resource": "" }
c160912
train
// appendToCache returns true when successful, and false if it needs // to be retried after the per-revision map is recomputed.
{ "resource": "" }
c160913
train
// reinitializeWithResolution returns true when successful, and false // if it needs to be retried after the per-revision map is recomputed.
{ "resource": "" }
c160914
train
// NewS3Store creates a standard Store that uses a real // S3 connection.
{ "resource": "" }
c160915
train
// DownloadAsset gets an object from S3 as described in asset.
{ "resource": "" }
c160916
train
// These are the devel rekey commands
{ "resource": "" }
c160917
train
// NewTrackToken creates a TrackToken engine.
{ "resource": "" }
c160918
train
// NewCachedUPAKLoader constructs a new CachedUPAKLoader
{ "resource": "" }
c160919
train
// NewUncachedUPAKLoader creates a UPAK loader that doesn't do any caching. // It uses the implementation of CachedUPAKLoader but disables all caching.
{ "resource": "" }
c160920
train
// Load a UserPlusKeysV2AllIncarnations from the local cache, falls back to // LoadUser, and cache the user. Can only perform lookups by UID. Will return a // non-nil UserPlusKeysV2AllIncarnations, or a non-nil error, but never both // non-nil, nor never both nil. If we had to do a full LoadUser as part of the // reque...
{ "resource": "" }
c160921
train
// Load a UserPlusKeysV2AllIncarnations from the local cache, falls back to // LoadUser, and cache the user. Can only perform lookups by UID. Will return a // non-nil UserPlusKeysV2AllIncarnations, or a non-nil error, but never both // non-nil, nor never both nil. If we had to do a full LoadUser as part of the // reque...
{ "resource": "" }
c160922
train
// LoadKeyV2 looks through all incarnations for the user and returns the incarnation with the given // KID, as well as the Key data associated with that KID. It picks the latest such // incarnation if there are multiple.
{ "resource": "" }
c160923
train
// Load the PublicKey for a user's device from the local cache, falling back to LoadUser, and cache the user. // If the user exists but the device doesn't, will force a load in case the device is very new.
{ "resource": "" }
c160924
train
// If the user exists but the device doesn't, will force a load in case the device is very new.
{ "resource": "" }
c160925
train
// LookupUsername uses the UIDMapper to find a username for uid.
{ "resource": "" }
c160926
train
// LookupUsernameUPAK uses the upak loader to find a username for uid.
{ "resource": "" }
c160927
train
// LookupUID is a verified map of username -> UID. IT calls into the resolver, which gives un untrusted // UID, but verifies with the UPAK loader that the mapping UID -> username is correct.
{ "resource": "" }
c160928
train
// v1 UPAKs are all legacy and need to be gradually cleaned from cache.
{ "resource": "" }
c160929
train
// Load a user from the server.
{ "resource": "" }
c160930
train
// Load a user + device keys from the server.
{ "resource": "" }
c160931
train
// Load public keys for a user.
{ "resource": "" }
c160932
train
// The list-tracking functions get verified data from the tracking statements // in the user's sigchain. // // If assertion is empty, it will use the current logged in user.
{ "resource": "" }
c160933
train
// getUPAK returns a UPAK. Used mainly for debugging.
{ "resource": "" }
c160934
train
// getUPAKLite returns a UPKLiteV1AllIncarnations. Used mainly for debugging.
{ "resource": "" }
c160935
train
// FindNextMerkleRootAfterReset finds the first Merkle root that contains the UID reset // at resetSeqno. You should pass it prev, which was the last known Merkle root at the time of // the reset. Usually, we'll just turn up the next Merkle root, but not always.
{ "resource": "" }
c160936
train
// Kick the processor into gear. // It will run until all relays in the queue are claimed. // And then dismiss the gregor message. // `trigger` is optional, and is of the gregor message that caused the kick.
{ "resource": "" }
c160937
train
// NewAccountReset creates a AccountReset engine.
{ "resource": "" }
c160938
train
// Close a source, but consume all leftover input before so doing.
{ "resource": "" }
c160939
train
// isValidFile verifies the file in question is not actually a directory.
{ "resource": "" }
c160940
train
// SetGlobalExternalKeyStore is called by Android to register Android's KeyStore with Go
{ "resource": "" }
c160941
train
// ToWriterMetadataV3 converts the WriterMetadataV2 to a // WriterMetadataV3.
{ "resource": "" }
c160942
train
// KeyGenerationsToUpdate implements the RootMetadata interface // for RootMetadataV2.
{ "resource": "" }
c160943
train
// IsValidRekeyRequest implements the RootMetadata interface for RootMetadataV2.
{ "resource": "" }
c160944
train
// IsWriter implements the RootMetadata interface for RootMetadataV2.
{ "resource": "" }
c160945
train
// IsReader implements the RootMetadata interface for RootMetadataV2.
{ "resource": "" }
c160946
train
// DeepCopy implements the RootMetadata interface for RootMetadataV2.
{ "resource": "" }
c160947
train
// MakeSuccessorCopy implements the ImmutableRootMetadata interface for RootMetadataV2.
{ "resource": "" }
c160948
train
// MakeBareTlfHandle implements the RootMetadata interface for RootMetadataV2.
{ "resource": "" }
c160949
train
// TlfHandleExtensions implements the RootMetadata interface for RootMetadataV2.
{ "resource": "" }
c160950
train
// PromoteReaders implements the RootMetadata interface for // RootMetadataV2.
{ "resource": "" }
c160951
train
// RevokeRemovedDevices implements the RootMetadata interface for // RootMetadataV2.
{ "resource": "" }
c160952
train
// getTLFKeyBundles returns the bundles for a given key generation. // Note that it is legal a writer or a reader to have no keys in their // bundle, if they only have a Keybase username with no device keys // yet.
{ "resource": "" }
c160953
train
// GetUserDevicePublicKeys implements the RootMetadata interface // for RootMetadataV2.
{ "resource": "" }
c160954
train
// GetTLFCryptKeyParams implements the RootMetadata interface for RootMetadataV2.
{ "resource": "" }
c160955
train
// IsValidAndSigned implements the RootMetadata interface for RootMetadataV2.
{ "resource": "" }
c160956
train
// IsLastModifiedBy implements the RootMetadata interface for // RootMetadataV2.
{ "resource": "" }
c160957
train
// GetSerializedWriterMetadata implements the RootMetadata interface for RootMetadataV2.
{ "resource": "" }
c160958
train
// SetLastModifyingWriter implements the MutableRootMetadata interface for RootMetadataV2.
{ "resource": "" }
c160959
train
// SetUnresolvedWriters implements the MutableRootMetadata interface for RootMetadataV2.
{ "resource": "" }
c160960
train
// ClearForV4Migration implements the MutableRootMetadata interface // for RootMetadataV2.
{ "resource": "" }
c160961
train
// Version implements the MutableRootMetadata interface for RootMetadataV2.
{ "resource": "" }
c160962
train
// GetCurrentTLFPublicKey implements the RootMetadata interface // for RootMetadataV2.
{ "resource": "" }
c160963
train
// GetUnresolvedParticipants implements the RootMetadata interface // for RootMetadataV2.
{ "resource": "" }
c160964
train
// AddKeyGeneration implements the MutableRootMetadata interface // for RootMetadataV2.
{ "resource": "" }
c160965
train
// UpdateKeyBundles implements the MutableRootMetadata interface // for RootMetadataV2.
{ "resource": "" }
c160966
train
// FinalizeRekey implements the MutableRootMetadata interface for RootMetadataV2.
{ "resource": "" }
c160967
train
// GetHistoricTLFCryptKey implements the RootMetadata interface for RootMetadataV2.
{ "resource": "" }
c160968
train
// GetExpectedNextHighSkip returns the HighSkip expected for a new link to be // added to the chain. It can only be called after VerifyChain is completed.
{ "resource": "" }
c160969
train
// GetCurrentSubchain takes the given sigchain and walks backward until it // finds the start of the current subchain, returning all the links in the // subchain. See isSubchainStart for the details of the logic here.
{ "resource": "" }
c160970
train
// cropToRightmostSubchain takes the given set of chain links, and then limits the tail // of the chain to just those that correspond to the eldest key given by `eldest`.
{ "resource": "" }
c160971
train
// Dump prints the sigchain to the writer arg.
{ "resource": "" }
c160972
train
// GetLinkFromSigIDQuery will return true if it finds a ChainLink // with a SigID that starts with query.
{ "resource": "" }
c160973
train
// Store a SigChain to local storage as a result of having loaded it. // We eagerly write loaded chain links to storage if they verify properly.
{ "resource": "" }
c160974
train
// MakeHandle creates a Handle from the given list of // readers and writers. If the given reader list contains just // keybase1.PUBLIC_UID, then the returned handle will be for a public // folder. Otherwise, it will be private. PUBLIC_UID shouldn't be in // any list in any other case.
{ "resource": "" }
c160975
train
// Type returns the type of TLF this Handle represents.
{ "resource": "" }
c160976
train
// TypeForKeying returns the keying type for the handle h.
{ "resource": "" }
c160977
train
// IsWriter returns whether or not the given user is a writer for the // top-level folder represented by this Handle.
{ "resource": "" }
c160978
train
// IsReader returns whether or not the given user is a reader for the // top-level folder represented by this Handle.
{ "resource": "" }
c160979
train
// ResolvedUsers returns the concatenation of h.Writers and h.Readers, // except if the handle is public, the returned list won't contain // PUBLIC_UID.
{ "resource": "" }
c160980
train
// HasUnresolvedUsers returns true if this handle has any unresolved // writers or readers.
{ "resource": "" }
c160981
train
// UnresolvedUsers returns the concatenation of h.UnresolvedWriters // and h.UnresolvedReaders.
{ "resource": "" }
c160982
train
// ResolveAssertions creates a new Handle given an existing one with // while resolving the passed assertions.
{ "resource": "" }
c160983
train
// Extensions returns a list of extensions for the given handle.
{ "resource": "" }
c160984
train
// DeepEqual returns true if the handle is equal to another handle. // This can mutate the Handle in that it might sort its Writers, // Readers, UnresolvedWriters, and UnresolvedReaders.
{ "resource": "" }
c160985
train
// checkUIDEquality returns true if `a` and `b` contain the same IDs, // regardless of order. However, if `a` contains duplicates, this // function may return an incorrect value.
{ "resource": "" }
c160986
train
// ResolvedUsersEqual checks whether the resolved users of this TLF // matches the provided lists of writers and readers.
{ "resource": "" }
c160987
train
// commonTime computes the current time according to our estimate of // the mdserver's time. It's a very crude way of normalizing the // local clock.
{ "resource": "" }
c160988
train
// canDoWork creates a file that marks the start of some long-term // work by this node. It should be called while a lock is taken on // the server. It returns true if the caller should start doing the // work.
{ "resource": "" }
c160989
train
// NewFS returns a new FS protocol implementation
{ "resource": "" }
c160990
train
// List implements keybase1.FsInterface
{ "resource": "" }
c160991
train
// PrimeSecretStore runs a test with current platform's secret store, trying to // store, retrieve, and then delete a secret with an arbitrary name. This should // be done before provisioning or logging in
{ "resource": "" }
c160992
train
// SetFuseConn sets fuse connection for this FS.
{ "resource": "" }
c160993
train
// LaunchNotificationProcessor launches the notification processor.
{ "resource": "" }
c160994
train
// WithContext adds app- and request-specific values to the context. // libkbfs.NewContextWithCancellationDelayer is called before returning the // context to ensure the cancellation is controllable. // // It is called by FUSE for normal runs, but may be called explicitly in other // settings, such as tests.
{ "resource": "" }
c160995
train
// Serve FS. Will block.
{ "resource": "" }
c160996
train
// Statfs implements the fs.FSStatfser interface for FS.
{ "resource": "" }
c160997
train
// Lookup implements the fs.NodeRequestLookuper interface for Root.
{ "resource": "" }
c160998
train
// Create implements the fs.NodeCreater interface for Root.
{ "resource": "" }
c160999
train
// Mkdir implements the fs.NodeMkdirer interface for Root.
{ "resource": "" }