_id
stringlengths
2
7
text
stringlengths
6
2.61k
title
stringclasses
1 value
c177400
// 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.
c177401
// NewAmazonClientFromEnv creates a Amazon client based on environment variables.
c177402
// NewClientFromURLAndSecret constructs a client by parsing `URL` and then // constructing the correct client for that URL using secrets.
c177403
// ParseURL parses an URL into ObjectStoreURL.
c177404
// NewClientFromEnv creates a client based on environment variables.
c177405
// NewExponentialBackOffConfig creates an exponential back-off config with // longer wait times than the default.
c177406
// Close closes the ReaderCloser contained in b.
c177407
// Close closes the WriteCloser contained in b.
c177408
// IsRetryable determines if an operation should be retried given an error
c177409
// RunStdin runs the command with the given stdin and arguments.
c177410
// RunIODirPath runs the command with the given IO and arguments in the given directory specified by dirPath.
c177411
// NewAuthServer returns an implementation of authclient.APIServer.
c177412
// expiredClusterAdminCheck enforces that if the cluster's enterprise token is // expired, only admins may log in.
c177413
// 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
c177414
// 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.
c177415
// getAuthToken extracts the auth token embedded in 'ctx', if there is on
c177416
// canonicalizeSubjects applies canonicalizeSubject to a list
c177417
// Matches checks that a string matches a regular-expression.
c177418
// OneOfMatches checks whether one element of a slice matches a regular-expression.
c177419
// Equal checks equality of two values.
c177420
// NotEqual checks inequality of two values.
c177421
// 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
c177422
// NoneEquals checks one element of a slice equals a value. Like // EqualsOneOf, NoneEquals unwraps pointers.
c177423
// NoError checks for no error.
c177424
// NoErrorWithinT checks that 'f' finishes within time 't' and does not emit an // error
c177425
// NoErrorWithinTRetry checks that 'f' finishes within time 't' and does not // emit an error. Unlike NoErrorWithinT if f does error, it will retry it.
c177426
// YesError checks for an error.
c177427
// NotNil checks a value is non-nil.
c177428
// Nil checks a value is nil.
c177429
// False checks a value is false.
c177430
// NewSTM intiates a new STM operation. It uses a serializable model.
c177431
// NewDryrunSTM intiates a new STM operation, but the final commit is skipped. // It uses a serializable model.
c177432
// newSTMRepeatable initiates new repeatable read transaction; reads within // the same transaction attempt to always return the same data.
c177433
// newSTMSerializable initiates a new serialized transaction; reads within the // same transaction attempt to return data from the revision of the first read.
c177434
// newSTMReadCommitted initiates a new read committed transaction.
c177435
// commit always goes through when read committed
c177436
// Pipelines returns a Collection of pipelines
c177437
// Jobs returns a Collection of jobs
c177438
// 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.
c177439
// 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
c177440
// ServiceAccount returns a kubernetes service account for use with Pachyderm.
c177441
// ClusterRole returns a ClusterRole that should be bound to the Pachyderm service account.
c177442
// RoleBinding returns a RoleBinding that binds Pachyderm's Role to its // ServiceAccount.
c177443
// GetSecretEnvVars returns the environment variable specs for the storage secret.
c177444
// PachdService returns a pachd service.
c177445
// GithookService returns a k8s service that exposes a public IP
c177446
// EtcdDeployment returns an etcd k8s Deployment.
c177447
// EtcdStorageClass creates a storage class used for dynamic volume // provisioning. Currently dynamic volume provisioning only works // on AWS and GCE.
c177448
// EtcdVolume creates a persistent volume backed by a volume with name "name"
c177449
// EtcdNodePortService returns a NodePort etcd service. This will let non-etcd // pods talk to etcd
c177450
// EtcdHeadlessService returns a headless etcd service, which is only for DNS // resolution.
c177451
// EtcdStatefulSet returns a stateful set that manages an etcd cluster
c177452
// DashDeployment creates a Deployment for the pachyderm dashboard.
c177453
// DashService creates a Service for the pachyderm dashboard.
c177454
// WriteSecret writes a JSON-encoded k8s secret to the given writer. // The secret uses the given map as data.
c177455
// GoogleSecret creates a google secret with a bucket name.
c177456
// WriteDashboardAssets writes the k8s config for deploying the Pachyderm // dashboard to 'encoder'
c177457
// WriteLocalAssets writes assets to a local backend.
c177458
// WriteCustomAssets writes assets to a custom combination of object-store and persistent disk.
c177459
// WriteAmazonAssets writes assets to an amazon backend.
c177460
// WriteGoogleAssets writes assets to a google backend.
c177461
// WriteMicrosoftAssets writes assets to a microsoft backend
c177462
// Images returns a list of all the images that are used by a pachyderm deployment.
c177463
// AddRegistry switches the registry that an image is targeting, unless registry is blank
c177464
// withCanonicalRandomizationFactor is a utility function used by all // NewXYZBackoff functions to clamp b.RandomizationFactor to either 0 or 1
c177465
// Reset the interval back to the initial retry interval and restarts the timer.
c177466
// Increments the current interval by multiplying it with the multiplier.
c177467
// NewBlockAPIServer creates a BlockAPIServer using the credentials it finds in // the environment
c177468
// LocalStorage creates a local chunk storage instance. // Useful for storage layer tests.
c177469
// 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.
c177470
// writeXML serializes a struct to a response as XML
c177471
// clean canonicalizes 'path' for a Pachyderm 1.7 hashtree
c177472
// NewFromAddress constructs a new APIClient for the server at addr.
c177473
// 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.
c177474
// 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.
c177475
// Close the connection to gRPC
c177476
// DeleteAll deletes everything in the cluster. // Use with caution, there is no undo.
c177477
// SetMaxConcurrentStreams Sets the maximum number of concurrent streams the // client can have. It is not safe to call this operations while operations are // outstanding.
c177478
// 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.
c177479
// NewDLock attempts to acquire a distributed lock that locks a given prefix // in the data store.
c177480
// DatumID computes the id for a datum, this value is used in ListDatum and // InspectDatum.
c177481
// Run user error code and return the combined output of stdout and stderr.
c177482
// HashDatum computes and returns the hash of datum + pipeline, with a // pipeline-specific prefix.
c177483
// HashDatum15 computes and returns the hash of datum + pipeline for version <= 1.5.0, with a // pipeline-specific prefix.
c177484
// Status returns the status of the current worker.
c177485
// Cancel cancels the currently running datum
c177486
// mergeStats merges y into x
c177487
// mergeChunk merges the datum hashtrees into a chunk hashtree and stores it.
c177488
// IsCommitNotFoundErr returns true if 'err' has an error message that matches // ErrCommitNotFound
c177489
// IsCommitDeletedErr returns true if 'err' has an error message that matches // ErrCommitDeleted
c177490
// IsCommitFinishedErr returns true of 'err' has an error message that matches // ErrCommitFinished
c177491
// IsRepoNotFoundErr returns true if 'err' is an error message about a repo // not being found
c177492
// IsBranchNotFoundErr returns true if 'err' is an error message about a // branch not being found
c177493
// IsFileNotFoundErr returns true if 'err' is an error message about a PFS // file not being found
c177494
// Version returns the version of pachd as a string.
c177495
// validateRepoName determines if a repo name is valid
c177496
// newDriver is used to create a new Driver instance
c177497
// 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.
c177498
// 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.
c177499
// 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.