_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c160500
train
// ShouldForceSync implements the DirtyBlockCache interface for // DirtyBlockCacheStandard.
{ "resource": "" }
c160501
train
// Size returns the number of blocks currently in the cache.
{ "resource": "" }
c160502
train
// Shutdown implements the DirtyBlockCache interface for // DirtyBlockCacheStandard.
{ "resource": "" }
c160503
train
// NewCmdUpdate are commands for supporting the updater
{ "resource": "" }
c160504
train
// newCmdUpdateCheckInUse is called by updater to see if Keybase is currently in use
{ "resource": "" }
c160505
train
// NewCmdSimpleFSPs creates a new cli.Command.
{ "resource": "" }
c160506
train
// archiveUnrefBlocksNoWait enqueues the MD for archiving without // blocking. By the time it returns, the archive group has been // incremented so future waits will block on this archive. This // method is for internal use within folderBlockManager only.
{ "resource": "" }
c160507
train
// doChunkedDowngrades sends batched archive or delete messages to the // block server for the given block pointers. For deletes, it returns // a list of block IDs that no longer have any references.
{ "resource": "" }
c160508
train
// deleteBlockRefs sends batched delete messages to the block server // for the given block pointers. It returns a list of block IDs that // no longer have any references.
{ "resource": "" }
c160509
train
// getUnrefPointersFromMD returns a slice of BlockPointers that were // unreferenced by the given `rmd`. If there are too many pointers to // process, given the current mode, then it will return a partial // list, plus a non-nil `iter` parameter that can be passed into a // subsequent call to get the next set of unref...
{ "resource": "" }
c160510
train
// getMostRecentGCRevision returns the latest revision that was // scrubbed by the previous gc op.
{ "resource": "" }
c160511
train
// getUnrefBlocks returns a slice containing all the block pointers // that were unreferenced after the earliestRev, up to and including // those in latestRev. If the number of pointers is too large, it // will shorten the range of the revisions being reclaimed, and return // the latest revision represented in the ret...
{ "resource": "" }
c160512
train
// GetTLFCryptKeyServerHalf is an implementation of the KeyOps interface.
{ "resource": "" }
c160513
train
// PutTLFCryptKeyServerHalves is an implementation of the KeyOps interface.
{ "resource": "" }
c160514
train
// DeleteTLFCryptKeyServerHalf is an implementation of the KeyOps interface.
{ "resource": "" }
c160515
train
// WithSelfForcePoll is like WithSelf but forces a poll. I.e., it will always go to the server for // a merkle check, regardless of when the existing self was cached.
{ "resource": "" }
c160516
train
// WithUser loads any old user. If it happens to be the self user, then it behaves // as in WithSelf. Otherwise, it will just load the user, and throw it out when done. // WithUser supports other so that code doesn't need to change if we're doing the // operation for the user or someone else.
{ "resource": "" }
c160517
train
// HandleUserChanged clears the cached self user if it's the UID of the self user.
{ "resource": "" }
c160518
train
// OnLogin clears the cached self user if it differs from what's already cached.
{ "resource": "" }
c160519
train
// QueueNotification queues a notification, which must be // goroutine-safe.
{ "resource": "" }
c160520
train
// LaunchProcessor launches the notification processor.
{ "resource": "" }
c160521
train
// VerifyPhoneNumber calls API to verify previously added phone number using // verification code.
{ "resource": "" }
c160522
train
// GetPhoneNumbers calls API to fetch list of phone numbers attached to // currently logged user.
{ "resource": "" }
c160523
train
// Performs paper provision. // If the current device isn't provisioned, this function will // provision it.
{ "resource": "" }
c160524
train
// AppBundleForPath returns path to app bundle
{ "resource": "" }
c160525
train
// NewReporterKBPKI creates a new ReporterKBPKI.
{ "resource": "" }
c160526
train
// NotifyOverallSyncStatus implements the Reporter interface for ReporterKBPKI.
{ "resource": "" }
c160527
train
// Shutdown implements the Reporter interface for ReporterKBPKI.
{ "resource": "" }
c160528
train
// send takes notifications out of notifyBuffer, notifyPathBuffer, and // notifySyncBuffer and sends them to the keybase daemon.
{ "resource": "" }
c160529
train
// writeNotification creates FSNotifications from paths for file // write events.
{ "resource": "" }
c160530
train
// readNotification creates FSNotifications from paths for file // read events.
{ "resource": "" }
c160531
train
// rekeyNotification creates FSNotifications from TlfHandles for rekey // events.
{ "resource": "" }
c160532
train
// fileCreateNotification creates FSNotifications from paths for file // create events.
{ "resource": "" }
c160533
train
// fileModifyNotification creates FSNotifications from paths for file // modification events.
{ "resource": "" }
c160534
train
// fileDeleteNotification creates FSNotifications from paths for file // delete events.
{ "resource": "" }
c160535
train
// fileRenameNotification creates FSNotifications from paths for file // rename events.
{ "resource": "" }
c160536
train
// connectionNotification creates FSNotifications based on whether // or not KBFS is online.
{ "resource": "" }
c160537
train
// baseNotification creates a basic FSNotification without a // NotificationType from a path.
{ "resource": "" }
c160538
train
// errorNotification creates FSNotifications for errors.
{ "resource": "" }
c160539
train
// NewKeyFinder creates a KeyFinder.
{ "resource": "" }
c160540
train
// FindForEncryption finds keys up-to-date enough for encrypting. // Ignores tlfName or teamID based on membersType.
{ "resource": "" }
c160541
train
// FindForDecryption ignores tlfName or teamID based on membersType.
{ "resource": "" }
c160542
train
// getChunksFromCache returns the plaintext bytes for a set of chunks iff we have each chunk // in our cache
{ "resource": "" }
c160543
train
// getReadaheadFactor gives the number of chunks we should read at minimum from the source. For larger // files we try to read more so we don't make too many underlying requests.
{ "resource": "" }
c160544
train
// Log sensitive deletion actions to a separate log file so we don't lose the // logs during normal rotation.
{ "resource": "" }
c160545
train
// keyToEldestSeqno parses out the `eldestSeqno` from a key of the form // deviceEKPrefix-username-eldestSeqno-generation.ek. If we have a key for a // eldestSeqno that is not our current, we purge it since we don't want the // ephemeral key to stick around if we've reset. If we are unable to parse out // the value, th...
{ "resource": "" }
c160546
train
// keyToEldestSeqno parses out the `generation` from a key of the form // deviceEKPrefix-username-eldestSeqno-generation.ek. Unparseable keys return a // generation of -1 and should be ignored.
{ "resource": "" }
c160547
train
// ListAllForUser lists the internal storage name of deviceEKs of the logged in // user. This is used for logsend purposes to debug ek state.
{ "resource": "" }
c160548
train
// RecursiveDelete deletes the given entry from the given filesystem. // If it's a directory, first all the items in the directory are // deleted recursively.
{ "resource": "" }
c160549
train
// process consumes a single message
{ "resource": "" }
c160550
train
// Params returns a set of default parameters for git-related // operations, along with a temp directory that should be cleaned // after the git work is complete.
{ "resource": "" }
c160551
train
// Init initializes a context and a libkbfs.Config for git operations. // The config should be shutdown when it is done being used.
{ "resource": "" }
c160552
train
// ProfileGet gets the relevant read function for the profile or nil if it doesn't exist.
{ "resource": "" }
c160553
train
// profileRead reads from a Profile.
{ "resource": "" }
c160554
train
// getIndexTokens splits the content of the given message on whitespace and // special characters returning a map of tokens to aliases normalized to lowercase.
{ "resource": "" }
c160555
train
// Order messages ascending by ID for presentation
{ "resource": "" }
c160556
train
// For errors that expect, replace them with nice strings for the user. The GUI // will show these directly.
{ "resource": "" }
c160557
train
// Clone a passphrase stream and return a copy.
{ "resource": "" }
c160558
train
// Creates a ephemeral key storage and installs it into G.
{ "resource": "" }
c160559
train
// Ref returns the BlockRef equivalent of this pointer.
{ "resource": "" }
c160560
train
// EntryInfoFromFileInfo converts an `os.FileInfo` into an // `EntryInfo`, to the best of our ability to do so. The caller is // responsible for filling in `EntryInfo.SymPath`, if needed.
{ "resource": "" }
c160561
train
// Eq returns true if `other` is equal to `ei`.
{ "resource": "" }
c160562
train
// MakeRevBranchName returns a branch name specifying an archive // branch pinned to the given revision number.
{ "resource": "" }
c160563
train
// RevisionIfSpecified returns a valid revision number and true if // `bn` is a revision branch.
{ "resource": "" }
c160564
train
// GetTLFReaderKeyBundle implements the KeyBundleCache interface for KeyBundleCacheStandard.
{ "resource": "" }
c160565
train
// GetTLFWriterKeyBundle implements the KeyBundleCache interface for KeyBundleCacheStandard.
{ "resource": "" }
c160566
train
// PutTLFReaderKeyBundle implements the KeyBundleCache interface for KeyBundleCacheStandard.
{ "resource": "" }
c160567
train
// PutTLFWriterKeyBundle implements the KeyBundleCache interface for KeyBundleCacheStandard.
{ "resource": "" }
c160568
train
// Update encodes src into a byte string, and then decode it into the // object pointed to by dstPtr.
{ "resource": "" }
c160569
train
// SerializeToFile serializes the given object and writes it to the // given file, making its parent directory first if necessary.
{ "resource": "" }
c160570
train
// SerializeToFileIfNotExist is like SerializeToFile, but does nothing // if the file already exists.
{ "resource": "" }
c160571
train
// LoadFlip implements the types.CoinFlipManager interface
{ "resource": "" }
c160572
train
// CLogf implements the flip.DealersHelper interface
{ "resource": "" }
c160573
train
// ServerTime implements the flip.DealersHelper interface
{ "resource": "" }
c160574
train
// SendChat implements the flip.DealersHelper interface
{ "resource": "" }
c160575
train
// Me implements the flip.DealersHelper interface
{ "resource": "" }
c160576
train
// KeybaseFuseStatus returns Fuse status
{ "resource": "" }
c160577
train
// Mode implements the os.FileInfo interface for FileInfo.
{ "resource": "" }
c160578
train
// ModTime implements the os.FileInfo interface for FileInfo.
{ "resource": "" }
c160579
train
// Mode implements the os.FileInfo interface.
{ "resource": "" }
c160580
train
// ModTime implements the os.FileInfo interface.
{ "resource": "" }
c160581
train
// EnableFastMode returns a context.Context based on ctx that will test to true // with IsFastModeEnabled.
{ "resource": "" }
c160582
train
// getElapsedStr gets an additional string to append to the errput // message at the end of a phase. It includes the measured time of // the phase, and if verbosity is high enough, it includes the // location of a memory profile taken at the end of the phase.
{ "resource": "" }
c160583
train
// printStageEndIfNeeded should only be used to end stages started with // printStageStart.
{ "resource": "" }
c160584
train
// caller should make sure doneCh is closed when journal is all flushed.
{ "resource": "" }
c160585
train
// recursiveByteCount returns a sum of the size of all files under the // directory represented by `fs`. It also returns the length of the // last string it printed to `r.errput` as `toErase`, to aid in // overwriting the text on the next update.
{ "resource": "" }
c160586
train
// recursiveCopy copies the entire subdirectory rooted at `fs` to // `localFS`.
{ "resource": "" }
c160587
train
// parentCommitsForRef returns a map of refs with a list of commits for each // ref, newest first. It only includes commits that exist in `localStorer` but // not in `remoteStorer`.
{ "resource": "" }
c160588
train
// GetNegBool gets a negatable bool. You can give it a list of functions, // and also possible negations for those functions.
{ "resource": "" }
c160589
train
// GetChatMemberType returns the default member type for new conversations.
{ "resource": "" }
c160590
train
// Encode58 base58 encodes the input.
{ "resource": "" }
c160591
train
// Decode58 base58 decodes the input or returns an error.
{ "resource": "" }
c160592
train
// NewSaltpackEncrypt creates a SaltpackEncrypt engine.
{ "resource": "" }
c160593
train
// NewRekeyQueueStandard creates a new rekey queue.
{ "resource": "" }
c160594
train
// start spawns a goroutine that dispatches rekey requests to correct folder // branch ops while conforming to the rater limiter.
{ "resource": "" }
c160595
train
// Enqueue implements the RekeyQueue interface for RekeyQueueStandard.
{ "resource": "" }
c160596
train
// IsRekeyPending implements the RekeyQueue interface for RekeyQueueStandard.
{ "resource": "" }
c160597
train
// Shutdown implements the RekeyQueue interface for RekeyQueueStandard.
{ "resource": "" }
c160598
train
// NewPaperKeySubmit creates a PaperKeySubmit engine.
{ "resource": "" }
c160599
train
// Same as the above except a KBFS-specific prefix is added to the payload to be signed.
{ "resource": "" }