_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c161600
train
// Post a bundle to the server.
{ "resource": "" }
c161601
train
// FetchAccountBundle gets a bundle from the server with all of the accounts // in it, but it will only have the secrets for the specified accountID. // This method will bubble up an error if it's called by a Desktop device for // an account that is mobile only. If you don't need the secrets, use // FetchSecretlessBund...
{ "resource": "" }
c161602
train
// FetchBundleWithGens gets a bundle with all of the secrets in it to which this device // has access, i.e. if there are no mobile-only accounts, then this bundle will have // all of the secrets. Also returned is a map of accountID->pukGen. Entries are only in the // map for accounts with secrets in the bundle. Inacces...
{ "resource": "" }
c161603
train
// SetAccountMobileOnly will fetch the account bundle and flip the mobile-only switch, // then send the new account bundle revision to the server.
{ "resource": "" }
c161604
train
// Define this so deferred functions get executed before exit.
{ "resource": "" }
c161605
train
// TailName returns the name of the final node in the Path. Must be // called with a valid path.
{ "resource": "" }
c161606
train
// TailPointer returns the BlockPointer of the final node in the Path. // Must be called with a valid path.
{ "resource": "" }
c161607
train
// TailRef returns the BlockRef of the final node in the Path. Must // be called with a valid path.
{ "resource": "" }
c161608
train
// DebugString returns a string representation of the path with all // branch and pointer information.
{ "resource": "" }
c161609
train
// String implements the fmt.Stringer interface for Path.
{ "resource": "" }
c161610
train
// ParentPath returns a new Path representing the parent subdirectory // of this Path. Must be called with a valid path. Should not be // called with a path of only a single node, as that would produce an // invalid path.
{ "resource": "" }
c161611
train
// ChildPath returns a new Path with the addition of a new entry // with the given name and BlockPointer.
{ "resource": "" }
c161612
train
// ChildPathNoPtr returns a new Path with the addition of a new entry // with the given name. That final PathNode will have no BlockPointer.
{ "resource": "" }
c161613
train
// DebugString returns a string representation of the node with all // pointer information.
{ "resource": "" }
c161614
train
// AcquireOnName acquires s's lock. // Never gives up.
{ "resource": "" }
c161615
train
// Attr implements the fs.Node interface for File.
{ "resource": "" }
c161616
train
// Fsync implements the fs.NodeFsyncer interface for File.
{ "resource": "" }
c161617
train
// Read implements the fs.HandleReader interface for File.
{ "resource": "" }
c161618
train
// Write implements the fs.HandleWriter interface for File.
{ "resource": "" }
c161619
train
// Setattr implements the fs.NodeSetattrer interface for File.
{ "resource": "" }
c161620
train
// NewSigsHandler creates a SigsHandler for the xp transport.
{ "resource": "" }
c161621
train
// Get implements the DiskMDCache interface for DiskMDCacheLocal.
{ "resource": "" }
c161622
train
// Stage implements the DiskMDCache interface for DiskMDCacheLocal.
{ "resource": "" }
c161623
train
// Commit implements the DiskMDCache interface for DiskMDCacheLocal.
{ "resource": "" }
c161624
train
// Unstage implements the DiskMDCache interface for DiskMDCacheLocal.
{ "resource": "" }
c161625
train
// Status implements the DiskMDCache interface for DiskMDCacheLocal.
{ "resource": "" }
c161626
train
// Shutdown implements the DiskMDCache interface for DiskMDCacheLocal.
{ "resource": "" }
c161627
train
// GetExtraFlags gets the extra fork-related flags for this platform
{ "resource": "" }
c161628
train
// AutoForkServer just forks the server and sets the autoFork flag to true
{ "resource": "" }
c161629
train
// NewInternalAPIEngine makes an API engine for internally querying the keybase // API server
{ "resource": "" }
c161630
train
// If the local clock is within a reasonable offset of the server's // clock, we'll get 0. Otherwise, we set the skew accordingly. Safe // to set this every time.
{ "resource": "" }
c161631
train
// GetDecode performs a GET request and decodes the response via // JSON into the value pointed to by v.
{ "resource": "" }
c161632
train
// PostJSON does _not_ actually enforce the use of JSON. // That is now determined by APIArg's fields.
{ "resource": "" }
c161633
train
// addUnrefToFinalResOp makes a resolutionOp at the end of opsList if // one doesn't exist yet, and then adds the given pointer as an unref // block to it.
{ "resource": "" }
c161634
train
// cacheBlockInfos stores the given block infos temporarily, until the // next prepUpdateForPaths completes, as an optimization.
{ "resource": "" }
c161635
train
// If we are superseding an ephemeral message, we have to set the // ephemeralMetadata on this superseder message.
{ "resource": "" }
c161636
train
// processReactionMessage determines if we are trying to post a duplicate // chat1.MessageType_REACTION, which is considered a chat1.MessageType_DELETE // and updates the send appropriately.
{ "resource": "" }
c161637
train
// deleteAssets deletes assets from s3. // Logs but does not return errors. Assets may be left undeleted.
{ "resource": "" }
c161638
train
// cancelPendingDuplicateReactions removes duplicate reactions in the outbox. // If we cancel an odd number of items we cancel ourselves since the current // reaction state is correct.
{ "resource": "" }
c161639
train
// GetGroup returns the named group previously created with NewGroup, or // nil if there's no such group.
{ "resource": "" }
c161640
train
// If peers is nil, the peerPicker is called via a sync.Once to initialize it.
{ "resource": "" }
c161641
train
// load loads key either by invoking the getter locally or by sending it to another machine.
{ "resource": "" }
c161642
train
// CacheStats returns stats about the provided cache within the group.
{ "resource": "" }
c161643
train
// Add atomically adds n to i.
{ "resource": "" }
c161644
train
// ByteViewSink returns a Sink that populates a ByteView.
{ "resource": "" }
c161645
train
// RegisterPeerPicker registers the peer initialization function. // It is called once, when the first group is created. // Either RegisterPeerPicker or RegisterPerGroupPeerPicker should be // called exactly once, but not both.
{ "resource": "" }
c161646
train
// RegisterPerGroupPeerPicker registers the peer initialization function, // which takes the groupName, to be used in choosing a PeerPicker. // It is called once, when the first group is created. // Either RegisterPeerPicker or RegisterPerGroupPeerPicker should be // called exactly once, but not both.
{ "resource": "" }
c161647
train
// Len returns the view's length.
{ "resource": "" }
c161648
train
// ByteSlice returns a copy of the data as a byte slice.
{ "resource": "" }
c161649
train
// String returns the data as a string, making a copy if necessary.
{ "resource": "" }
c161650
train
// At returns the byte at index i.
{ "resource": "" }
c161651
train
// Slice slices the view between the provided from and to indices.
{ "resource": "" }
c161652
train
// SliceFrom slices the view from the provided index until the end.
{ "resource": "" }
c161653
train
// Copy copies b into dest and returns the number of bytes copied.
{ "resource": "" }
c161654
train
// Equal returns whether the bytes in b are the same as the bytes in // b2.
{ "resource": "" }
c161655
train
// EqualString returns whether the bytes in b are the same as the bytes // in s.
{ "resource": "" }
c161656
train
// EqualBytes returns whether the bytes in b are the same as the bytes // in b2.
{ "resource": "" }
c161657
train
// Reader returns an io.ReadSeeker for the bytes in v.
{ "resource": "" }
c161658
train
// ReadAt implements io.ReaderAt on the bytes in v.
{ "resource": "" }
c161659
train
// WriteTo implements io.WriterTo on the bytes in v.
{ "resource": "" }
c161660
train
// Adds some keys to the hash.
{ "resource": "" }
c161661
train
// Gets the closest item in the hash to the provided key.
{ "resource": "" }
c161662
train
// Enforce is a wrapper around casbin.Enforce to additionally enforce a default role and a custom // claims function
{ "resource": "" }
c161663
train
// EnforceErr is a convenience helper to wrap a failed enforcement with a detailed error about the request
{ "resource": "" }
c161664
train
// EnforceRuntimePolicy enforces a policy defined at run-time which augments the built-in and // user-defined policy. This allows any explicit denies of the built-in, and user-defined policies // to override the run-time policy. Runs normal enforcement if run-time policy is empty.
{ "resource": "" }
c161665
train
// enforce is a helper to additionally check a default role and invoke a custom claims enforcement function
{ "resource": "" }
c161666
train
// SetBuiltinPolicy sets a built-in policy, which augments any user defined policies
{ "resource": "" }
c161667
train
// SetUserPolicy sets a user policy, augmenting the built-in policy
{ "resource": "" }
c161668
train
// newInformers returns an informer which watches updates on the rbac configmap
{ "resource": "" }
c161669
train
// RunPolicyLoader runs the policy loader which watches policy updates from the configmap and reloads them
{ "resource": "" }
c161670
train
// syncUpdate updates the enforcer
{ "resource": "" }
c161671
train
// ValidatePolicy verifies a policy string is acceptable to casbin
{ "resource": "" }
c161672
train
// NewApplicationController creates new instance of ApplicationController.
{ "resource": "" }
c161673
train
// Run starts the Application CRD controller.
{ "resource": "" }
c161674
train
// needRefreshAppStatus answers if application status needs to be refreshed. // Returns true if application never been compared, has changed or comparison result has expired. // Additionally returns whether full refresh was requested or not. // If full refresh is requested then target and live state should be reconcile...
{ "resource": "" }
c161675
train
// normalizeApplication normalizes an application.spec and additionally persists updates if it changed
{ "resource": "" }
c161676
train
// persistAppStatus persists updates to application status. If no changes were made, it is a no-op
{ "resource": "" }
c161677
train
// autoSync will initiate a sync operation for an application configured with automated sync
{ "resource": "" }
c161678
train
// alreadyAttemptedSync returns whether or not the most recent sync was performed against the // commitSHA and with the same app source config which are currently set in the app
{ "resource": "" }
c161679
train
// toggledAutomatedSync tests if an app went from auto-sync disabled to enabled. // if it was toggled to be enabled, the informer handler will force a refresh
{ "resource": "" }
c161680
train
// sync has performs the actual apply or hook based sync
{ "resource": "" }
c161681
train
// startedPostSyncPhase detects if we have already started the PostSync stage. This is equal to if // we see any PostSync hooks
{ "resource": "" }
c161682
train
// applyObject performs a `kubectl apply` of a single resource
{ "resource": "" }
c161683
train
// pruneObject deletes the object if both prune is true and dryRun is false. Otherwise appropriate message
{ "resource": "" }
c161684
train
// setResourceDetails sets a resource details in the SyncResult.Resources list
{ "resource": "" }
c161685
train
// NewKustomizeApp create a new wrapper to run commands on the `kustomize` command-line tool.
{ "resource": "" }
c161686
train
// kustomization is a file that describes a configuration consumable by kustomize.
{ "resource": "" }
c161687
train
// NewDexRewriteURLRoundTripper creates a new DexRewriteURLRoundTripper
{ "resource": "" }
c161688
train
// CreateServiceAccount creates a service account
{ "resource": "" }
c161689
train
// CreateClusterRole creates a cluster role
{ "resource": "" }
c161690
train
// CreateClusterRoleBinding create a ClusterRoleBinding
{ "resource": "" }
c161691
train
// InstallClusterManagerRBAC installs RBAC resources for a cluster manager to operate a cluster. Returns a token
{ "resource": "" }
c161692
train
// UninstallClusterManagerRBAC removes RBAC resources for a cluster manager to operate a cluster
{ "resource": "" }
c161693
train
// UninstallRBAC uninstalls RBAC related resources for a binding, role, and service account
{ "resource": "" }
c161694
train
// IsHelmHook indicates if the supplied object is a helm hook
{ "resource": "" }
c161695
train
// FNVa computes a FNVa hash on a string
{ "resource": "" }
c161696
train
// generateAppState creates an app state nonce
{ "resource": "" }
c161697
train
// handleImplicitFlow completes an implicit OAuth2 flow. The id_token and state will be contained // in the URL fragment. The javascript client first redirects to the callback URL, supplying the // state nonce for verification, as well as looking up the return URL. Once verified, the client // stores the id_token from ...
{ "resource": "" }
c161698
train
// OfflineAccess returns whether or not 'offline_access' is a supported scope
{ "resource": "" }
c161699
train
// unmarshalObject tries to convert a YAML or JSON byte array into the provided type.
{ "resource": "" }