_id
stringlengths
2
7
text
stringlengths
6
2.61k
title
stringclasses
1 value
c177500
// getTreeForFile is like getTreeForCommit except that it can handle open commits. // It takes a file instead of a commit so that it can apply the changes for // that path to the tree before it returns it.
c177501
// this is a helper function to check if the given provenance has provenance on an input branch
c177502
// If full is false, exclude potentially large fields such as `Objects` // and `Children`
c177503
// fileHistory calls f with FileInfos for the file, starting with how it looked // at the referenced commit and then all past versions that are different.
c177504
// Put the tree into the blob store // Only write the records to etcd if the commit does exist and is open. // To check that a key exists in etcd, we assert that its CreateRevision // is greater than zero.
c177505
// ReadRow parses the pgdump file and populates the header and the footer // It returns EOF when done, and at that time both the Header and Footer will // be populated. Both header and footer are required. If either are missing, an // error is returned
c177506
// NewReporter creates a new reporter and kicks off the loop to report cluster // metrics
c177507
//ReportUserAction pushes the action into a queue for reporting, // and reports the start, finish, and error conditions
c177508
// FinishReportAndFlushUserAction immediately reports the metric but does // not block execution. It returns a wait function which waits or times // out after 5s. // It is used by the pachctl binary and runs on users' machines
c177509
// Read reads from the byte stream produced by the set of DataRefs.
c177510
// ActivateCmd returns a cobra.Command to activate the enterprise features of // Pachyderm within a Pachyderm cluster. All repos will go from // publicly-accessible to accessible only by the owner, who can subsequently add // users
c177511
// GetStateCmd returns a cobra.Command to activate the enterprise features of // Pachyderm within a Pachyderm cluster. All repos will go from // publicly-accessible to accessible only by the owner, who can subsequently add // users
c177512
// Cmds returns pachctl commands related to Pachyderm Enterprise
c177513
// NewConfiguration creates a generic configuration from a specific type of configuration.
c177514
// Repos returns a collection of repos
c177515
// PutFileRecords returns a collection of putFileRecords
c177516
// Commits returns a collection of commits
c177517
// Branches returns a collection of branches
c177518
// OpenCommits returns a collection of open commits
c177519
// NewDAG creates a DAG and populates it with the given nodes.
c177520
// NewNode adds a node to d.
c177521
// Sorted returns all nodes in a topologically sorted order
c177522
// Leaves returns a slice containing all leaves in d.
c177523
// Ancestors returns a slice containing all ancestors of a node, 'id', // in d which are a descendant of at least one of the nodes in 'from'.
c177524
// Descendants returns a slice containing all descendants of a node, 'id', // in d which are an ancestor of at least one of the nodes in 'to'.
c177525
// Ghosts returns nodes that were referenced as parents but never created.
c177526
// NewPortForwarder creates a new port forwarder
c177527
// Run starts the port forwarder. Returns after initialization is begun, // returning any initialization errors.
c177528
// RunForDaemon creates a port forwarder for the pachd daemon.
c177529
// RunForSAMLACS creates a port forwarder for SAML ACS.
c177530
// RunForDashUI creates a port forwarder for the dash UI.
c177531
// RunForDashWebSocket creates a port forwarder for the dash websocket.
c177532
// RunForPFS creates a port forwarder for PFS over HTTP.
c177533
// RunForS3Gateway creates a port forwarder for the s3gateway.
c177534
// Lock uses pidfiles to ensure that only one port forwarder is running across // one or more `pachctl` instances
c177535
// Close shuts down port forwarding.
c177536
// Unmarshal unmarshals the item in an event into a protobuf message.
c177537
// UnmarshalPrev unmarshals the prev item in an event into a protobuf // message.
c177538
// MakeWatcher returns a Watcher that uses the given event channel and done // channel internally to deliver events and signal closure, respectively.
c177539
// CheckType checks to make sure val has the same type as template, unless // template is nil in which case it always returns nil.
c177540
// NewPool creates a new connection pool with connections to pods in the // given service.
c177541
// Do allows you to do something with a grpc.ClientConn. // Errors returned from f will be returned by Do.
c177542
// Close closes all connections stored in the pool, it returns an error if any // of the calls to Close error.
c177543
// buildImage builds a new docker image.
c177544
// pushImage pushes a docker image.
c177545
// Creates a new minioClient structure and returns
c177546
// Creates a new minioClient S3V2 structure and returns
c177547
// Creates a new minio writer and a go routine to upload objects to minio server
c177548
// This will block till upload is done
c177549
// PipelineRepo creates a pfs repo for a given pipeline.
c177550
// PipelineRcName generates the name of the k8s replication controller that // manages a pipeline's workers
c177551
// GetRequestsResourceListFromPipeline returns a list of resources that the pipeline, // minimally requires.
c177552
// GetLimitsResourceListFromPipeline returns a list of resources that the pipeline, // maximally is limited to.
c177553
// getNumNodes attempts to retrieve the number of nodes in the current k8s // cluster
c177554
// GetExpectedNumWorkers computes the expected number of workers that // pachyderm will start given the ParallelismSpec 'spec'. // // This is only exported for testing
c177555
// GetExpectedNumHashtrees computes the expected number of hashtrees that // Pachyderm will create given the HashtreeSpec 'spec'.
c177556
// FailPipeline updates the pipeline's state to failed and sets the failure reason
c177557
// JobInput fills in the commits for a JobInfo
c177558
// PipelineReqFromInfo converts a PipelineInfo into a CreatePipelineRequest.
c177559
// NewPipelineManifestReader creates a new manifest reader from a path.
c177560
// NextCreatePipelineRequest gets the next request from the manifest reader.
c177561
// DescribeSyntaxError describes a syntax error encountered parsing json.
c177562
// UpdateJobState performs the operations involved with a job state transition.
c177563
// New returns a new uuid.
c177564
// Code returns the HTTP error code associated with 'h'
c177565
// NewHTTPError returns a new HTTPError where the HTTP error code is 'code' and // the error message is based on 'formatStr' and 'args'
c177566
// NewStorage creates a new Storage.
c177567
// DeleteAll deletes all of the chunks in object storage.
c177568
// Chunk splits a piece of data up, this is useful for splitting up data that's // bigger than MaxMsgSize
c177569
// ChunkReader splits a reader into reasonably sized chunks for the purpose // of transmitting the chunks over gRPC. For each chunk, it calls the given // function.
c177570
// NewStreamingBytesReader returns an io.Reader for a StreamingBytesClient.
c177571
// NewSidecarAPIServer creates an APIServer that has limited functionalities // and is meant to be run as a worker sidecar. It cannot, for instance, // create pipelines.
c177572
// NewEnterpriseServer returns an implementation of ec.APIServer.
c177573
// validateActivationCode checks the validity of an activation code
c177574
// Activate implements the Activate RPC
c177575
// Deactivate deletes the current cluster's enterprise token, and puts the // cluster in the "NONE" enterprise state. It also deletes all data in the // cluster, to avoid invalid cluster states. This call only makes sense for // testing
c177576
// lookExtensions finds windows executable by its dir and path. // It uses LookPath to try appropriate extensions. // lookExtensions does not search PATH, instead it converts `prog` into `.\prog`.
c177577
// Start starts the specified command but does not wait for it to complete. // // The Wait method will return the exit code and release associated resources // once the command exits.
c177578
// CombinedOutput runs the command and returns its combined standard // output and standard error.
c177579
// StdinPipe returns a pipe that will be connected to the command's // standard input when the command starts. // The pipe will be closed automatically after Wait sees the command exit. // A caller need only call Close to force the pipe to close sooner. // For example, if the command being run will not exit until stand...
c177580
// StdoutPipe returns a pipe that will be connected to the command's // standard output when the command starts. // // Wait will close the pipe after seeing the command exit, so most callers // need not close the pipe themselves; however, an implication is that // it is incorrect to call Wait before all reads from the ...
c177581
// dedupEnvCase is dedupEnv with a case option for testing. // If caseInsensitive is true, the case of keys is ignored.
c177582
// InputName computes the name of an Input.
c177583
// SortInput sorts an Input.
c177584
// InputBranches returns the branches in an Input.
c177585
// ValidateGitCloneURL returns an error if the provided URL is invalid
c177586
// containsEmpty is a helper function used for validation (particularly for // validating that creds arguments aren't empty
c177587
// NewAPIServer returns a new admin.APIServer
c177588
// Ago pretty-prints the amount of time that has passed // since timestamp as a human-readable string.
c177589
// TimeDifference pretty-prints the duration of time between from // and to as a human-reabable string.
c177590
// Duration pretty prints a duration in a human readable way.
c177591
// InspectCluster retrieves cluster state
c177592
// Extract all cluster state, call f with each operation.
c177593
// ExtractAll cluster state as a slice of operations.
c177594
// ExtractWriter extracts all cluster state and marshals it to w.
c177595
// ExtractURL extracts all cluster state and marshalls it to object storage.
c177596
// ExtractPipeline extracts a single pipeline.
c177597
// Restore cluster state from an extract series of operations.
c177598
// RestoreReader restores cluster state from a reader containing marshaled ops. // Such as those written by ExtractWriter.
c177599
// RestoreFrom restores state from another cluster which can be access through otherC.