_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c158700 | train | // getBlockDeferredGCRange wraps blockJournal.getDeferredGCRange. The
// returned blockJournal should be used instead of j.blockJournal, as
// we want to call blockJournal.doGC outside of journalLock. | {
"resource": ""
} | ||
c158701 | train | // getUnflushedPathMDInfos converts the given list of bare root
// metadatas into unflushedPathMDInfo objects. The caller must NOT
// hold `j.journalLock`, because blocks from the journal may need to
// be read as part of the decryption. | {
"resource": ""
} | ||
c158702 | train | // disable prevents new operations from hitting the journal. Will
// fail unless the journal is completely empty. | {
"resource": ""
} | ||
c158703 | train | // Error implements the error interface for ErrDiskLimitTimeout. It
// has a pointer receiver because `block_util.go` need to
// modify it in some cases while preserving any stacks attached to it
// via the `errors` package. | {
"resource": ""
} | ||
c158704 | train | // NewSpecialKeyRing allocates a new SpecialKeyRing with the given
// vector of KIDs. For NaCl keys, it will actually import those
// keys into the Keyring. | {
"resource": ""
} | ||
c158705 | train | // Get the receivers of the new per-user-key boxes.
// Includes all device subkeys except any being revoked by this engine. | {
"resource": ""
} | ||
c158706 | train | // BranchNameFromArchiveRefDir returns a branch name and true if the
// given directory name is specifying an archived revision with a
// revision number. | {
"resource": ""
} | ||
c158707 | train | // FileDataFromRelativeTimeString returns a byte string containing the
// name of a revision-based archive directory, and true, if the given
// file name specifies a valid by-relative-time file name. The time
// is relative to the local clock. | {
"resource": ""
} | ||
c158708 | train | // NewPerUserKeyUpgradeBackground creates a PerUserKeyUpgradeBackground engine. | {
"resource": ""
} | ||
c158709 | train | // NewLKSForEncrypt gets a verified passphrase stream, and returns
// an LKS that works for encryption. | {
"resource": ""
} | ||
c158710 | train | // EncryptClientHalfRecovery takes the client half of the LKS secret
// and encrypts it for the given key. This is for recovery of passphrases
// on device recovery operations. | {
"resource": ""
} | ||
c158711 | train | // ToSKB exports a generic key with the given LKSec to a SecretKeyBundle,
// performing all necessary encryption. | {
"resource": ""
} | ||
c158712 | train | // writeJSON writes the whitelist manifest JSON file adjacent to the app's
// binary. | {
"resource": ""
} | ||
c158713 | train | // Install on Windows ignores the provided user and always installs in the
// CURRET_USER context, writing the JSON adjacent to the binary path. | {
"resource": ""
} | ||
c158714 | train | // NewUserHandler creates a UserHandler for the xp transport. | {
"resource": ""
} | ||
c158715 | train | // ListTrackers gets the list of trackers for a user by uid. | {
"resource": ""
} | ||
c158716 | train | // ListTrackersByName gets the list of trackers for a user by
// username. | {
"resource": ""
} | ||
c158717 | train | // ListTrackersSelf gets the list of trackers for the logged in
// user. | {
"resource": ""
} | ||
c158718 | train | // PutS3 uploads the data in Reader r to S3. It chooses whether to use
// putSingle or putMultiPipeline based on the size of the object. | {
"resource": ""
} | ||
c158719 | train | // putSingle uploads data in r to S3 with the Put API. It has to be
// used for anything less than 5MB. It can be used for anything up
// to 5GB, but putMultiPipeline best for anything over 5MB. | {
"resource": ""
} | ||
c158720 | train | // makeBlockJobs reads ciphertext chunks from r and creates jobs that it puts onto blockCh.
// If this is a resumed upload, it verifies the blocks against the local stash before
// creating jobs. | {
"resource": ""
} | ||
c158721 | train | // addJob creates a job and puts it on blockCh, unless the blockCh isn't ready and the context has been canceled. | {
"resource": ""
} | ||
c158722 | train | // uploadPart handles uploading a job to S3. The job `b` has already passed local stash verification.
// If this is a resumed upload, it checks the previous parts reported by S3 and will skip uploading
// any that already exist. | {
"resource": ""
} | ||
c158723 | train | // Open decrypts Ctext using encKey. | {
"resource": ""
} | ||
c158724 | train | // NewCountMeter returns a new CountMeter. | {
"resource": ""
} | ||
c158725 | train | // Count returns the overall count. | {
"resource": ""
} | ||
c158726 | train | // Mark ticks the counters. | {
"resource": ""
} | ||
c158727 | train | // Rate1 returns the number of ticks in the last 1 minute. | {
"resource": ""
} | ||
c158728 | train | // Rate5 returns the number of ticks in the last 5 minutes. | {
"resource": ""
} | ||
c158729 | train | // Rate15 returns the number of ticks in the last 15 minutes. | {
"resource": ""
} | ||
c158730 | train | // RateMean returns the overall count of ticks. | {
"resource": ""
} | ||
c158731 | train | // Snapshot returns the snapshot in time of this CountMeter. | {
"resource": ""
} | ||
c158732 | train | // Shutdown shuts down this CountMeter. | {
"resource": ""
} | ||
c158733 | train | // NewDirData creates a new DirData instance. | {
"resource": ""
} | ||
c158734 | train | // GetTopBlock returns the top-most block in this directory block tree. | {
"resource": ""
} | ||
c158735 | train | // GetChildren returns a map of all the child EntryInfos in this
// directory. | {
"resource": ""
} | ||
c158736 | train | // Lookup returns the DirEntry for the given entry named by `name` in
// this directory. | {
"resource": ""
} | ||
c158737 | train | // AddEntry adds a new entry to this directory. | {
"resource": ""
} | ||
c158738 | train | // UpdateEntry updates an existing entry to this directory. | {
"resource": ""
} | ||
c158739 | train | // RemoveEntry removes an entry from this directory. | {
"resource": ""
} | ||
c158740 | train | // Ready readies all the dirty child blocks for a directory tree with
// an indirect top-block, and updates their block IDs in their parent
// block's list of indirect pointers. It returns a map pointing from
// the new block info from any readied block to its corresponding old
// block pointer. | {
"resource": ""
} | ||
c158741 | train | // GetIndirectDirBlockInfos returns all of the BlockInfos for blocks
// pointed to by indirect blocks within this directory tree. | {
"resource": ""
} | ||
c158742 | train | // NewBadgeState creates a new empty BadgeState. | {
"resource": ""
} | ||
c158743 | train | // Exports the state summary | {
"resource": ""
} | ||
c158744 | train | // SetWalletAccountUnreadCount sets the unread count for a wallet account.
// It returns true if the call changed the unread count for accountID. | {
"resource": ""
} | ||
c158745 | train | // SaltpackRecipientKeyfinderEngine creates a SaltpackRecipientKeyfinderEngine engine. | {
"resource": ""
} | ||
c158746 | train | // identifyAndAddUserRecipient add the KID corresponding to a recipient to the recipientMap | {
"resource": ""
} | ||
c158747 | train | // GenerateChallenge returns a cryptographically secure random challenge string. | {
"resource": ""
} | ||
c158748 | train | // IsValidChallenge returns true if the passed challenge is validly formed. | {
"resource": ""
} | ||
c158749 | train | // Attr implements the fs.Node interface for PrefetchFile. | {
"resource": ""
} | ||
c158750 | train | // Write implements the fs.HandleWriter interface for PrefetchFile. | {
"resource": ""
} | ||
c158751 | train | // Error implements the error interface for NeedSelfRekeyError | {
"resource": ""
} | ||
c158752 | train | // ToStatus exports error to status | {
"resource": ""
} | ||
c158753 | train | // Error implements the error interface for NotFileError | {
"resource": ""
} | ||
c158754 | train | // Error implements the error interface for NotDirError | {
"resource": ""
} | ||
c158755 | train | // Error implements the error interface for NoSuchMDError | {
"resource": ""
} | ||
c158756 | train | // Error implements the error interface for NewDataVersionError. | {
"resource": ""
} | ||
c158757 | train | // Error implements the error interface for TooLowByteCountError | {
"resource": ""
} | ||
c158758 | train | // Error implements the error interface for InconsistentEncodedSizeError | {
"resource": ""
} | ||
c158759 | train | // Error implements the error interface for UnverifiableTlfUpdateError. | {
"resource": ""
} | ||
c158760 | train | // Error implements the error interface for KeyCacheMissError. | {
"resource": ""
} | ||
c158761 | train | // Error implements the error interface for KeyCacheHitError. | {
"resource": ""
} | ||
c158762 | train | // Error implements the error interface for WrongOpsError. | {
"resource": ""
} | ||
c158763 | train | // Error implements the error interface for KeyHalfMismatchError. | {
"resource": ""
} | ||
c158764 | train | // Error implements the error interface for MDUpdateInvertError. | {
"resource": ""
} | ||
c158765 | train | // Error implements the error interface for NoChainFoundError. | {
"resource": ""
} | ||
c158766 | train | // Error implements the error interface for NameTooLongError. | {
"resource": ""
} | ||
c158767 | train | // Error implements the error interface for RekeyPermissionError | {
"resource": ""
} | ||
c158768 | train | // NewRekeyPermissionError constructs a RekeyPermissionError for the given
// directory and user. | {
"resource": ""
} | ||
c158769 | train | // Error implements the error interface for NoSuchFolderListError | {
"resource": ""
} | ||
c158770 | train | // Error implements the error interface for OverQuotaWarning. | {
"resource": ""
} | ||
c158771 | train | // ToStatus implements the ExportableError interface for DiskBlockCacheError. | {
"resource": ""
} | ||
c158772 | train | // ToStatus implements the ExportableError interface for DiskMDCacheError. | {
"resource": ""
} | ||
c158773 | train | // ToStatus implements the ExportableError interface for DiskQuotaCacheError. | {
"resource": ""
} | ||
c158774 | train | // Error implements the Error interface for RevokedDeviceVerificationError. | {
"resource": ""
} | ||
c158775 | train | // Error implements the Error interface for MDWrittenAfterRevokeError. | {
"resource": ""
} | ||
c158776 | train | // Error implements the Error interface for RevGarbageCollectedError. | {
"resource": ""
} | ||
c158777 | train | // Error implements the Error interface for NextMDNotCachedError. | {
"resource": ""
} | ||
c158778 | train | // Error implements the Error interface for DiskCacheTooFullForBlockError. | {
"resource": ""
} | ||
c158779 | train | // NewSecurityDescriptorWithBuffer creates a new self-referential
// security descriptor in the buffer provided. | {
"resource": ""
} | ||
c158780 | train | // SetOwner sets the owner field of a SecurityDescriptor. | {
"resource": ""
} | ||
c158781 | train | // SetGroup sets the owner field of a SecurityDescriptor. | {
"resource": ""
} | ||
c158782 | train | // SetDacl sets a dacl in the security descriptor to the given ACL. | {
"resource": ""
} | ||
c158783 | train | // bufToSlice returns a byte slice aliasing the pointer and length given as arguments. | {
"resource": ""
} | ||
c158784 | train | // get determines if the item is in the cache and newer than 10
// minutes. We don't want to cache this value indefinitely in case the page
// content changes. | {
"resource": ""
} | ||
c158785 | train | // MakePaperKeyPhrase creates a new, random paper key phrase for
// the given version. | {
"resource": ""
} | ||
c158786 | train | // NewPaperKeyPhrase converts a string into a PaperKeyPhrase. | {
"resource": ""
} | ||
c158787 | train | // Version calculates the phrase version. 0-15 are possible
// versions. | {
"resource": ""
} | ||
c158788 | train | // wordVersion calculates the paper key phrase version based on a
// word. | {
"resource": ""
} | ||
c158789 | train | // NewPassphraseChange creates a new engine for changing user passphrases,
// either if the current passphrase is known, or in "force" mode | {
"resource": ""
} | ||
c158790 | train | // Prereqs returns engine prereqs | {
"resource": ""
} | ||
c158791 | train | // findUpdateKeys looks for keys to perform the passphrase update.
// The first choice is device keys. If that fails, it will look
// for backup keys. If backup keys are necessary, then it will
// also log the user in with the backup keys. | {
"resource": ""
} | ||
c158792 | train | // 1. Get keys for decryption and signing
// 2. If necessary, log in with backup keys
// 3. Get lks client half from server
// 4. Post an update passphrase proof | {
"resource": ""
} | ||
c158793 | train | // runStandardUpdate is for when the user knows the current password. | {
"resource": ""
} | ||
c158794 | train | // findAndDecryptPrivatePGPKeys gets the user's private pgp keys if any exist and decrypts them. | {
"resource": ""
} | ||
c158795 | train | // findAndDecryptPrivatePGPKeysLossy gets the user's private pgp keys if any exist and attempts
// to decrypt them without prompting the user. If any fail to decrypt, they are silently not returned.
// The second return value is the number of keys which were not decrypted. | {
"resource": ""
} | ||
c158796 | train | // encodePrivatePGPKey encrypts key with tsec and armor-encodes it.
// It includes the passphrase generation in the data. | {
"resource": ""
} | ||
c158797 | train | // NewDevList creates a DevList engine. | {
"resource": ""
} | ||
c158798 | train | // Post a retention policy
// Set's the channel policy if `setChannel`, otherwise sets the team-wide policy. `setChannel` is ignored if using a non-team.
// UI is optional if `doPrompt` is false. | {
"resource": ""
} | ||
c158799 | train | // Post a min writer role for the given conversation | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.