_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c161000 | train | // ReadDirAll implements the ReadDirAll interface for Root. | {
"resource": ""
} | ||
c161001 | train | // getQuotaLocked retrieves the quota info for a block in the cache,
// or returns leveldb.ErrNotFound and a zero-valued metadata
// otherwise. | {
"resource": ""
} | ||
c161002 | train | // Get implements the DiskQuotaCache interface for DiskQuotaCacheLocal. | {
"resource": ""
} | ||
c161003 | train | // Put implements the DiskQuotaCache interface for DiskQuotaCacheLocal. | {
"resource": ""
} | ||
c161004 | train | // Status implements the DiskQuotaCache interface for DiskQuotaCacheLocal. | {
"resource": ""
} | ||
c161005 | train | // NewBlockServerMeasured creates and returns a new
// BlockServerMeasured instance with the given delegate and registry. | {
"resource": ""
} | ||
c161006 | train | // Get implements the BlockServer interface for BlockServerMeasured. | {
"resource": ""
} | ||
c161007 | train | // GetEncodedSize implements the BlockServer interface for BlockServerMeasured. | {
"resource": ""
} | ||
c161008 | train | // AddBlockReference implements the BlockServer interface for
// BlockServerMeasured. | {
"resource": ""
} | ||
c161009 | train | // RemoveBlockReferences implements the BlockServer interface for
// BlockServerMeasured. | {
"resource": ""
} | ||
c161010 | train | // ArchiveBlockReferences implements the BlockServer interface for
// BlockServerMeasured. | {
"resource": ""
} | ||
c161011 | train | // IsUnflushed implements the BlockServer interface for BlockServerMeasured. | {
"resource": ""
} | ||
c161012 | train | // Shutdown implements the BlockServer interface for
// BlockServerMeasured. | {
"resource": ""
} | ||
c161013 | train | // RefreshAuthToken implements the BlockServer interface for
// BlockServerMeasured. | {
"resource": ""
} | ||
c161014 | train | // GetUserQuotaInfo implements the BlockServer interface for BlockServerMeasured | {
"resource": ""
} | ||
c161015 | train | // GetTeamQuotaInfo implements the BlockServer interface for BlockServerMeasured | {
"resource": ""
} | ||
c161016 | train | // attemptLoadImpteamAndConflits attempts to lead the implicit team with
// conflict, but it might find the team but not the specific conflict if the
// conflict was not in cache. This can be detected with `hitCache` return
// value, and mitigated by passing skipCache=false argument. | {
"resource": ""
} | ||
c161017 | train | // LookupOrCreateImplicitTeam by name like "alice,bob+bob@twitter (conflicted copy 2017-03-04 #1)"
// Resolves social assertions. | {
"resource": ""
} | ||
c161018 | train | // Format an implicit display name, but order the specified username first in each of the writer and reader lists if it appears. | {
"resource": ""
} | ||
c161019 | train | // Sort a list of strings but order `front` in front IF it appears. | {
"resource": ""
} | ||
c161020 | train | // kbfs calls this as a response to receiving an FSEditListRequest with a
// given requestID. | {
"resource": ""
} | ||
c161021 | train | // FSSyncStatus is called by KBFS as a response to receiving an
// FSSyncStatusRequest with a given requestID. | {
"resource": ""
} | ||
c161022 | train | // FSSyncEvent is called by KBFS when the sync status of an individual path
// changes. | {
"resource": ""
} | ||
c161023 | train | // FSOverallSyncEvent is called by KBFS when the overall sync status
// changes. | {
"resource": ""
} | ||
c161024 | train | // FSOnlineStatusChangedEvent is called by KBFS when the online status changes. | {
"resource": ""
} | ||
c161025 | train | // createTLF is called by KBFS to associate the tlfID with the given teamID,
// using the v2 Team-based system. | {
"resource": ""
} | ||
c161026 | train | // getKBFSTeamSettings gets the settings written for the team in the team's sigchain. | {
"resource": ""
} | ||
c161027 | train | // upgradeTLF upgrades a TLF to use implicit team keys | {
"resource": ""
} | ||
c161028 | train | // Encrypt cached favorites to store on disk. | {
"resource": ""
} | ||
c161029 | train | // Decrypt cached favorites stored on disk. | {
"resource": ""
} | ||
c161030 | train | // Encode makes a QR code out of data and encodes it into three
// different representations. | {
"resource": ""
} | ||
c161031 | train | // run runs the worker loop until Shutdown is called | {
"resource": ""
} | ||
c161032 | train | // newBlockRetrievalWorker returns a blockRetrievalWorker for a given
// blockRetrievalQueue, using the passed in blockGetter to obtain blocks for
// requests. | {
"resource": ""
} | ||
c161033 | train | // HandleRequest is the main work method for the worker. It obtains a
// blockRetrieval from the queue, retrieves the block using
// blockGetter.getBlock, and responds to the subscribed requestors with the
// results. | {
"resource": ""
} | ||
c161034 | train | // Shutdown shuts down the blockRetrievalWorker once its current work is done. | {
"resource": ""
} | ||
c161035 | train | // NewStathatReporter create a new StatsReporter that reports stats to stathat.
// If enableActivityBasedStats, if set to non-nil, causes the reporter to
// generate activity-based stats. Caller should not modify
// enableActivityBasedStats passed into this function. | {
"resource": ""
} | ||
c161036 | train | // ReportServedRequest implementes the StatsReporter interface. | {
"resource": ""
} | ||
c161037 | train | // StaticSizeOfMapWithSize is a slightly more efficient version of
// StaticSizeOfMap for when the caller knows the static size of key and value
// without having to use `reflect`. | {
"resource": ""
} | ||
c161038 | train | // AddAllowAccess add a new ALLOW_ACCESS ACE to the ACL. | {
"resource": ""
} | ||
c161039 | train | // NewParamProofStore creates a new source and installs it into G. | {
"resource": ""
} | ||
c161040 | train | // Send the badgestate to electron | {
"resource": ""
} | ||
c161041 | train | // Log a copy of the badgestate with some zeros stripped off for brevity. | {
"resource": ""
} | ||
c161042 | train | // LookPath searches for an executable binary named file
// in the directories named by the PATH environment variable.
// If file contains a slash, it is tried directly and the PATH is not consulted. | {
"resource": ""
} | ||
c161043 | train | // GetEncodedUserEditHistory returns serialized JSON containing the
// file edit history for the user. | {
"resource": ""
} | ||
c161044 | train | // NewMDServerRemote returns a new instance of MDServerRemote. | {
"resource": ""
} | ||
c161045 | train | // resetAuth is called to reset the authorization on an MDServer
// connection. If this function returns
// idutil.NoCurrentSessionError, the caller should treat this as a
// logged-out user. | {
"resource": ""
} | ||
c161046 | train | // CheckReachability implements the MDServer interface. | {
"resource": ""
} | ||
c161047 | train | // Signal errors and clear any registered observers. | {
"resource": ""
} | ||
c161048 | train | // CancelRegistration implements the MDServer interface for MDServerRemote. | {
"resource": ""
} | ||
c161049 | train | // Signal an observer. The observer lock must be held. | {
"resource": ""
} | ||
c161050 | train | // Helper used to retrieve metadata blocks from the MD server. | {
"resource": ""
} | ||
c161051 | train | // GetForHandle implements the MDServer interface for MDServerRemote. | {
"resource": ""
} | ||
c161052 | train | // GetForTLF implements the MDServer interface for MDServerRemote. | {
"resource": ""
} | ||
c161053 | train | // GetForTLFByTime implements the MDServer interface for MDServerRemote. | {
"resource": ""
} | ||
c161054 | train | // GetRange implements the MDServer interface for MDServerRemote. | {
"resource": ""
} | ||
c161055 | train | // Lock implements the MDServer interface for MDServerRemote. | {
"resource": ""
} | ||
c161056 | train | // PruneBranch implements the MDServer interface for MDServerRemote. | {
"resource": ""
} | ||
c161057 | train | // MetadataUpdate implements the MetadataUpdateProtocol interface. | {
"resource": ""
} | ||
c161058 | train | // FoldersNeedRekey implements the MetadataUpdateProtocol interface. | {
"resource": ""
} | ||
c161059 | train | // FolderNeedsRekey implements the MetadataUpdateProtocol interface. | {
"resource": ""
} | ||
c161060 | train | // RegisterForUpdate implements the MDServer interface for MDServerRemote. | {
"resource": ""
} | ||
c161061 | train | // OffsetFromServerTime implements the MDServer interface for
// MDServerRemote. | {
"resource": ""
} | ||
c161062 | train | // getFoldersForRekey registers to receive updates about folders needing rekey actions. | {
"resource": ""
} | ||
c161063 | train | // Shutdown implements the MDServer interface for MDServerRemote. | {
"resource": ""
} | ||
c161064 | train | // IsConnected implements the MDServer interface for MDServerLocal | {
"resource": ""
} | ||
c161065 | train | //
// The below methods support the MD server acting as the key server.
// This will be the case for v1 of KBFS but we may move to our own
// separate key server at some point.
//
// GetTLFCryptKeyServerHalf is an implementation of the KeyServer interface. | {
"resource": ""
} | ||
c161066 | train | // PutTLFCryptKeyServerHalves is an implementation of the KeyServer interface. | {
"resource": ""
} | ||
c161067 | train | // DeleteTLFCryptKeyServerHalf is an implementation of the KeyServer interface. | {
"resource": ""
} | ||
c161068 | train | // GetKeyBundles implements the MDServer interface for MDServerRemote. | {
"resource": ""
} | ||
c161069 | train | // FastForwardBackoff implements the MDServer interface for MDServerRemote. | {
"resource": ""
} | ||
c161070 | train | // FindNextMD implements the MDServer interface for MDServerRemote. | {
"resource": ""
} | ||
c161071 | train | // normalizeNames normalizes a slice of names and returns
// whether any of them changed. | {
"resource": ""
} | ||
c161072 | train | // NormalizeNamesInTLF takes a split TLF name and, without doing any
// resolutions or identify calls, normalizes all elements of the
// name. It then returns the normalized name and a boolean flag
// whether any names were modified.
// This modifies the slices passed as arguments. | {
"resource": ""
} | ||
c161073 | train | // SplitAndNormalizeTLFName takes a tlf name as a string
// and tries to normalize it offline. In addition to other
// checks it returns TlfNameNotCanonical if it does not
// look canonical.
// Note that ordering differences do not result in TlfNameNotCanonical
// being returned. | {
"resource": ""
} | ||
c161074 | train | // MakeFBOsForExistingJournals creates folderBranchOps objects for all
// existing, non-empty journals. This is useful to initialize the
// unflushed edit history, for example. It returns a wait group that
// the caller can use to determine when all the FBOs have been
// initialized. If the caller is not going to wa... | {
"resource": ""
} | ||
c161075 | train | // enabledLocked returns an enabled journal; it is the caller's
// responsibility to add it to `j.tlfJournals`. This allows this
// method to be called in parallel during initialization, if desired. | {
"resource": ""
} | ||
c161076 | train | // Enable turns on the write journal for the given TLF. If h is nil,
// it will be attempted to be fetched from the remote MD server. | {
"resource": ""
} | ||
c161077 | train | // EnableAuto turns on the write journal for all TLFs, even new ones,
// persistently. | {
"resource": ""
} | ||
c161078 | train | // DisableAuto turns off automatic write journal for any
// newly-accessed TLFs. Existing journaled TLFs need to be disabled
// manually. | {
"resource": ""
} | ||
c161079 | train | // PauseBackgroundWork pauses the background work goroutine, if it's
// not already paused. | {
"resource": ""
} | ||
c161080 | train | // ResumeBackgroundWork resumes the background work goroutine, if it's
// not already resumed. | {
"resource": ""
} | ||
c161081 | train | // Flush flushes the write journal for the given TLF. | {
"resource": ""
} | ||
c161082 | train | // FinishSingleOp lets the write journal know that the application has
// finished a single op, and then blocks until the write journal has
// finished flushing everything. | {
"resource": ""
} | ||
c161083 | train | // Disable turns off the write journal for the given TLF. | {
"resource": ""
} | ||
c161084 | train | // Status returns a JournalManagerStatus object suitable for
// diagnostics. It also returns a list of TLF IDs which have journals
// enabled. | {
"resource": ""
} | ||
c161085 | train | // JournalStatus returns a TLFServerStatus object for the given TLF
// suitable for diagnostics. | {
"resource": ""
} | ||
c161086 | train | // JournalStatusWithPaths returns a TLFServerStatus object for the
// given TLF suitable for diagnostics, including paths for all the
// unflushed entries. | {
"resource": ""
} | ||
c161087 | train | // shutdownExistingJournalsLocked shuts down all write journals, sets
// the current UID and verifying key to zero, and returns once all
// shutdowns are complete. It is safe to call multiple times in a row,
// and once this is called, EnableExistingJournals may be called
// again. | {
"resource": ""
} | ||
c161088 | train | // shutdownExistingJournals shuts down all write journals, sets the
// current UID and verifying key to zero, and returns once all
// shutdowns are complete. It is safe to call multiple times in a row,
// and once this is called, EnableExistingJournals may be called
// again. | {
"resource": ""
} | ||
c161089 | train | // NumPutParts returns the number of times PutPart was called. | {
"resource": ""
} | ||
c161090 | train | // MakeRefNonce generates a non-zero block reference nonce using a
// CSPRNG. This is used for distinguishing different references to the
// same ID. | {
"resource": ""
} | ||
c161091 | train | // MakeFirstContext makes the initial context for a block with the
// given creator. | {
"resource": ""
} | ||
c161092 | train | // MakeContext makes a context with the given creator, writer, and
// nonce, where the writer is not necessarily equal to the creator,
// and the nonce is usually non-zero. | {
"resource": ""
} | ||
c161093 | train | // GetWriter returns the writer of the associated block. | {
"resource": ""
} | ||
c161094 | train | // SetWriter sets the Writer field, if necessary. | {
"resource": ""
} | ||
c161095 | train | // MakeMerkleHash hashes the given signed RootMetadata object. | {
"resource": ""
} | ||
c161096 | train | // MarshalBinary implements the encoding.BinaryMarshaler interface for
// MerkleHash. Returns an error if the MerkleHash is invalid and not the
// zero MerkleHash. | {
"resource": ""
} | ||
c161097 | train | // UnmarshalBinary implements the encoding.BinaryUnmarshaler interface
// for MerkleHash. Returns an error if the given byte array is non-empty and
// the MerkleHash is invalid. | {
"resource": ""
} | ||
c161098 | train | // MergeKey adds the identities, revocations, and subkeys of another PGPKeyBundle to this key | {
"resource": ""
} | ||
c161099 | train | // RunProvisioner runs a provisioner given the necessary arguments. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.