_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c160800 | train | // boxMessageWithKeys encrypts and signs a keybase1.MessagePlaintext into a
// chat1.MessageBoxed given a keybase1.CryptKey. | {
"resource": ""
} | ||
c160801 | train | // V3 is just V2 but with exploding messages support. V4 is just V3, but it
// signs with the zero key when pairwise MACs are included. | {
"resource": ""
} | ||
c160802 | train | // seal encrypts data into chat1.EncryptedData. | {
"resource": ""
} | ||
c160803 | train | // open decrypts chat1.EncryptedData. | {
"resource": ""
} | ||
c160804 | train | // signMarshal signs data with a NaclSigningKeyPair, returning a chat1.SignatureInfo.
// It marshals data before signing. | {
"resource": ""
} | ||
c160805 | train | // signEncryptMarshal signencrypts data given an encryption and signing key, returning a chat1.SignEncryptedData.
// It marshals data before signing. | {
"resource": ""
} | ||
c160806 | train | // sign signs msg with a NaclSigningKeyPair, returning a chat1.SignatureInfo. | {
"resource": ""
} | ||
c160807 | train | // signEncrypt signencrypts msg. | {
"resource": ""
} | ||
c160808 | train | // signEncryptOpen opens and verifies chat1.SignEncryptedData. | {
"resource": ""
} | ||
c160809 | train | // verifyMessage checks that a message is valid.
// Only works on MessageBoxedVersion_V1 | {
"resource": ""
} | ||
c160810 | train | // verifyMessageHeaderV1 checks the body hash, header signature, and signing key validity. | {
"resource": ""
} | ||
c160811 | train | // verify verifies the signature of data using SignatureInfo. | {
"resource": ""
} | ||
c160812 | train | // See note on compareHeadersMBV2orV3. | {
"resource": ""
} | ||
c160813 | train | // SaltpackEncrypt reads from the given source, encrypts it for the given
// receivers from the given sender, and writes it to sink. If
// Binary is false, the data written to sink will be armored. | {
"resource": ""
} | ||
c160814 | train | // FetchRootFromServer fetches a root from the server. If the last-fetched root was fetched within
// freshness ago, then OK to return the last-fetched root. Otherwise refetch. Similarly, if the freshness
// passed is 0, then always refresh. | {
"resource": ""
} | ||
c160815 | train | // `isUser` is true for loading a user and false for loading a team. | {
"resource": ""
} | ||
c160816 | train | // readSkipSequenceFromAPIRes returns a SkipSequence. We construct the sequence by starting with the
// most recent merkle root, adding the "skip" pointers returned by the server, and finally bookending
// with the merkle root we last fetched from the DB. In verifySkipSequence, we walk over this Sequence
// to make sur... | {
"resource": ""
} | ||
c160817 | train | // storeRoot stores the root in the db and mem.
// Must be called from under a lock. | {
"resource": ""
} | ||
c160818 | train | // newChatLocalHandler creates a chatLocalHandler. | {
"resource": ""
} | ||
c160819 | train | // NewNonTLFStatusFile returns a special read file that contains a
// text representation of the global KBFS status. | {
"resource": ""
} | ||
c160820 | train | // IsSocialAssertion returns true for strings that are valid
// social assertions. They do not need to be normalized, so
// user@twitter and twitter:user will work, as will
// USER@Twitter. | {
"resource": ""
} | ||
c160821 | train | // There are plenty of race conditions where the PTK or teamEK or
// membership list can change out from under us while we're in the middle
// of posting a new key, causing the post to fail. Detect these conditions
// and retry. | {
"resource": ""
} | ||
c160822 | train | // Returns nil if the team has never published a teamEK. If the team has
// published a teamEK, but has since rolled their PTK without publishing a new
// one, this function will also return nil and log a warning. This is a
// transitional thing, and eventually when all "reasonably up to date" clients
// in the wild ha... | {
"resource": ""
} | ||
c160823 | train | // Returns nil if all team members have never published a teamEK. Verifies that
// the map of users the server returns are indeed valid team members of the
// team and all signatures verify correctly for the users. | {
"resource": ""
} | ||
c160824 | train | // update things after user changed. | {
"resource": ""
} | ||
c160825 | train | // Get new links from the server. | {
"resource": ""
} | ||
c160826 | train | // Get full links from the server.
// Does not guarantee that the server returned the correct links, nor that they are unstubbed. | {
"resource": ""
} | ||
c160827 | train | // NewCoalescingContext creates a new CoalescingContext. The context _must_ be
// canceled to avoid a goroutine leak. | {
"resource": ""
} | ||
c160828 | train | // AddContext adds a context to the set of contexts that we're waiting on. | {
"resource": ""
} | ||
c160829 | train | // Post implements Post in the kex2.MessageRouter interface. | {
"resource": ""
} | ||
c160830 | train | // Get implements Get in the kex2.MessageRouter interface. | {
"resource": ""
} | ||
c160831 | train | // NewCmdSimpleFSRead creates a new cli.Command. | {
"resource": ""
} | ||
c160832 | train | // NewAutoFlushingBufferedWriter returns an io.Writer that buffers its output
// and flushes automatically after `flushFrequency`. | {
"resource": ""
} | ||
c160833 | train | // EnableBufferedLogging turns on buffered logging - this is a performance
// boost at the expense of not getting all the logs in a crash. | {
"resource": ""
} | ||
c160834 | train | // loadLibrary calls win32 LoadLibrary and logs the result. | {
"resource": ""
} | ||
c160835 | train | // doLoadDLL tries to load the dokan DLL from various locations. | {
"resource": ""
} | ||
c160836 | train | // loadDokanDLL tries to load the dokan DLL from
// the given path. Empty path is allowed and will
// result in the location being guessed. | {
"resource": ""
} | ||
c160837 | train | // transformPaymentStellar converts a stellar1.PaymentSummaryStellar into a stellar1.PaymentLocal. | {
"resource": ""
} | ||
c160838 | train | // transformPaymentDirect converts a stellar1.PaymentSummaryDirect into a stellar1.PaymentLocal. | {
"resource": ""
} | ||
c160839 | train | // TransformToAirdropStatus takes the result from api server status_check
// and transforms it into stellar1.AirdropStatus. | {
"resource": ""
} | ||
c160840 | train | // deadlockDetect tries to find a deadlock condition in the current set of waiting acquirers. | {
"resource": ""
} | ||
c160841 | train | // Acquire obtains a per user per conversation lock on a per trace basis. That is, the lock is a
// shared lock for the current chat trace, and serves to synchronize large chat operations. If there is
// no chat trace, this is a no-op. | {
"resource": ""
} | ||
c160842 | train | // For a given conversation, purge all ephemeral messages from
// purgeInfo.MinUnexplodedID to the present, updating bookkeeping for the next
// time we need to purge this conv. | {
"resource": ""
} | ||
c160843 | train | // Merge two lists of UIDs. Duplicates will be dropped. Not stably ordered. | {
"resource": ""
} | ||
c160844 | train | // ResolveAgain tries to resolve any unresolved assertions in the
// given handle and returns a new handle with the results. As an
// optimization, if h contains no unresolved assertions, it just
// returns itself. | {
"resource": ""
} | ||
c160845 | train | // ResolvesTo returns whether this handle resolves to the given one.
// It also returns the partially-resolved version of h, i.e. h
// resolved except for unresolved assertions in other; this should
// equal other if and only if true is returned. | {
"resource": ""
} | ||
c160846 | train | // MutuallyResolvesTo checks that the target handle, and the provided
// `other` handle, resolve to each other. | {
"resource": ""
} | ||
c160847 | train | // ResolveImplicitTeam implements the KBPKI interface for noImplicitTeamKBPKI. | {
"resource": ""
} | ||
c160848 | train | // ParseHandlePreferredQuick parses a handle from a name, without
// doing this time consuming checks needed for implicit-team checking
// or TLF-ID-fetching. | {
"resource": ""
} | ||
c160849 | train | // newLoginLoadUser creates a loginLoadUser engine. `username` argument is
// optional. | {
"resource": ""
} | ||
c160850 | train | // Begin recursive list of items in directory at path.
// If `refreshSubscription` is true and the path is a KBFS path, simpleFS
// will begin sending `FSPathUpdated` notifications for the for the
// corresponding TLF, until another call refreshes the subscription on a
// different TLF. | {
"resource": ""
} | ||
c160851 | train | // Begin recursive list of items in directory at path up to a given depth | {
"resource": ""
} | ||
c160852 | train | // Get list of Paths in progress. Can indicate status of pending
// to get more entries. | {
"resource": ""
} | ||
c160853 | train | // Begin copy of file or directory | {
"resource": ""
} | ||
c160854 | train | // Make a symlink of file or directory | {
"resource": ""
} | ||
c160855 | train | // Begin recursive copy of directory | {
"resource": ""
} | ||
c160856 | train | // Rename file or directory, KBFS side only | {
"resource": ""
} | ||
c160857 | train | // Append content to opened file.
// May be repeated until OpID is closed. | {
"resource": ""
} | ||
c160858 | train | // Remove file or directory from filesystem | {
"resource": ""
} | ||
c160859 | train | // Get info about file | {
"resource": ""
} | ||
c160860 | train | // Get revision info for a directory entry | {
"resource": ""
} | ||
c160861 | train | // Get list of revisions in progress. Can indicate status of pending
// to get more revisions. | {
"resource": ""
} | ||
c160862 | train | // Convenience helper for generating new random value | {
"resource": ""
} | ||
c160863 | train | // Cancels a running operation, like copy. | {
"resource": ""
} | ||
c160864 | train | // Check progress of pending operation | {
"resource": ""
} | ||
c160865 | train | // Get all the outstanding operations | {
"resource": ""
} | ||
c160866 | train | // Blocking wait for the pending operation to finish | {
"resource": ""
} | ||
c160867 | train | // Instructs KBFS to dump debugging info into its logs. | {
"resource": ""
} | ||
c160868 | train | // Clear the conflict state of a TLF. | {
"resource": ""
} | ||
c160869 | train | // Get sync status. | {
"resource": ""
} | ||
c160870 | train | // simpleFSListFavorites gets the current favorites, ignored folders, and new
// folders from the KBFS cache. | {
"resource": ""
} | ||
c160871 | train | // simpleFSGetUserQuotaUsage returns the quota usage for the logged-in
// user. Any usage includes local journal usage as well. | {
"resource": ""
} | ||
c160872 | train | // simpleFSGetTeamQuotaUsage returns the quota usage for the given team, if
// the logged-in user has access to that team. Any usage includes
// local journal usage as well. | {
"resource": ""
} | ||
c160873 | train | // simpleFSReset completely resets the KBFS folder referenced in `path`.
// It should only be called after explicit user confirmation. | {
"resource": ""
} | ||
c160874 | train | // Helper to aid in enforcement that only specified public keys can
// access TLF metadata. mergedMasterHead can be nil, in which case
// true is returned. | {
"resource": ""
} | ||
c160875 | train | // Init runs the Keybase services | {
"resource": ""
} | ||
c160876 | train | // LogSend sends a log to Keybase | {
"resource": ""
} | ||
c160877 | train | // WriteB64 sends a base64 encoded msgpack rpc payload | {
"resource": ""
} | ||
c160878 | train | // ReadB64 is a blocking read for base64 encoded msgpack rpc data.
// It is called serially by the mobile run loops. | {
"resource": ""
} | ||
c160879 | train | // Reset resets the socket connection | {
"resource": ""
} | ||
c160880 | train | // ForceGC Forces a gc | {
"resource": ""
} | ||
c160881 | train | // pushPendingMessageFailure sends at most one notification that a message
// failed to send. We don't notify the user about background failures like
// unfurling. | {
"resource": ""
} | ||
c160882 | train | // AppWillExit is called reliably on iOS when the app is about to terminate
// not as reliably on android | {
"resource": ""
} | ||
c160883 | train | // AppBeginBackgroundTask notifies us that an app background task has been started on our behalf. This
// function will return once we no longer need any time in the background. | {
"resource": ""
} | ||
c160884 | train | // NewCryptoLocal constructs a new CryptoLocal instance with the given
// signing key. | {
"resource": ""
} | ||
c160885 | train | // DecryptTLFCryptKeyClientHalf implements the Crypto interface for
// CryptoLocal. | {
"resource": ""
} | ||
c160886 | train | // DecryptTLFCryptKeyClientHalfAny implements the Crypto interface for
// CryptoLocal. | {
"resource": ""
} | ||
c160887 | train | // DecryptTeamMerkleLeaf implements the Crypto interface for
// CryptoLocal. | {
"resource": ""
} | ||
c160888 | train | // GetEncodedUpdateHistory returns a JSON-encoded version of a TLF's
// complete update history. | {
"resource": ""
} | ||
c160889 | train | // NewKeyCacheStandard constructs a new KeyCacheStandard with the given
// cache capacity. | {
"resource": ""
} | ||
c160890 | train | // GetTLFCryptKey implements the KeyCache interface for KeyCacheStandard. | {
"resource": ""
} | ||
c160891 | train | // PutTLFCryptKey implements the KeyCache interface for KeyCacheStandard. | {
"resource": ""
} | ||
c160892 | train | // PrettyJSON marshals a value to human-readable JSON. | {
"resource": ""
} | ||
c160893 | train | // Count returns the current resource count. | {
"resource": ""
} | ||
c160894 | train | // tryAcquire tries to acquire n resources. If successful, nil is
// returned. Otherwise, a channel which will be closed when new
// resources are available is returned. In either case, the
// possibly-updated resource count is returned. | {
"resource": ""
} | ||
c160895 | train | // LsofMount does not return an error if it was unable to lsof
// the mountpoint or the mountpoint does not exist. | {
"resource": ""
} | ||
c160896 | train | // Open implements the billy.Filesystem interface for RootFS. | {
"resource": ""
} | ||
c160897 | train | // OpenFile implements the billy.Filesystem interface for RootFS. | {
"resource": ""
} | ||
c160898 | train | // Lstat implements the billy.Filesystem interface for RootFS. | {
"resource": ""
} | ||
c160899 | train | // Stat implements the billy.Filesystem interface for RootFS. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.