_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c177100 | test | // cephRBDVolumeMarkDeleted marks an RBD storage volume as being in "zombie"
// state
// An RBD storage volume that is in zombie state is not tracked in LXD's
// database anymore but still needs to be kept around for the sake of any
// dependent storage entities in the storage pool. This usually happens when an
// RBD ... | {
"resource": ""
} | ||
c177101 | test | // cephRBDVolumeUnmarkDeleted unmarks an RBD storage volume as being in "zombie"
// state
// - An RBD storage volume that is in zombie is not tracked in LXD's database
// anymore but still needs to be kept around for the sake of any dependent
// storage entities in the storage pool.
// - This function is mostly use... | {
"resource": ""
} | ||
c177102 | test | // cephRBDVolumeRename renames a given RBD storage volume
// Note that this usually requires that the image be unmapped under its original
// name, then renamed, and finally will be remapped again. If it is not unmapped
// under its original name and the callers maps it under its new name the image
// will be mapped tw... | {
"resource": ""
} | ||
c177103 | test | // cephRBDVolumeRename renames a given RBD storage volume
// Note that if the snapshot is mapped - which it usually shouldn't be - this
// usually requires that the snapshot be unmapped under its original name, then
// renamed, and finally will be remapped again. If it is not unmapped under its
// original name and the... | {
"resource": ""
} | ||
c177104 | test | // cephRBDSnapshotDelete deletes an RBD snapshot
// This requires that the snapshot does not have any clones and is unmapped and
// unprotected. | {
"resource": ""
} | ||
c177105 | test | // cephRBDVolumeCopy copies an RBD storage volume
// This is a non-sparse copy which doesn't introduce any dependency relationship
// between the source RBD storage volume and the target RBD storage volume. The
// operations is similar to creating an empty RBD storage volume and rsyncing
// the contents of the source R... | {
"resource": ""
} | ||
c177106 | test | // cephRBDVolumeListSnapshots retrieves the snapshots of an RBD storage volume
// The format of the snapshot names is simply the part after the @. So given a
// valid RBD path relative to a pool
// <osd-pool-name>/<rbd-storage-volume>@<rbd-snapshot-name>
// this will only return
// <rbd-snapshot-name> | {
"resource": ""
} | ||
c177107 | test | // getRBDSize returns the size the RBD storage volume is supposed to be created
// with | {
"resource": ""
} | ||
c177108 | test | // getRBDFilesystem returns the filesystem the RBD storage volume is supposed to
// be created with | {
"resource": ""
} | ||
c177109 | test | // copyWithoutSnapshotsFull creates a non-sparse copy of a container
// This does not introduce a dependency relation between the source RBD storage
// volume and the target RBD storage volume. | {
"resource": ""
} | ||
c177110 | test | // copyWithoutSnapshotsFull creates a sparse copy of a container
// This introduces a dependency relation between the source RBD storage volume
// and the target RBD storage volume. | {
"resource": ""
} | ||
c177111 | test | // GetConfigCmd returns a cobra command that lets the caller see the configured
// auth backends in Pachyderm | {
"resource": ""
} | ||
c177112 | test | // SetConfigCmd returns a cobra command that lets the caller configure auth
// backends in Pachyderm | {
"resource": ""
} | ||
c177113 | test | // NewSharder creates a Sharder using a discovery client. | {
"resource": ""
} | ||
c177114 | test | // NewRouter creates a Router. | {
"resource": ""
} | ||
c177115 | test | // renewUserCredentials extends the TTL of the Pachyderm authentication token
// 'userToken', using the vault plugin's Admin credentials. 'userToken' belongs
// to the user who is calling vault, and would like to extend their Pachyderm
// session. | {
"resource": ""
} | ||
c177116 | test | // NewLocalClient returns a Client that stores data on the local file system | {
"resource": ""
} | ||
c177117 | test | // AddSpanToAnyExisting checks 'ctx' for Jaeger tracing information, and if
// tracing metadata is present, it generates a new span for 'operation', marks
// it as a child of the existing span, and returns it. | {
"resource": ""
} | ||
c177118 | test | // InstallJaegerTracerFromEnv installs a Jaeger client as then opentracing
// global tracer, relying on environment variables to configure the client. It
// returns the address used to initialize the global tracer, if any
// initialization occurred | {
"resource": ""
} | ||
c177119 | test | // UnaryClientInterceptor returns a GRPC interceptor for non-streaming GRPC RPCs | {
"resource": ""
} | ||
c177120 | test | // StreamClientInterceptor returns a GRPC interceptor for non-streaming GRPC RPCs | {
"resource": ""
} | ||
c177121 | test | // UnaryServerInterceptor returns a GRPC interceptor for non-streaming GRPC RPCs | {
"resource": ""
} | ||
c177122 | test | // StreamServerInterceptor returns a GRPC interceptor for non-streaming GRPC RPCs | {
"resource": ""
} | ||
c177123 | test | // CloseAndReportTraces tries to close the global tracer, which, in the case of
// the Jaeger tracer, causes it to send any unreported traces to the collector | {
"resource": ""
} | ||
c177124 | test | // newWriter creates a new Writer. | {
"resource": ""
} | ||
c177125 | test | // For sets b.MaxElapsedTime to 'maxElapsed' and returns b | {
"resource": ""
} | ||
c177126 | test | // Helper function used to log requests and responses from our GRPC method
// implementations | {
"resource": ""
} | ||
c177127 | test | // Format proxies the closure in order to satisfy `logrus.Formatter`'s
// interface. | {
"resource": ""
} | ||
c177128 | test | // NewGRPCLogWriter creates a new GRPC log writer. `logger` specifies the
// underlying logger, and `source` specifies where these logs are coming from;
// it is added as a entry field for all log messages. | {
"resource": ""
} | ||
c177129 | test | // Read loads the Pachyderm config on this machine.
// If an existing configuration cannot be found, it sets up the defaults. Read
// returns a nil Config if and only if it returns a non-nil error. | {
"resource": ""
} | ||
c177130 | test | // Write writes the configuration in 'c' to this machine's Pachyderm config
// file. | {
"resource": ""
} | ||
c177131 | test | // Read reads val from r. | {
"resource": ""
} | ||
c177132 | test | // Write writes val to r. | {
"resource": ""
} | ||
c177133 | test | // NewReadWriter returns a new ReadWriter with rw as both its source and its sink. | {
"resource": ""
} | ||
c177134 | test | // RunGitHookServer starts the webhook server | {
"resource": ""
} | ||
c177135 | test | // newLoggingPipe initializes a loggingPipe | {
"resource": ""
} | ||
c177136 | test | // Read implements the corresponding method of net.Conn | {
"resource": ""
} | ||
c177137 | test | // Write implements the corresponding method of net.Conn | {
"resource": ""
} | ||
c177138 | test | // Accept implements the corresponding method of net.Listener for
// TestListener | {
"resource": ""
} | ||
c177139 | test | // Close implements the corresponding method of net.Listener for
// TestListener. Any blocked Accept operations will be unblocked and return
// errors. | {
"resource": ""
} | ||
c177140 | test | // errorf is analogous to fmt.Errorf, but generates hashTreeErrors instead of
// errorStrings. | {
"resource": ""
} | ||
c177141 | test | // InitWithKube is like InitServiceEnv, but also assumes that it's run inside
// a kubernetes cluster and tries to connect to the kubernetes API server. | {
"resource": ""
} | ||
c177142 | test | // GetEtcdClient returns the already connected etcd client without modification. | {
"resource": ""
} | ||
c177143 | test | // GetKubeClient returns the already connected Kubernetes API client without
// modification. | {
"resource": ""
} | ||
c177144 | test | // NewHasher creates a hasher. | {
"resource": ""
} | ||
c177145 | test | // HashJob computes and returns the hash of a job. | {
"resource": ""
} | ||
c177146 | test | // HashPipeline computes and returns the hash of a pipeline. | {
"resource": ""
} | ||
c177147 | test | // Status returns the statuses of workers referenced by pipelineRcName.
// pipelineRcName is the name of the pipeline's RC and can be gotten with
// ppsutil.PipelineRcName. You can also pass "" for pipelineRcName to get all
// clients for all workers. | {
"resource": ""
} | ||
c177148 | test | // Cancel cancels a set of datums running on workers.
// pipelineRcName is the name of the pipeline's RC and can be gotten with
// ppsutil.PipelineRcName. | {
"resource": ""
} | ||
c177149 | test | // Conns returns a slice of connections to worker servers.
// pipelineRcName is the name of the pipeline's RC and can be gotten with
// ppsutil.PipelineRcName. You can also pass "" for pipelineRcName to get all
// clients for all workers. | {
"resource": ""
} | ||
c177150 | test | // Clients returns a slice of worker clients for a pipeline.
// pipelineRcName is the name of the pipeline's RC and can be gotten with
// ppsutil.PipelineRcName. You can also pass "" for pipelineRcName to get all
// clients for all workers. | {
"resource": ""
} | ||
c177151 | test | // NewClient returns a worker client for the worker at the IP address passed in. | {
"resource": ""
} | ||
c177152 | test | // RunFixedArgs wraps a function in a function
// that checks its exact argument count. | {
"resource": ""
} | ||
c177153 | test | // RunBoundedArgs wraps a function in a function
// that checks its argument count is within a range. | {
"resource": ""
} | ||
c177154 | test | // ErrorAndExit errors with the given format and args, and then exits. | {
"resource": ""
} | ||
c177155 | test | // ParseCommit takes an argument of the form "repo[@branch-or-commit]" and
// returns the corresponding *pfs.Commit. | {
"resource": ""
} | ||
c177156 | test | // ParseBranch takes an argument of the form "repo[@branch]" and
// returns the corresponding *pfs.Branch. This uses ParseCommit under the hood
// because a branch name is usually interchangeable with a commit-id. | {
"resource": ""
} | ||
c177157 | test | // ParseFile takes an argument of the form "repo[@branch-or-commit[:path]]", and
// returns the corresponding *pfs.File. | {
"resource": ""
} | ||
c177158 | test | // Set adds a string to r | {
"resource": ""
} | ||
c177159 | test | // SetDocsUsage sets the usage string for a docs-style command. Docs commands
// have no functionality except to output some docs and related commands, and
// should not specify a 'Run' attribute. | {
"resource": ""
} | ||
c177160 | test | // makeCronCommits makes commits to a single cron input's repo. It's
// a helper function called by monitorPipeline. | {
"resource": ""
} | ||
c177161 | test | // Writer implements the corresponding method in the Client interface | {
"resource": ""
} | ||
c177162 | test | // Reader implements the corresponding method in the Client interface | {
"resource": ""
} | ||
c177163 | test | // Delete implements the corresponding method in the Client interface | {
"resource": ""
} | ||
c177164 | test | // Walk implements the corresponding method in the Client interface | {
"resource": ""
} | ||
c177165 | test | // Exists implements the corresponding method in the Client interface | {
"resource": ""
} | ||
c177166 | test | // GetBlock encodes a hash into a readable format in the form of a Block. | {
"resource": ""
} | ||
c177167 | test | // Health implements the Health method for healthServer. | {
"resource": ""
} | ||
c177168 | test | // split is like path.Split, but uses this library's defaults for canonical
// paths | {
"resource": ""
} | ||
c177169 | test | // ValidatePath checks if a file path is legal | {
"resource": ""
} | ||
c177170 | test | // MatchDatum checks if a datum matches a filter. To match each string in
// filter must correspond match at least 1 datum's Path or Hash. Order of
// filter and data is irrelevant. | {
"resource": ""
} | ||
c177171 | test | // NewCacheServer creates a new CacheServer. | {
"resource": ""
} | ||
c177172 | test | // authorizePipelineOp checks if the user indicated by 'ctx' is authorized
// to perform 'operation' on the pipeline in 'info' | {
"resource": ""
} | ||
c177173 | test | // sudo is a helper function that copies 'pachClient' grants it PPS's superuser
// token, and calls 'f' with the superuser client. This helps isolate PPS's use
// of its superuser token so that it's not widely copied and is unlikely to
// leak authority to parts of the code that aren't supposed to have it.
//
// Note t... | {
"resource": ""
} | ||
c177174 | test | // setPipelineDefaults sets the default values for a pipeline info | {
"resource": ""
} | ||
c177175 | test | // incrementGCGeneration increments the GC generation number in etcd | {
"resource": ""
} | ||
c177176 | test | // NewDebugServer creates a new server that serves the debug api over GRPC | {
"resource": ""
} | ||
c177177 | test | // Health health checks pachd, it returns an error if pachd isn't healthy. | {
"resource": ""
} | ||
c177178 | test | // In test mode, we use unique names for cache groups, since we might want
// to run multiple block servers locally, which would conflict if groups
// had the same name. We also do not report stats to prometheus | {
"resource": ""
} | ||
c177179 | test | // watchGC watches for GC runs and invalidate all cache when GC happens. | {
"resource": ""
} | ||
c177180 | test | // splitKey splits a key into the format we want, and also postpends
// the generation number | {
"resource": ""
} | ||
c177181 | test | // NewWriter returns a new Writer, it will flush when
// it gets termHeight many lines, including the header line.
// The header line will be reprinted termHeight many lines have been written.
// NewStreamingWriter will panic if it's given a header that doesn't end in \n. | {
"resource": ""
} | ||
c177182 | test | // Write writes a line to the tabwriter. | {
"resource": ""
} | ||
c177183 | test | // PrintRepoHeader prints a repo header. | {
"resource": ""
} | ||
c177184 | test | // PrintRepoInfo pretty-prints repo info. | {
"resource": ""
} | ||
c177185 | test | // PrintDetailedRepoInfo pretty-prints detailed repo info. | {
"resource": ""
} | ||
c177186 | test | // PrintBranch pretty-prints a Branch. | {
"resource": ""
} | ||
c177187 | test | // PrintCommitInfo pretty-prints commit info. | {
"resource": ""
} | ||
c177188 | test | // PrintDetailedCommitInfo pretty-prints detailed commit info. | {
"resource": ""
} | ||
c177189 | test | // PrintFileInfo pretty-prints file info.
// If recurse is false and directory size is 0, display "-" instead
// If fast is true and file size is 0, display "-" instead | {
"resource": ""
} | ||
c177190 | test | // PrintDetailedFileInfo pretty-prints detailed file info. | {
"resource": ""
} | ||
c177191 | test | // Add adds an ancestry reference to the given string. | {
"resource": ""
} | ||
c177192 | test | // RetryNotify calls notify function with the error and wait duration
// for each failed attempt before sleep. | {
"resource": ""
} | ||
c177193 | test | // Get does a filtered write of id's hashtree to the passed in io.Writer. | {
"resource": ""
} | ||
c177194 | test | // Delete deletes a hashtree from the cache. | {
"resource": ""
} | ||
c177195 | test | // PrintJobInfo pretty-prints job info. | {
"resource": ""
} | ||
c177196 | test | // PrintPipelineInfo pretty-prints pipeline info. | {
"resource": ""
} | ||
c177197 | test | // PrintWorkerStatus pretty prints a worker status. | {
"resource": ""
} | ||
c177198 | test | // PrintDetailedJobInfo pretty-prints detailed job info. | {
"resource": ""
} | ||
c177199 | test | // PrintDetailedPipelineInfo pretty-prints detailed pipeline info. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.