_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c177400 | test | // NewAmazonClientFromSecret constructs an amazon client by reading credentials
// from a mounted AmazonSecret. You may pass "" for bucket in which case it
// will read the bucket from the secret. | {
"resource": ""
} | ||
c177401 | test | // NewAmazonClientFromEnv creates a Amazon client based on environment variables. | {
"resource": ""
} | ||
c177402 | test | // NewClientFromURLAndSecret constructs a client by parsing `URL` and then
// constructing the correct client for that URL using secrets. | {
"resource": ""
} | ||
c177403 | test | // ParseURL parses an URL into ObjectStoreURL. | {
"resource": ""
} | ||
c177404 | test | // NewClientFromEnv creates a client based on environment variables. | {
"resource": ""
} | ||
c177405 | test | // NewExponentialBackOffConfig creates an exponential back-off config with
// longer wait times than the default. | {
"resource": ""
} | ||
c177406 | test | // Close closes the ReaderCloser contained in b. | {
"resource": ""
} | ||
c177407 | test | // Close closes the WriteCloser contained in b. | {
"resource": ""
} | ||
c177408 | test | // IsRetryable determines if an operation should be retried given an error | {
"resource": ""
} | ||
c177409 | test | // RunStdin runs the command with the given stdin and arguments. | {
"resource": ""
} | ||
c177410 | test | // RunIODirPath runs the command with the given IO and arguments in the given directory specified by dirPath. | {
"resource": ""
} | ||
c177411 | test | // NewAuthServer returns an implementation of authclient.APIServer. | {
"resource": ""
} | ||
c177412 | test | // expiredClusterAdminCheck enforces that if the cluster's enterprise token is
// expired, only admins may log in. | {
"resource": ""
} | ||
c177413 | test | // getOneTimePassword contains the implementation of GetOneTimePassword,
// but is also called directly by handleSAMLREsponse. It generates a
// short-lived authentication code for 'username', writes it to
// a.authenticationCodes, and returns it | {
"resource": ""
} | ||
c177414 | test | // hashToken converts a token to a cryptographic hash.
// We don't want to store tokens verbatim in the database, as then whoever
// that has access to the database has access to all tokens. | {
"resource": ""
} | ||
c177415 | test | // getAuthToken extracts the auth token embedded in 'ctx', if there is on | {
"resource": ""
} | ||
c177416 | test | // canonicalizeSubjects applies canonicalizeSubject to a list | {
"resource": ""
} | ||
c177417 | test | // Matches checks that a string matches a regular-expression. | {
"resource": ""
} | ||
c177418 | test | // OneOfMatches checks whether one element of a slice matches a regular-expression. | {
"resource": ""
} | ||
c177419 | test | // Equal checks equality of two values. | {
"resource": ""
} | ||
c177420 | test | // NotEqual checks inequality of two values. | {
"resource": ""
} | ||
c177421 | test | // oneOfEquals is a helper function for EqualOneOf, OneOfEquals and NoneEquals, that simply
// returns a bool indicating whether 'elem' is in 'slice'. 'sliceName' is used for errors | {
"resource": ""
} | ||
c177422 | test | // NoneEquals checks one element of a slice equals a value. Like
// EqualsOneOf, NoneEquals unwraps pointers. | {
"resource": ""
} | ||
c177423 | test | // NoError checks for no error. | {
"resource": ""
} | ||
c177424 | test | // NoErrorWithinT checks that 'f' finishes within time 't' and does not emit an
// error | {
"resource": ""
} | ||
c177425 | test | // NoErrorWithinTRetry checks that 'f' finishes within time 't' and does not
// emit an error. Unlike NoErrorWithinT if f does error, it will retry it. | {
"resource": ""
} | ||
c177426 | test | // YesError checks for an error. | {
"resource": ""
} | ||
c177427 | test | // NotNil checks a value is non-nil. | {
"resource": ""
} | ||
c177428 | test | // Nil checks a value is nil. | {
"resource": ""
} | ||
c177429 | test | // False checks a value is false. | {
"resource": ""
} | ||
c177430 | test | // NewSTM intiates a new STM operation. It uses a serializable model. | {
"resource": ""
} | ||
c177431 | test | // NewDryrunSTM intiates a new STM operation, but the final commit is skipped.
// It uses a serializable model. | {
"resource": ""
} | ||
c177432 | test | // newSTMRepeatable initiates new repeatable read transaction; reads within
// the same transaction attempt to always return the same data. | {
"resource": ""
} | ||
c177433 | test | // newSTMSerializable initiates a new serialized transaction; reads within the
// same transaction attempt to return data from the revision of the first read. | {
"resource": ""
} | ||
c177434 | test | // newSTMReadCommitted initiates a new read committed transaction. | {
"resource": ""
} | ||
c177435 | test | // commit always goes through when read committed | {
"resource": ""
} | ||
c177436 | test | // Pipelines returns a Collection of pipelines | {
"resource": ""
} | ||
c177437 | test | // Jobs returns a Collection of jobs | {
"resource": ""
} | ||
c177438 | test | // NewTicker returns a new Ticker containing a channel that will send the time at times
// specified by the BackOff argument. Ticker is guaranteed to tick at least once.
// The channel is closed when Stop method is called or BackOff stops. | {
"resource": ""
} | ||
c177439 | test | // nodeToMap translates the contents of a node into a map
// nodeToMap can be called on the same map with successive results from watch
// to accumulate a value
// nodeToMap returns true if out was modified | {
"resource": ""
} | ||
c177440 | test | // ServiceAccount returns a kubernetes service account for use with Pachyderm. | {
"resource": ""
} | ||
c177441 | test | // ClusterRole returns a ClusterRole that should be bound to the Pachyderm service account. | {
"resource": ""
} | ||
c177442 | test | // RoleBinding returns a RoleBinding that binds Pachyderm's Role to its
// ServiceAccount. | {
"resource": ""
} | ||
c177443 | test | // GetSecretEnvVars returns the environment variable specs for the storage secret. | {
"resource": ""
} | ||
c177444 | test | // PachdService returns a pachd service. | {
"resource": ""
} | ||
c177445 | test | // GithookService returns a k8s service that exposes a public IP | {
"resource": ""
} | ||
c177446 | test | // EtcdDeployment returns an etcd k8s Deployment. | {
"resource": ""
} | ||
c177447 | test | // EtcdStorageClass creates a storage class used for dynamic volume
// provisioning. Currently dynamic volume provisioning only works
// on AWS and GCE. | {
"resource": ""
} | ||
c177448 | test | // EtcdVolume creates a persistent volume backed by a volume with name "name" | {
"resource": ""
} | ||
c177449 | test | // EtcdNodePortService returns a NodePort etcd service. This will let non-etcd
// pods talk to etcd | {
"resource": ""
} | ||
c177450 | test | // EtcdHeadlessService returns a headless etcd service, which is only for DNS
// resolution. | {
"resource": ""
} | ||
c177451 | test | // EtcdStatefulSet returns a stateful set that manages an etcd cluster | {
"resource": ""
} | ||
c177452 | test | // DashDeployment creates a Deployment for the pachyderm dashboard. | {
"resource": ""
} | ||
c177453 | test | // DashService creates a Service for the pachyderm dashboard. | {
"resource": ""
} | ||
c177454 | test | // WriteSecret writes a JSON-encoded k8s secret to the given writer.
// The secret uses the given map as data. | {
"resource": ""
} | ||
c177455 | test | // GoogleSecret creates a google secret with a bucket name. | {
"resource": ""
} | ||
c177456 | test | // WriteDashboardAssets writes the k8s config for deploying the Pachyderm
// dashboard to 'encoder' | {
"resource": ""
} | ||
c177457 | test | // WriteLocalAssets writes assets to a local backend. | {
"resource": ""
} | ||
c177458 | test | // WriteCustomAssets writes assets to a custom combination of object-store and persistent disk. | {
"resource": ""
} | ||
c177459 | test | // WriteAmazonAssets writes assets to an amazon backend. | {
"resource": ""
} | ||
c177460 | test | // WriteGoogleAssets writes assets to a google backend. | {
"resource": ""
} | ||
c177461 | test | // WriteMicrosoftAssets writes assets to a microsoft backend | {
"resource": ""
} | ||
c177462 | test | // Images returns a list of all the images that are used by a pachyderm deployment. | {
"resource": ""
} | ||
c177463 | test | // AddRegistry switches the registry that an image is targeting, unless registry is blank | {
"resource": ""
} | ||
c177464 | test | // withCanonicalRandomizationFactor is a utility function used by all
// NewXYZBackoff functions to clamp b.RandomizationFactor to either 0 or 1 | {
"resource": ""
} | ||
c177465 | test | // Reset the interval back to the initial retry interval and restarts the timer. | {
"resource": ""
} | ||
c177466 | test | // Increments the current interval by multiplying it with the multiplier. | {
"resource": ""
} | ||
c177467 | test | // NewBlockAPIServer creates a BlockAPIServer using the credentials it finds in
// the environment | {
"resource": ""
} | ||
c177468 | test | // LocalStorage creates a local chunk storage instance.
// Useful for storage layer tests. | {
"resource": ""
} | ||
c177469 | test | // deleteJob is identical to updateJobState, except that jobPtr points to a job
// that should be deleted rather than marked failed. Jobs may be deleted if
// their output commit is deleted. | {
"resource": ""
} | ||
c177470 | test | // writeXML serializes a struct to a response as XML | {
"resource": ""
} | ||
c177471 | test | // clean canonicalizes 'path' for a Pachyderm 1.7 hashtree | {
"resource": ""
} | ||
c177472 | test | // NewFromAddress constructs a new APIClient for the server at addr. | {
"resource": ""
} | ||
c177473 | test | // getUserMachineAddrAndOpts is a helper for NewOnUserMachine that uses
// environment variables, config files, etc to figure out which address a user
// running a command should connect to. | {
"resource": ""
} | ||
c177474 | test | // NewInCluster constructs a new APIClient using env vars that Kubernetes creates.
// This should be used to access Pachyderm from within a Kubernetes cluster
// with Pachyderm running on it. | {
"resource": ""
} | ||
c177475 | test | // Close the connection to gRPC | {
"resource": ""
} | ||
c177476 | test | // DeleteAll deletes everything in the cluster.
// Use with caution, there is no undo. | {
"resource": ""
} | ||
c177477 | test | // SetMaxConcurrentStreams Sets the maximum number of concurrent streams the
// client can have. It is not safe to call this operations while operations are
// outstanding. | {
"resource": ""
} | ||
c177478 | test | // WithCtx returns a new APIClient that uses ctx for requests it sends. Note
// that the new APIClient will still use the authentication token and metrics
// metadata of this client, so this is only useful for propagating other
// context-associated metadata. | {
"resource": ""
} | ||
c177479 | test | // NewDLock attempts to acquire a distributed lock that locks a given prefix
// in the data store. | {
"resource": ""
} | ||
c177480 | test | // DatumID computes the id for a datum, this value is used in ListDatum and
// InspectDatum. | {
"resource": ""
} | ||
c177481 | test | // Run user error code and return the combined output of stdout and stderr. | {
"resource": ""
} | ||
c177482 | test | // HashDatum computes and returns the hash of datum + pipeline, with a
// pipeline-specific prefix. | {
"resource": ""
} | ||
c177483 | test | // HashDatum15 computes and returns the hash of datum + pipeline for version <= 1.5.0, with a
// pipeline-specific prefix. | {
"resource": ""
} | ||
c177484 | test | // Status returns the status of the current worker. | {
"resource": ""
} | ||
c177485 | test | // Cancel cancels the currently running datum | {
"resource": ""
} | ||
c177486 | test | // mergeStats merges y into x | {
"resource": ""
} | ||
c177487 | test | // mergeChunk merges the datum hashtrees into a chunk hashtree and stores it. | {
"resource": ""
} | ||
c177488 | test | // IsCommitNotFoundErr returns true if 'err' has an error message that matches
// ErrCommitNotFound | {
"resource": ""
} | ||
c177489 | test | // IsCommitDeletedErr returns true if 'err' has an error message that matches
// ErrCommitDeleted | {
"resource": ""
} | ||
c177490 | test | // IsCommitFinishedErr returns true of 'err' has an error message that matches
// ErrCommitFinished | {
"resource": ""
} | ||
c177491 | test | // IsRepoNotFoundErr returns true if 'err' is an error message about a repo
// not being found | {
"resource": ""
} | ||
c177492 | test | // IsBranchNotFoundErr returns true if 'err' is an error message about a
// branch not being found | {
"resource": ""
} | ||
c177493 | test | // IsFileNotFoundErr returns true if 'err' is an error message about a PFS
// file not being found | {
"resource": ""
} | ||
c177494 | test | // Version returns the version of pachd as a string. | {
"resource": ""
} | ||
c177495 | test | // validateRepoName determines if a repo name is valid | {
"resource": ""
} | ||
c177496 | test | // newDriver is used to create a new Driver instance | {
"resource": ""
} | ||
c177497 | test | // inspectCommit takes a Commit and returns the corresponding CommitInfo.
//
// As a side effect, this function also replaces the ID in the given commit
// with a real commit ID. | {
"resource": ""
} | ||
c177498 | test | // scratchCommitPrefix returns an etcd prefix that's used to temporarily
// store the state of a file in an open commit. Once the commit is finished,
// the scratch space is removed. | {
"resource": ""
} | ||
c177499 | test | // scratchFilePrefix returns an etcd prefix that's used to temporarily
// store the state of a file in an open commit. Once the commit is finished,
// the scratch space is removed. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.