_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c161200 | train | // Encrypt encrypts a Merkle leaf node with the given key pair. | {
"resource": ""
} | ||
c161201 | train | // Decrypt decrypts a Merkle leaf node with the given key pair. | {
"resource": ""
} | ||
c161202 | train | // currentProcessUserSid is a utility to get the
// SID of the current user running the process. | {
"resource": ""
} | ||
c161203 | train | // currentProcessUserSid is a utility to get the
// SID of the named pipe | {
"resource": ""
} | ||
c161204 | train | // nextAttemptTime calculates the next try for a given retry item. It uses an exponential
// decay calculation. | {
"resource": ""
} | ||
c161205 | train | // Failure indicates a failure of type kind has happened when loading a conversation. | {
"resource": ""
} | ||
c161206 | train | // Success indicates a success of type kind loading a conversation. This effectively removes
// that conversation from the retry queue. | {
"resource": ""
} | ||
c161207 | train | // Disconnected is called when we lose connection to the chat server, and pauses attempts
// on the retry queue. | {
"resource": ""
} | ||
c161208 | train | // IsOffline returns if the module thinks we are connected to the chat server. | {
"resource": ""
} | ||
c161209 | train | // Force forces a run of the retry loop. | {
"resource": ""
} | ||
c161210 | train | // NewFavoriteHandler creates a FavoriteHandler with the xp
// protocol. | {
"resource": ""
} | ||
c161211 | train | // FavoriteAdd handles the favoriteAdd RPC. | {
"resource": ""
} | ||
c161212 | train | // FavoriteIgnore handles the favoriteIgnore RPC. | {
"resource": ""
} | ||
c161213 | train | // FavoriteList handles the favoriteList RPC. | {
"resource": ""
} | ||
c161214 | train | // GetEncodedFolderStatus returns serialized JSON containing status information
// for a folder | {
"resource": ""
} | ||
c161215 | train | // GetEncodedStatus returns serialized JSON containing top-level KBFS status
// information | {
"resource": ""
} | ||
c161216 | train | // Initialize loads the favorites cache from disk and starts listening for
// requests asynchronously. | {
"resource": ""
} | ||
c161217 | train | // sendChangesToEditHistory notes any deleted favorites and removes them
// from this user's kbfsedits.UserHistory. | {
"resource": ""
} | ||
c161218 | train | // Shutdown shuts down this Favorites instance. | {
"resource": ""
} | ||
c161219 | train | // Add adds a favorite to your favorites list. | {
"resource": ""
} | ||
c161220 | train | // Delete deletes a favorite from the favorites list. It is
// idempotent. | {
"resource": ""
} | ||
c161221 | train | // RefreshCache refreshes the cached list of favorites. | {
"resource": ""
} | ||
c161222 | train | // Get returns the logged-in user's list of favorites. It uses the cache. | {
"resource": ""
} | ||
c161223 | train | // setHomeTLFInfo should be called when a new user logs in so that their home
// TLFs can be returned as favorites. | {
"resource": ""
} | ||
c161224 | train | // GetAll returns the logged-in user's list of favorite, new, and ignored TLFs.
// It uses the cache. | {
"resource": ""
} | ||
c161225 | train | // checkUsernameQuery returns the query if it's valid to use
// We return the valid string so that it can be used as a separate
// pre-validated variable which makes it less likely that the validation will
// be accidentally removed in the future, as opposed to if we just continued
// using the input variable after val... | {
"resource": ""
} | ||
c161226 | train | // newHandler returns a request handler. | {
"resource": ""
} | ||
c161227 | train | // Handle accepts a request, handles it, and returns an optional result if there was no error | {
"resource": ""
} | ||
c161228 | train | // handleChat sends a chat message to a user. | {
"resource": ""
} | ||
c161229 | train | // parseQuery reads the stderr from a keybase query command and returns a result | {
"resource": ""
} | ||
c161230 | train | // parseError reads stderr output and returns an error made from it. If it
// fails to parse an error, it returns the fallback error. | {
"resource": ""
} | ||
c161231 | train | // handleQuery searches whether a user is present in Keybase. | {
"resource": ""
} | ||
c161232 | train | // NewCmdSimpleFSCopy creates a new cli.Command. | {
"resource": ""
} | ||
c161233 | train | // Mount mounts a FileSystem with the given Config.
// Mount returns when the filesystem has been mounted or there is an error. | {
"resource": ""
} | ||
c161234 | train | // IsRequestorUserSidEqualTo returns true if the argument is equal
// to the sid of the user associated with the filesystem request. | {
"resource": ""
} | ||
c161235 | train | // NumberOfFileHandles returns the number of open file handles for
// this filesystem. | {
"resource": ""
} | ||
c161236 | train | // Track with token returned from identify. | {
"resource": ""
} | ||
c161237 | train | // Write implements the fs.HandleWriter interface for RekeyFile. | {
"resource": ""
} | ||
c161238 | train | // getVolumeName requires a drive letter and colon with a
// trailing backslash | {
"resource": ""
} | ||
c161239 | train | // getDosVolumeName requires a drive letter and colon with no
// trailing backslash | {
"resource": ""
} | ||
c161240 | train | // strip whitespace off the front | {
"resource": ""
} | ||
c161241 | train | // Parse an assertion list like "alice,bob&&bob@twitter#char"
// OR nodes are not allowed (asides from the commas) | {
"resource": ""
} | ||
c161242 | train | // Parse a string into one or more assertions. Only AND assertions are allowed within each part.
// like "alice,bob&&bob@twitter" | {
"resource": ""
} | ||
c161243 | train | // Unpack an assertion with one or more comma-separated parts. Only AND assertions are allowed within each part. | {
"resource": ""
} | ||
c161244 | train | // A single item in a comma-separated assertion list must not have any ORs in its subtree. | {
"resource": ""
} | ||
c161245 | train | // NewUserHistory constructs a UserHistory instance. | {
"resource": ""
} | ||
c161246 | train | // UpdateHistory should be called whenever the edit history for a
// given TLF gets new information. | {
"resource": ""
} | ||
c161247 | train | // GetTlfHistory returns the edit history of a given TLF, converted to
// keybase1 protocol structs. | {
"resource": ""
} | ||
c161248 | train | // Get returns the full edit history for the user, converted to
// keybase1 protocol structs. | {
"resource": ""
} | ||
c161249 | train | // Clear erases all saved histories; TLFs must be re-added. | {
"resource": ""
} | ||
c161250 | train | // ClearTLF removes a TLF from this UserHistory. | {
"resource": ""
} | ||
c161251 | train | // FindNextMerkleRootAfterRevoke loads the user for the given UID, and find the
// next merkle root after the given key revocation happens. It uses the
// parameter arg.Prev to figure out where to start looking and then keeps
// searching forward until finding a leaf that matches arg.Loc. | {
"resource": ""
} | ||
c161252 | train | // Verify that the given link has been posted to the merkle tree.
// Used to detect a malicious server silently dropping sigchain link posts. | {
"resource": ""
} | ||
c161253 | train | // UpdatePayment schedules a load of paymentID. Gregor status notification handlers
// should call this to update the payment data. | {
"resource": ""
} | ||
c161254 | train | // UpdateRequest schedules a load for requestID. Gregor status notification handlers
// should call this to update the request data. | {
"resource": ""
} | ||
c161255 | train | // GetListener returns a channel and an ID for a payment status listener. The ID
// can be used to remove the listener from the loader. | {
"resource": ""
} | ||
c161256 | train | // RemoveListener removes a listener from the loader when it is no longer needed. | {
"resource": ""
} | ||
c161257 | train | // storeRequest returns true if it updated an existing value. | {
"resource": ""
} | ||
c161258 | train | // StringToFeatureFlags returns a set of feature flags | {
"resource": ""
} | ||
c161259 | train | // Admin returns true if the admin feature set is on or the user is a keybase
// admin. | {
"resource": ""
} | ||
c161260 | train | // EnabledWithError returns if the given feature is enabled, it will return true if it's
// enabled, and an error if one occurred. | {
"resource": ""
} | ||
c161261 | train | // Enabled returns if the feature flag is enabled. It ignore errors and just acts
// as if the feature is off. | {
"resource": ""
} | ||
c161262 | train | // Clear clears out the cached feature flags, for instance if the user
// is going to logout. | {
"resource": ""
} | ||
c161263 | train | // NewFeatureFlagGate makes a gate for the given feature that will cache for the given
// duration. | {
"resource": ""
} | ||
c161264 | train | // DigestError should be called on the result of an API call. It will allow this gate
// to digest the error and maybe set up its internal caching for when to retry this
// feature. | {
"resource": ""
} | ||
c161265 | train | // ErrorIfFlagged should be called to avoid a feature if it's recently
// been feature-flagged "off" by the server. In that case, it will return
// the error that was originally returned by the server. | {
"resource": ""
} | ||
c161266 | train | // NewFavoriteAdd creates a FavoriteAdd engine. | {
"resource": ""
} | ||
c161267 | train | // Init starts all the background services for managing connection to Gregor | {
"resource": ""
} | ||
c161268 | train | // PushFirehoseHandler pushes a new firehose handler onto the list of currently
// active firehose handles. We can have several of these active at once. All
// get the "firehose" of gregor events. They're removed lazily as their underlying
// connections die. | {
"resource": ""
} | ||
c161269 | train | // iterateOverFirehoseHandlers applies the function f to all live firehose handlers
// and then resets the list to only include the live ones. | {
"resource": ""
} | ||
c161270 | train | // replayInBandMessages will replay all the messages in the current state from
// the given time. If a handler is specified, it will only replay using it,
// otherwise it will try all of them. gregorHandler needs to be locked when calling
// this function. | {
"resource": ""
} | ||
c161271 | train | // serverSync is called from
// gregord. This can happen either on initial startup, or after a reconnect. Needs
// to be called with gregorHandler locked. | {
"resource": ""
} | ||
c161272 | train | // BroadcastMessage is called when we receive a new message from gregord. Grabs
// the lock protect the state machine and handleInBandMessage | {
"resource": ""
} | ||
c161273 | train | // handleInBandMessage runs a message on all the alive handlers. gregorHandler
// must be locked when calling this function. | {
"resource": ""
} | ||
c161274 | train | // handleInBandMessageWithHandler runs a message against the specified handler | {
"resource": ""
} | ||
c161275 | train | // Similar to the backoff above, except that the "short" window is zero, so
// that active clients don't wait at all before their first reconnect attempt. | {
"resource": ""
} | ||
c161276 | train | // `cli` is the interface used to talk to gregor.
// If nil then the global cli will be used.
// Be sure to pass a cli when called from within OnConnect, as the global cli would deadlock. | {
"resource": ""
} | ||
c161277 | train | // NewContextFromGlobalContext constructs a context | {
"resource": ""
} | ||
c161278 | train | // NewContext constructs a context. This should only be called once in
// main functions. | {
"resource": ""
} | ||
c161279 | train | // NextAppStateUpdate implements AppStateUpdater. | {
"resource": ""
} | ||
c161280 | train | // CheckService checks if the service is running and returns nil if
// so, and an error otherwise. | {
"resource": ""
} | ||
c161281 | train | // GetSocket returns a socket | {
"resource": ""
} | ||
c161282 | train | // NewRPCLogFactory constructs an RPC logger | {
"resource": ""
} | ||
c161283 | train | // cleanupSocketFile cleans up the socket file for binding. | {
"resource": ""
} | ||
c161284 | train | // BindToKBFSSocket binds to the socket configured in `c.kbfsSocket`. | {
"resource": ""
} | ||
c161285 | train | // Can panic if invalid | {
"resource": ""
} | ||
c161286 | train | // WrapError is a generic method that converts a Go Error into a RPC error status object.
// If the error is itself a Status object to being with, then it will just return that
// status object. If it is something that can be made into a Status object via the
// ToStatusAble interface, then we'll try that. Otherwise, w... | {
"resource": ""
} | ||
c161287 | train | // UnwrapError takes an incoming RPC object, attempts to coerce it into a Status
// object, and then Upcasts via the Upcaster or just returns if not was provided. | {
"resource": ""
} | ||
c161288 | train | // All of the chat modes want to prevent tracker popups. | {
"resource": ""
} | ||
c161289 | train | // HasKID returns true if u has the given KID in any of its incarnations.
// Useful for deciding if we should repoll a stale UPAK in the UPAK loader. | {
"resource": ""
} | ||
c161290 | train | // UPKV2 should supersede UPAK eventually, but lots of older code requires
// UPAK. This is a simple converter function. | {
"resource": ""
} | ||
c161291 | train | // Get the top level team id for this team name.
// Only makes sense for non-sub teams.
// The first 15 bytes of the sha256 of the lowercase team name,
// followed by the byte 0x24, encoded as hex. | {
"resource": ""
} | ||
c161292 | train | // LockIDFromBytes takes the first 8 bytes of the sha512 over data, overwrites
// first byte with the version byte, then interprets it as int64 using big
// endian, and returns the value as LockID. | {
"resource": ""
} | ||
c161293 | train | // registerGregorFirehoseFilter allows a client to register for a filtered
// firehose, limited to only the OOBMs of the systems provided.
// Like the firehose handler, but less pressure. | {
"resource": ""
} | ||
c161294 | train | // OpenSig takes an armored PGP or Keybase signature and opens
// the armor. It will return the body of the signature, the
// sigID of the body, or an error if it didn't work out. | {
"resource": ""
} | ||
c161295 | train | // SigExtractPayloadAndKID extracts the payload and KID of the key that
// was supposedly used to sign this message. A KID will only be returned
// for KB messages, and not for PGP messages | {
"resource": ""
} | ||
c161296 | train | // DefaultV1 returns a default V1 config, which allows anonymous read to
// everything. | {
"resource": ""
} | ||
c161297 | train | // EnsureInit initializes c, and returns any error encountered during the
// initialization. It is not necessary to call EnsureInit. Methods that need it
// does it automatically. | {
"resource": ""
} | ||
c161298 | train | // Authenticate implements the Config interface. | {
"resource": ""
} | ||
c161299 | train | // GetPermissions implements the Config interface. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.