_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c159800 | train | // NewTeamLoaderAndInstall creates a new loader and installs it into G. | {
"resource": ""
} | ||
c159801 | train | // Resolve a team name to a team ID.
// Will always hit the server for subteams. The server can lie in this return value. | {
"resource": ""
} | ||
c159802 | train | // Load2 does the rest of the work loading a team.
// It is `playchain` described in the pseudocode in teamplayer.txt | {
"resource": ""
} | ||
c159803 | train | // userPreload warms the upak cache with users who will probably need to be loaded to verify the chain.
// Uses teamEnv and may be disabled. | {
"resource": ""
} | ||
c159804 | train | // Whether the user is an admin at the snapshot, and there are no stubbed links, and keys are up to date. | {
"resource": ""
} | ||
c159805 | train | // Check whether a user is an implicit admin of a team. | {
"resource": ""
} | ||
c159806 | train | // Whether the snapshot has loaded at least up to the key generation and has the secret. | {
"resource": ""
} | ||
c159807 | train | // Whether the snapshot has loaded the reader key masks and key generations we
// need. | {
"resource": ""
} | ||
c159808 | train | // Whether the snapshot has each of `wantMembers` as a member. | {
"resource": ""
} | ||
c159809 | train | // Whether y is in xs. | {
"resource": ""
} | ||
c159810 | train | // Return the max in a list of positive seqnos. Returns 0 if the list is empty | {
"resource": ""
} | ||
c159811 | train | // Whether a TeamData from the cache is fresh. | {
"resource": ""
} | ||
c159812 | train | // Whether the teams secrets are synced to the same point as its sigchain
// Does not check RKMs. | {
"resource": ""
} | ||
c159813 | train | // List all the admins of ancestor teams.
// Includes admins of the specified team only if they are also admins of ancestor teams.
// The specified team must be a subteam, or an error is returned.
// Always sends a flurry of RPCs to get the most up to date info. | {
"resource": ""
} | ||
c159814 | train | // MapTeamAncestors does NOT map over the team itself. | {
"resource": ""
} | ||
c159815 | train | // Stop is called on the rpc keybase.1.ctl.stop, which shuts down the service. | {
"resource": ""
} | ||
c159816 | train | // Helper which returns nil if the md block is uninitialized or readable by
// the current user. Otherwise an appropriate read access error is returned. | {
"resource": ""
} | ||
c159817 | train | // getSingleMD returns an MD that is required to exist. | {
"resource": ""
} | ||
c159818 | train | // MakeCopyWithDecryptedPrivateData makes a copy of the given IRMD,
// decrypting it with the given IRMD with keys. | {
"resource": ""
} | ||
c159819 | train | // GetMDRevisionByTime returns the revision number of the earliest
// merged MD of `handle` with a server timestamp greater or equal to
// `serverTime`. | {
"resource": ""
} | ||
c159820 | train | // decryptMDPrivateData does not use uid if the handle is a public one. | {
"resource": ""
} | ||
c159821 | train | // NewCmdSimpleFS creates the device command, which is just a holder
// for subcommands. | {
"resource": ""
} | ||
c159822 | train | // Check whether the given path is a directory and return its string | {
"resource": ""
} | ||
c159823 | train | // Make sure the destination ends with the same filename as the source,
// if any, unless the destination is not a directory | {
"resource": ""
} | ||
c159824 | train | // Make a list of source paths and one destination path from the given command line args | {
"resource": ""
} | ||
c159825 | train | // Use derives a context bound to the slot.
// Cancels any context previously bound to the slot. | {
"resource": ""
} | ||
c159826 | train | // Use derives a new context.
// Whichever of the argument and the incumbent are lower priority is canceled.
// In a tie the incumbent is canceled. | {
"resource": ""
} | ||
c159827 | train | // Shutdown disables the slot forever. | {
"resource": ""
} | ||
c159828 | train | // NewFakeS3Context returns a context with the fakeS3Key flag set. | {
"resource": ""
} | ||
c159829 | train | // CheckInvariants checks that the Bundle satisfies
// 1. No duplicate account IDs
// 2. Exactly one primary account
// 3. Non-negative revision numbers
// 4. Account Bundle accountIDs are consistent
// 5. every account in AccountBundles is also in Accounts | {
"resource": ""
} | ||
c159830 | train | // NewProveCheck creates a ProveCheck engine. | {
"resource": ""
} | ||
c159831 | train | // Put receives a copy of a ResolveResult, clears out the body
// to avoid caching data that can go stale, and stores the result. | {
"resource": ""
} | ||
c159832 | train | // newLoginCurrentDevice creates a loginProvisionedDevice engine. | {
"resource": ""
} | ||
c159833 | train | // PullAllConversations grabs all outbox entries for the current outbox, and optionally deletes them
// from storage | {
"resource": ""
} | ||
c159834 | train | // MarkAsError will either mark an existing record as an error, or it will add the passed
// record as an error with the specified error state | {
"resource": ""
} | ||
c159835 | train | // NewPGPPurge creates a PGPPurge engine. | {
"resource": ""
} | ||
c159836 | train | // GetEncodedMetrics returns metrics encoded as bytes for metrics file. | {
"resource": ""
} | ||
c159837 | train | // NewDealer makes a new Dealer with a given DealersHelper | {
"resource": ""
} | ||
c159838 | train | // Run a dealer in a given context. It will run as long as it isn't shutdown. | {
"resource": ""
} | ||
c159839 | train | // Stop a dealer on process shutdown. | {
"resource": ""
} | ||
c159840 | train | // StartFlip starts a new flip. Pass it some start parameters as well as a chat conversationID that it
// will take place in. | {
"resource": ""
} | ||
c159841 | train | // StartFlipWithGameID starts a new flip. Pass it some start parameters as well as a chat conversationID
// that it will take place in. Also takes a GameID | {
"resource": ""
} | ||
c159842 | train | // InjectIncomingChat should be called whenever a new flip game comes in that's relevant for flips.
// Call this with the sender's information, the channel information, and the body data that came in.
// The last bool is true only if this is the first message in the channel. The current model is that only
// one "game"... | {
"resource": ""
} | ||
c159843 | train | // NewStartWithBool makes new start parameters that yield a coinflip game. | {
"resource": ""
} | ||
c159844 | train | // NewStartWithInt makes new start parameters that yield a coinflip game that picks an int between
// 0 and mod. | {
"resource": ""
} | ||
c159845 | train | // NewStartWithBigInt makes new start parameters that yield a coinflip game that picks big int between
// 0 and mod. | {
"resource": ""
} | ||
c159846 | train | // NewStartWithShuffle makes new start parameters for a coinflip that randomly permutes the numbers
// between 0 and n, exclusive. This can be used to shuffle an array of names. | {
"resource": ""
} | ||
c159847 | train | // AddNotifications takes in a set of messages in this TLF by
// `writer`, and adds them to the history. Once done adding messages,
// the caller should call `Recompute` to find out if more messages
// should be added for any particular writer. It returns the maximum
// known revision including an update from this wr... | {
"resource": ""
} | ||
c159848 | train | // AddUnflushedNotifications adds notifications to a special
// "unflushed" list that takes precedences over the regular
// notifications with revision numbers equal or greater to the minimum
// unflushed revision. | {
"resource": ""
} | ||
c159849 | train | // FlushRevision clears all any unflushed notifications with a
// revision equal or less than `rev`. | {
"resource": ""
} | ||
c159850 | train | // ClearAllUnflushed clears all unflushed notifications. | {
"resource": ""
} | ||
c159851 | train | // ToStatus implements the ExportableError interface for ServerErrorUnauthorized. | {
"resource": ""
} | ||
c159852 | train | // ToStatus implements the ExportableError interface for ServerErrorOverQuota. | {
"resource": ""
} | ||
c159853 | train | // Error implements the Error interface for ServerErrorOverQuota. | {
"resource": ""
} | ||
c159854 | train | // ToStatus implements the ExportableError interface for ServerErrorBlockNonExistent | {
"resource": ""
} | ||
c159855 | train | // ToStatus implements the ExportableError interface for ServerErrorBlockDeleted | {
"resource": ""
} | ||
c159856 | train | // ToStatus implements the ExportableError interface for ServerErrorNonceNonExistent | {
"resource": ""
} | ||
c159857 | train | // ToStatus implements the ExportableError interface for ServerErrorMaxRefExceeded | {
"resource": ""
} | ||
c159858 | train | // IsThrottleError returns whether or not the given error signals
// throttling. | {
"resource": ""
} | ||
c159859 | train | // If a device is cloned, we can provision a new device from the current device
// to get out of the cloned state. | {
"resource": ""
} | ||
c159860 | train | // makeDeviceKeysWithSigner creates device keys given a signing key. | {
"resource": ""
} | ||
c159861 | train | // copied from loginProvision
// ppStream gets the passphrase stream from the cache | {
"resource": ""
} | ||
c159862 | train | // isLoggedInWithUIDAndError conveys if the user is in a logged-in state or not.
// If this function returns `true`, it's because the user is logged in,
// is on a provisioned device, and has an unlocked device key, If this
// function returns `false`, it's because either no one has ever logged onto
// this device, or ... | {
"resource": ""
} | ||
c159863 | train | // GenClientConfigForInternalAPI pulls the information out of the environment configuration,
// and build a Client config that will be used in all API server
// requests | {
"resource": ""
} | ||
c159864 | train | // allowDomain is used to determine whether a given domain should be
// served. It's also used as a HostPolicy in autocert package. | {
"resource": ""
} | ||
c159865 | train | // ListenAndServe listens on 443 and 80 ports of all addresses, and serve
// Keybase Pages based on config and kbfsConfig. HTTPs setup is handled with
// ACME. | {
"resource": ""
} | ||
c159866 | train | // ReportServedRequest implements the StatsReporter interface. | {
"resource": ""
} | ||
c159867 | train | // NewFileBasedActivityStatsStorer creates an ActivityStatsStorer that stores
// activities on a local filesystem.
//
// NOTE that this is meant to be for development and
// testing only and does not scale well. | {
"resource": ""
} | ||
c159868 | train | // RecordActives implement the ActivityStatsStorer interface. | {
"resource": ""
} | ||
c159869 | train | // GetActiveTlfs implement the ActivityStatsStorer interface. | {
"resource": ""
} | ||
c159870 | train | // TimeEqual compares two filesystem-related timestamps.
//
// On platforms that don't use nanosecond-accurate timestamps in their
// filesystem APIs, it truncates the timestamps to make them
// comparable. | {
"resource": ""
} | ||
c159871 | train | // AddNeededHappensBeforeProof adds a new needed proof to the proof set. The
// proof is that `a` happened before `b`. If there are other proofs in the proof set
// that prove the same thing, then we can tighten those proofs with a and b if
// it makes sense. For instance, if there is an existing proof that c<d,
// b... | {
"resource": ""
} | ||
c159872 | train | // Set the latest link map for the team | {
"resource": ""
} | ||
c159873 | train | // lookupMerkleTreeChain loads the path up to the merkle tree and back down that corresponds
// to this proof. It will contact the API server. Returns the sigchain tail on success. | {
"resource": ""
} | ||
c159874 | train | // check a single proof. Call to the merkle API endpoint, and then ensure that the
// data that comes back fits the proof and previously checked sigchain links. | {
"resource": ""
} | ||
c159875 | train | // Find the LinkID for the leaf at the seqno. | {
"resource": ""
} | ||
c159876 | train | // check the entire proof set, failing if any one proof fails. | {
"resource": ""
} | ||
c159877 | train | // NewAuthToken creates a new authentication token. | {
"resource": ""
} | ||
c159878 | train | // Sign is called to create a new signed authentication token. | {
"resource": ""
} | ||
c159879 | train | // SignUserless signs the token without a username, UID, or challenge.
// This is useful for server-to-server communication where identity is
// established using only the KID. Assume the client and server
// clocks are roughly synchronized. | {
"resource": ""
} | ||
c159880 | train | // Helper to stop the refresh ticker. | {
"resource": ""
} | ||
c159881 | train | // CloneWithAddedDepth implements the rpc.LogOutput interface. | {
"resource": ""
} | ||
c159882 | train | // DumpPrivateMetadata returns a detailed dump of the given
// PrivateMetadata's contents. | {
"resource": ""
} | ||
c159883 | train | // makeRootMetadata makes a RootMetadata object from the given
// parameters. | {
"resource": ""
} | ||
c159884 | train | // IsReadable returns true if the private metadata can be read. | {
"resource": ""
} | ||
c159885 | train | // GetTlfHandle returns the TlfHandle for this RootMetadata. | {
"resource": ""
} | ||
c159886 | train | // MakeBareTlfHandle makes a BareTlfHandle for this
// RootMetadata. Should be used only by servers and MDOps. | {
"resource": ""
} | ||
c159887 | train | // IsInitialized returns whether or not this RootMetadata has been initialized | {
"resource": ""
} | ||
c159888 | train | // AddRefBlock adds the newly-referenced block to the add block change list. | {
"resource": ""
} | ||
c159889 | train | // AddUnrefBlock adds the newly-unreferenced block to the add block change list. | {
"resource": ""
} | ||
c159890 | train | // AddUpdate adds the newly-updated block to the add block change list. | {
"resource": ""
} | ||
c159891 | train | // AddOp starts a new operation for this MD update. Subsequent
// AddRefBlock, AddUnrefBlock, and AddUpdate calls will be applied to
// this operation. | {
"resource": ""
} | ||
c159892 | train | // ClearBlockChanges resets the block change lists to empty for this
// RootMetadata. | {
"resource": ""
} | ||
c159893 | train | // SetLastGCRevision sets the last revision up to and including which
// garbage collection was performed on this TLF. | {
"resource": ""
} | ||
c159894 | train | // GetTLFCryptKeyParams wraps the respective method of the underlying BareRootMetadata for convenience. | {
"resource": ""
} | ||
c159895 | train | // KeyGenerationsToUpdate wraps the respective method of the underlying BareRootMetadata for convenience. | {
"resource": ""
} | ||
c159896 | train | // TlfID wraps the respective method of the underlying BareRootMetadata for convenience. | {
"resource": ""
} | ||
c159897 | train | // SetBranchID wraps the respective method of the underlying BareRootMetadata for convenience. | {
"resource": ""
} | ||
c159898 | train | // SetPrevRoot wraps the respective method of the underlying BareRootMetadata for convenience. | {
"resource": ""
} | ||
c159899 | train | // GetSerializedWriterMetadata wraps the respective method of the underlying BareRootMetadata for convenience. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.