_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c158800 | train | // ForceUnmount tries to forcibly unmount a directory | {
"resource": ""
} | ||
c158801 | train | // Write implements the billy.File interface for File. | {
"resource": ""
} | ||
c158802 | train | // Read implements the billy.File interface for File. | {
"resource": ""
} | ||
c158803 | train | // ReadAt implements the billy.File interface for File. | {
"resource": ""
} | ||
c158804 | train | // Seek implements the billy.File interface for File. | {
"resource": ""
} | ||
c158805 | train | // Close implements the billy.File interface for File. | {
"resource": ""
} | ||
c158806 | train | // Lock implements the billy.File interface for File. | {
"resource": ""
} | ||
c158807 | train | // Unlock implements the billy.File interface for File. | {
"resource": ""
} | ||
c158808 | train | // Truncate implements the billy.File interface for File. | {
"resource": ""
} | ||
c158809 | train | // To be used for signatures in a user's signature chain. | {
"resource": ""
} | ||
c158810 | train | // ParsePGPUpdateChainLink creates a PGPUpdateChainLink from a GenericChainLink
// and verifies that its pgp_update section contains a KID and full_hash | {
"resource": ""
} | ||
c158811 | train | // VerifyReverseSig checks a SibkeyChainLink's reverse signature using the ComputedKeyFamily provided. | {
"resource": ""
} | ||
c158812 | train | // VerifyReverseSig checks reverse signature using the key provided.
// does not modify `payload`.
// `path` is the path to the reverse sig spot to null before checking. | {
"resource": ""
} | ||
c158813 | train | // Run then engine | {
"resource": ""
} | ||
c158814 | train | // CCLCheckCompleted is triggered whenever a remote proof check completes.
// We get these calls as a result of being a "CheckCompletedListener".
// When each result comes in, we check against our pool of needed remote
// assertions. If the set is complete, or if one that we need errors,
// we can unblock the caller. | {
"resource": ""
} | ||
c158815 | train | // NewSrv creates a new HTTP server with the given listener
// source. | {
"resource": ""
} | ||
c158816 | train | // Start starts listening on the server's listener source. | {
"resource": ""
} | ||
c158817 | train | // Active returns true if the server is active. | {
"resource": ""
} | ||
c158818 | train | // Addr returns the server's address, if it's running. | {
"resource": ""
} | ||
c158819 | train | // Stop stops listening on the server's listener source. | {
"resource": ""
} | ||
c158820 | train | // NewToken returns a new random token that a HTTP client can use to load
// content from the server. | {
"resource": ""
} | ||
c158821 | train | // New creates and starts a new server. | {
"resource": ""
} | ||
c158822 | train | // Address returns the address that the server is listening on. | {
"resource": ""
} | ||
c158823 | train | // Shutdown shuts down the server. | {
"resource": ""
} | ||
c158824 | train | // NewTrackEngine creates a default TrackEngine for tracking theirName. | {
"resource": ""
} | ||
c158825 | train | // OpenFile wraps OpenFile from "os". | {
"resource": ""
} | ||
c158826 | train | // Mkdir wraps MkdirAll from "os". | {
"resource": ""
} | ||
c158827 | train | // MkdirAll wraps MkdirAll from "os". | {
"resource": ""
} | ||
c158828 | train | // Stat wraps Stat from "os". | {
"resource": ""
} | ||
c158829 | train | // Remove wraps Remove from "os". | {
"resource": ""
} | ||
c158830 | train | // Rename wraps Rename from "os". | {
"resource": ""
} | ||
c158831 | train | // Insert inserts the given ComputedKeyInfo object 1 or 2 times,
// depending on if a KID or PGPFingerprint or both are available. | {
"resource": ""
} | ||
c158832 | train | // PaperDevices returns a list of all the paperkey devices. | {
"resource": ""
} | ||
c158833 | train | // For use when there are no chain links at all, so all we can do is trust the
// eldest key that the server reported. | {
"resource": ""
} | ||
c158834 | train | // ParseKeyFamily takes as input a dictionary from a JSON file and returns
// a parsed version for manipulation in the program. | {
"resource": ""
} | ||
c158835 | train | // As FindActiveSibkey, but for a specific time. Note that going back in time
// only affects expiration, not revocation. Thus this function is mainly useful
// for validating the sigchain, when each delegation and revocation is getting
// replayed in order. | {
"resource": ""
} | ||
c158836 | train | // FindActiveEncryptionSubkey takes a given KID and finds the corresponding
// active encryption subkey in the current key family. If for any reason it
// cannot find the key, it will return an error saying why. Otherwise, it will
// return the key. In this case either key is non-nil, or err is non-nil. | {
"resource": ""
} | ||
c158837 | train | // TclToKeybaseTime turns a TypedChainLink into a KeybaseTime tuple, looking
// inside the chainlink for the Unix wallclock and the global MerkleChain seqno. | {
"resource": ""
} | ||
c158838 | train | // NowAsKeybaseTime makes a representation of now. IF we don't know the MerkleTree
// chain seqno, just use 0 | {
"resource": ""
} | ||
c158839 | train | // Delegate performs a delegation to the key described in the given TypedChainLink.
// This maybe be a sub- or sibkey delegation. | {
"resource": ""
} | ||
c158840 | train | // Delegate marks the given ComputedKeyInfos object that the given kid is now
// delegated, as of time tm, in sigid, as signed by signingKid, etc.
// fau = "FirstAppearedUnverified", a hint from the server that we're going to persist.
// dascl = "DelegatedAtSigChainLocation" | {
"resource": ""
} | ||
c158841 | train | // DelegatePerUserKey inserts the new per-user key into the list of known per-user keys. | {
"resource": ""
} | ||
c158842 | train | // Revoke examines a TypeChainLink and applies any revocations in the link
// to the current ComputedKeyInfos. | {
"resource": ""
} | ||
c158843 | train | // ClearActivePGPHash clears authoritative hash of PGP key, after a revoke. | {
"resource": ""
} | ||
c158844 | train | // revokeSigs operates on the per-signature revocations in the given
// TypedChainLink and applies them accordingly. | {
"resource": ""
} | ||
c158845 | train | // revokeKids operates on the per-kid revocations in the given
// TypedChainLink and applies them accordingly. | {
"resource": ""
} | ||
c158846 | train | // FindKeybaseName looks at all PGP keys in this key family that are active
// sibkeys to find a key with a signed identity of <name@keybase.io>. IF
// found return true, and otherwise false. | {
"resource": ""
} | ||
c158847 | train | // LocalDelegate performs a local key delegation, without the server's permissions.
// We'll need to do this when a key is locally generated. | {
"resource": ""
} | ||
c158848 | train | // HasActiveKey returns if the given ComputeKeyFamily has any active keys.
// The key has to be in the server-given KeyFamily and also in our ComputedKeyFamily.
// The former check is so that we can handle the case nuked sigchains. | {
"resource": ""
} | ||
c158849 | train | // GetActivePGPKeys gets the active PGP keys from the ComputedKeyFamily.
// If sibkey is False it will return all active PGP keys. Otherwise, it
// will return only the Sibkeys. Note the keys need to be non-canceled,
// and non-expired. | {
"resource": ""
} | ||
c158850 | train | // UpdateDevices takes the Device object from the given ChainLink
// and updates keys to reflects any device changes encoded therein. | {
"resource": ""
} | ||
c158851 | train | // GetSibkeyForDevice gets the current per-device key for the given Device. Will
// return nil if one isn't found, and set err for a real error. The sibkey should
// be a signing key, not an encryption key of course. | {
"resource": ""
} | ||
c158852 | train | // GetCurrentDevice returns the current device. | {
"resource": ""
} | ||
c158853 | train | // GetEncryptionSubkeyForDevice gets the current encryption subkey for the given device. | {
"resource": ""
} | ||
c158854 | train | // GetDeviceForKey gets the device that this key is bound to, if any. | {
"resource": ""
} | ||
c158855 | train | // 15 random bytes, followed by the byte 0x25, encoded as hex | {
"resource": ""
} | ||
c158856 | train | // NewDeviceKeygen creates a DeviceKeygen engine. | {
"resource": ""
} | ||
c158857 | train | // Can return no boxes if there are no per-user-keys. | {
"resource": ""
} | ||
c158858 | train | // New creates a Bundle from an existing secret key. | {
"resource": ""
} | ||
c158859 | train | // NewInitial creates a Bundle with a new random secret key. | {
"resource": ""
} | ||
c158860 | train | // MakeMobileOnly transforms an account in a stellar1.Bundle into a mobile-only
// account. This advances the revision of the Bundle. If it's already mobile-only,
// this function will return ErrNoChangeNecessary. | {
"resource": ""
} | ||
c158861 | train | // AccountWithSecret finds an account in bundle and its associated secret
// and extracts them into a convenience type bundle.WithSecret.
// It will return libkb.NotFoundError if it can't find the secret or the
// account in the bundle. | {
"resource": ""
} | ||
c158862 | train | // AdvanceBundle only advances the revisions and hashes on the Bundle
// and not on the accounts. This is useful for adding and removing accounts
// but not for changing them. | {
"resource": ""
} | ||
c158863 | train | // AddAccount adds an account to the bundle. Mutates `bundle`. | {
"resource": ""
} | ||
c158864 | train | // CreateNewAccount generates a Stellar key pair and adds it to the
// bundle. Mutates `bundle`. | {
"resource": ""
} | ||
c158865 | train | // validBatch verifies the topic type is CHAT | {
"resource": ""
} | ||
c158866 | train | // Search tokenizes the given query and finds the intersection of all matches
// for each token, returning matches. | {
"resource": ""
} | ||
c158867 | train | // SelectiveSync queues up a small number of jobs on the background loader
// periodically so our index can cover all conversations. The number of jobs
// varies between desktop and mobile so mobile can be more conservative. | {
"resource": ""
} | ||
c158868 | train | // CurrentUser returns a UserPath representing the current user. | {
"resource": ""
} | ||
c158869 | train | // SplitAndNormalizeTLFName returns separate lists of normalized
// writer and reader names, as well as the extension suffix, of the
// given `name`. | {
"resource": ""
} | ||
c158870 | 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. | {
"resource": ""
} | ||
c158871 | train | // ToStatus implements the keybase1.ToStatusAble interface for NoSuchUserError | {
"resource": ""
} | ||
c158872 | train | // SafeWriteToFile is a pass-through to safeWriteToFileOnce on non-Windows. | {
"resource": ""
} | ||
c158873 | train | // checkPregenPrivate makes sure that the pregenerated key is a
// private key. | {
"resource": ""
} | ||
c158874 | train | // clonePGPKeyBundle returns an approximate deep copy of PGPKeyBundle
// by exporting and re-importing PGPKeyBundle. If PGP key contains
// something that is not supported by either go-crypto exporter or
// importer, that information will be lost. | {
"resource": ""
} | ||
c158875 | train | // NewInitModeFromType returns an InitMode object corresponding to the
// given type. | {
"resource": ""
} | ||
c158876 | train | // NewUserCardCache creates a UserCardCache. keybase1.UserCards will expire
// after maxAge. | {
"resource": ""
} | ||
c158877 | train | // Get looks for a keybase1.UserCard for uid. It returns nil, nil if not found.
// useSession is set if the card is being looked up with a session. | {
"resource": ""
} | ||
c158878 | train | // Any valid key matches the empty string. | {
"resource": ""
} | ||
c158879 | train | // NewKeyBundleCacheMeasured creates and returns a new KeyBundleCacheMeasured
// instance with the given delegate and registry. | {
"resource": ""
} | ||
c158880 | train | // GetTLFReaderKeyBundle implements the KeyBundleCache interface for
// KeyBundleCacheMeasured. | {
"resource": ""
} | ||
c158881 | train | // GetTLFWriterKeyBundle implements the KeyBundleCache interface for
// KeyBundleCacheMeasured. | {
"resource": ""
} | ||
c158882 | train | // PutTLFReaderKeyBundle implements the KeyBundleCache interface for
// KeyBundleCacheMeasured. | {
"resource": ""
} | ||
c158883 | train | // PutTLFWriterKeyBundle implements the KeyBundleCache interface for
// KeyBundleCacheMeasured. | {
"resource": ""
} | ||
c158884 | train | // NewUserEditHistoryFile returns a special read file that contains a text
// representation of the file edit history for the logged-in user. | {
"resource": ""
} | ||
c158885 | train | // Sign implements the Crypto interface for CryptoClient. | {
"resource": ""
} | ||
c158886 | train | // SignToString implements the Crypto interface for CryptoClient. | {
"resource": ""
} | ||
c158887 | train | // DecryptTLFCryptKeyClientHalf implements the Crypto interface for
// CryptoClient. | {
"resource": ""
} | ||
c158888 | train | // DecryptTLFCryptKeyClientHalfAny implements the Crypto interface for
// CryptoClient. | {
"resource": ""
} | ||
c158889 | train | // DecryptTeamMerkleLeaf implements the Crypto interface for
// CryptoClient. | {
"resource": ""
} | ||
c158890 | train | // MakeGetBlockArg builds a keybase1.GetBlockArg from the given params. | {
"resource": ""
} | ||
c158891 | train | // ParseGetBlockRes parses the given keybase1.GetBlockRes into its
// components. | {
"resource": ""
} | ||
c158892 | train | // MakePutBlockArg builds a keybase1.PutBlockArg from the given params. | {
"resource": ""
} | ||
c158893 | train | // MakePutBlockAgainArg builds a keybase1.PutBlockAgainArg from the
// given params. | {
"resource": ""
} | ||
c158894 | train | // MakeAddReferenceArg builds a keybase1.AddReferenceArg from the
// given params. | {
"resource": ""
} | ||
c158895 | train | // getNotDone returns the set of block references in "all" that do not
// yet appear in "results" | {
"resource": ""
} | ||
c158896 | train | // BatchDowngradeReferences archives or deletes a batch of references,
// handling all batching and throttles. | {
"resource": ""
} | ||
c158897 | train | // GetLiveCounts computes the maximum live count for each ID over its
// RefNonces. | {
"resource": ""
} | ||
c158898 | train | // This is only relevant for ephemeralMessages that are deleted since we want
// these to show up in the gui as "explode now" | {
"resource": ""
} | ||
c158899 | train | // makeCmdLine builds a command line out of args by escaping "special"
// characters and joining the arguments with spaces. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.