_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c177200
test
// PrintDatumInfo 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": "" }
c177201
test
// PrintDetailedDatumInfo pretty-prints detailed info about a datum
{ "resource": "" }
c177202
test
// PrintFile values for a pfs file.
{ "resource": "" }
c177203
test
// ShorthandInput renders a pps.Input as a short, readable string
{ "resource": "" }
c177204
test
// Retrieve returns nil if it successfully retrieved the value. Error is // returned if the value were not obtainable, or empty.
{ "resource": "" }
c177205
test
// IsExpired returns if the credentials are no longer valid, and need to be // retrieved.
{ "resource": "" }
c177206
test
// NewBranch creates a pfs.Branch
{ "resource": "" }
c177207
test
// NewCommit creates a pfs.Commit.
{ "resource": "" }
c177208
test
// NewCommitProvenance creates a pfs.CommitProvenance.
{ "resource": "" }
c177209
test
// NewFile creates a pfs.File.
{ "resource": "" }
c177210
test
// CreateRepo creates a new Repo object in pfs with the given name. Repos are // the top level data object in pfs and should be used to store data of a // similar type. For example rather than having a single Repo for an entire // project you might have separate Repos for logs, metrics, database dumps etc.
{ "resource": "" }
c177211
test
// InspectRepo returns info about a specific Repo.
{ "resource": "" }
c177212
test
// ListRepo returns info about all Repos. // provenance specifies a set of provenance repos, only repos which have ALL of // the specified repos as provenance will be returned unless provenance is nil // in which case it is ignored.
{ "resource": "" }
c177213
test
// DeleteRepo deletes a repo and reclaims the storage space it was using. Note // that as of 1.0 we do not reclaim the blocks that the Repo was referencing, // this is because they may also be referenced by other Repos and deleting them // would make those Repos inaccessible. This will be resolved in later // versions....
{ "resource": "" }
c177214
test
// BuildCommit builds a commit in a single call from an existing HashTree that // has already been written to the object store. Note this is a more advanced // pattern for creating commits that's mostly used internally.
{ "resource": "" }
c177215
test
// StartCommitParent begins the process of committing data to a Repo. Once started // you can write to the Commit with PutFile and when all the data has been // written you must finish the Commit with FinishCommit. NOTE, data is not // persisted until FinishCommit is called. // branch is a more convenient way to build ...
{ "resource": "" }
c177216
test
// FinishCommit ends the process of committing data to a Repo and persists the // Commit. Once a Commit is finished the data becomes immutable and future // attempts to write to it with PutFile will error.
{ "resource": "" }
c177217
test
// InspectCommit returns info about a specific Commit.
{ "resource": "" }
c177218
test
// BlockCommit returns info about a specific Commit, but blocks until that // commit has been finished.
{ "resource": "" }
c177219
test
// ListCommit lists commits. // If only `repo` is given, all commits in the repo are returned. // If `to` is given, only the ancestors of `to`, including `to` itself, // are considered. // If `from` is given, only the descendents of `from`, including `from` // itself, are considered. // `number` determines how many com...
{ "resource": "" }
c177220
test
// ListCommitF lists commits, calling f with each commit. // If only `repo` is given, all commits in the repo are returned. // If `to` is given, only the ancestors of `to`, including `to` itself, // are considered. // If `from` is given, only the descendents of `from`, including `from` // itself, are considered. // `nu...
{ "resource": "" }
c177221
test
// ListCommitByRepo lists all commits in a repo.
{ "resource": "" }
c177222
test
// CreateBranch creates a new branch
{ "resource": "" }
c177223
test
// InspectBranch returns information on a specific PFS branch
{ "resource": "" }
c177224
test
// ListBranch lists the active branches on a Repo.
{ "resource": "" }
c177225
test
// SetBranch sets a commit and its ancestors as a branch. // SetBranch is deprecated in favor of CommitBranch.
{ "resource": "" }
c177226
test
// DeleteBranch deletes a branch, but leaves the commits themselves intact. // In other words, those commits can still be accessed via commit IDs and // other branches they happen to be on.
{ "resource": "" }
c177227
test
// DeleteCommit deletes a commit.
{ "resource": "" }
c177228
test
// FlushCommit returns an iterator that returns commits that have the // specified `commits` as provenance. Note that the iterator can block if // jobs have not successfully completed. This in effect waits for all of the // jobs that are triggered by a set of commits to complete. // // If toRepos is not nil then only ...
{ "resource": "" }
c177229
test
// FlushCommitF calls f with commits that have the specified `commits` as // provenance. Note that it can block if jobs have not successfully // completed. This in effect waits for all of the jobs that are triggered by a // set of commits to complete. // // If toRepos is not nil then only the commits up to and includin...
{ "resource": "" }
c177230
test
// FlushCommitAll returns commits that have the specified `commits` as // provenance. Note that it can block if jobs have not successfully // completed. This in effect waits for all of the jobs that are triggered by a // set of commits to complete. // // If toRepos is not nil then only the commits up to and including t...
{ "resource": "" }
c177231
test
// SubscribeCommit is like ListCommit but it keeps listening for commits as // they come in.
{ "resource": "" }
c177232
test
// SubscribeCommitF is like ListCommit but it calls a callback function with // the results rather than returning an iterator.
{ "resource": "" }
c177233
test
// PutObjectAsync puts a value into the object store asynchronously.
{ "resource": "" }
c177234
test
// PutObject puts a value into the object store and tags it with 0 or more tags.
{ "resource": "" }
c177235
test
// PutObjectSplit is the same as PutObject except that the data is splitted // into several smaller objects. This is primarily useful if you'd like to // be able to resume upload.
{ "resource": "" }
c177236
test
// GetObject gets an object out of the object store by hash.
{ "resource": "" }
c177237
test
// GetObjectReader returns a reader for an object in object store by hash.
{ "resource": "" }
c177238
test
// GetObjects gets several objects out of the object store by hash.
{ "resource": "" }
c177239
test
// TagObject applies a tag to an existing object.
{ "resource": "" }
c177240
test
// ListObject lists objects stored in pfs.
{ "resource": "" }
c177241
test
// InspectObject returns info about an Object.
{ "resource": "" }
c177242
test
// GetTag gets an object out of the object store by tag.
{ "resource": "" }
c177243
test
// GetTagReader returns a reader for an object in object store by tag.
{ "resource": "" }
c177244
test
// ListTag lists tags stored in pfs.
{ "resource": "" }
c177245
test
// Compact forces compaction of objects.
{ "resource": "" }
c177246
test
// NewPutFileClient returns a new client for putting files into pfs in a single request.
{ "resource": "" }
c177247
test
// PutFileOverwrite is like PutFile but it overwrites the file rather than // appending to it. overwriteIndex allows you to specify the index of the // object starting from which you'd like to overwrite. If you want to // overwrite the entire file, specify an index of 0.
{ "resource": "" }
c177248
test
// Close must be called after you're done using a putFileClient. // Further requests will throw errors.
{ "resource": "" }
c177249
test
// CopyFile copys a file from one pfs location to another. It can be used on // directories or regular files.
{ "resource": "" }
c177250
test
// GetFile returns the contents of a file at a specific Commit. // offset specifies a number of bytes that should be skipped in the beginning of the file. // size limits the total amount of data returned, note you will get fewer bytes // than size if you pass a value larger than the size of the file. // If size is set ...
{ "resource": "" }
c177251
test
// GetFileReader returns a reader for the contents of a file at a specific Commit. // offset specifies a number of bytes that should be skipped in the beginning of the file. // size limits the total amount of data returned, note you will get fewer bytes // than size if you pass a value larger than the size of the file....
{ "resource": "" }
c177252
test
// GetFileReadSeeker returns a reader for the contents of a file at a specific // Commit that permits Seeking to different points in the file.
{ "resource": "" }
c177253
test
// InspectFile returns info about a specific file.
{ "resource": "" }
c177254
test
// ListFile returns info about all files in a Commit under path.
{ "resource": "" }
c177255
test
// ListFileHistory returns info about all files and their history in a Commit under path.
{ "resource": "" }
c177256
test
// ListFileF returns info about all files in a Commit under path, calling f with each FileInfo.
{ "resource": "" }
c177257
test
// Walk walks the pfs filesystem rooted at path. walkFn will be called for each // file found under path in lexicographical order. This includes both regular // files and directories.
{ "resource": "" }
c177258
test
// DeleteFile deletes a file from a Commit. // DeleteFile leaves a tombstone in the Commit, assuming the file isn't written // to later attempting to get the file from the finished commit will result in // not found error. // The file will of course remain intact in the Commit's parent.
{ "resource": "" }
c177259
test
// Write performs a write.
{ "resource": "" }
c177260
test
// Close closes the writer.
{ "resource": "" }
c177261
test
// PrettyPrintVersionNoAdditional returns a version string without // version.Additional.
{ "resource": "" }
c177262
test
// Walk the command tree, wrap any examples in a block-quote with shell highlighting
{ "resource": "" }
c177263
test
// errMissingField returns a logical response error that prints a consistent // error message for when a required field is missing.
{ "resource": "" }
c177264
test
// validateFields verifies that no bad arguments were given to the request.
{ "resource": "" }
c177265
test
// putConfig parses and returns the configuration data from the storage backend.
{ "resource": "" }
c177266
test
// getConfig parses and returns the configuration data from the storage backend.
{ "resource": "" }
c177267
test
// NewPuller creates a new Puller struct.
{ "resource": "" }
c177268
test
// PullTree pulls from a raw HashTree rather than a repo.
{ "resource": "" }
c177269
test
// Push puts files under root into an open commit.
{ "resource": "" }
c177270
test
// PushObj pushes data from commit to an object store.
{ "resource": "" }
c177271
test
// PushFile makes sure that pfsFile has the same content as osFile.
{ "resource": "" }
c177272
test
// Dump writes debug information from the server to w.
{ "resource": "" }
c177273
test
// Profile writes a pprof profile for pachd to w.
{ "resource": "" }
c177274
test
// Binary writes the running pachd binary to w.
{ "resource": "" }
c177275
test
// RegisterCacheStats creates a new wrapper for groupcache stats that implements // the prometheus.Collector interface, and registers it
{ "resource": "" }
c177276
test
// wait until more than n bytes have been written
{ "resource": "" }
c177277
test
// RunWorkload runs a test workload against a Pachyderm cluster.
{ "resource": "" }
c177278
test
// createRepo creates a new repo in the cluster
{ "resource": "" }
c177279
test
// advanceCommit either starts or finishes a commit, depending on the state of // the cluster.
{ "resource": "" }
c177280
test
// RandString returns a random alphabetical string of size n
{ "resource": "" }
c177281
test
// NewReader returns a Reader which generates strings of characters.
{ "resource": "" }
c177282
test
// iterDir iterates through the nodes under path, it errors with PathNotFound if path doesn't exist, it errors with PathConflict if path exists but isn't a directory.
{ "resource": "" }
c177283
test
// FSSize gets the size of the hashtree
{ "resource": "" }
c177284
test
// Diff returns the diff of two hashtrees at particular paths.
{ "resource": "" }
c177285
test
// Serialize serializes a binary version of the hashtree.
{ "resource": "" }
c177286
test
// Deserialize deserializes a hashtree.
{ "resource": "" }
c177287
test
// Copy returns a copy of the hashtree.
{ "resource": "" }
c177288
test
// Destroy cleans up the on disk structures for the hashtree.
{ "resource": "" }
c177289
test
// PutFileOverwrite is the same as PutFile, except that instead of // appending the objects to the end of the given file, the objects // are inserted to the given index, and the existing objects starting // from the given index are removed.
{ "resource": "" }
c177290
test
// PutDirHeaderFooter implements the hashtree.PutDirHeaderFooter interface // method
{ "resource": "" }
c177291
test
// PutFileHeaderFooter implements the HashTree PutFileHeaderFooter method
{ "resource": "" }
c177292
test
// deleteDir deletes a directory and all the children under it
{ "resource": "" }
c177293
test
// NewReader creates a new hashtree reader.
{ "resource": "" }
c177294
test
// Read reads the next merge node.
{ "resource": "" }
c177295
test
// NewWriter creates a new hashtree writer.
{ "resource": "" }
c177296
test
// Write writes the next merge node.
{ "resource": "" }
c177297
test
// Copy copies a hashtree reader in a writer.
{ "resource": "" }
c177298
test
// Index returns the index for a hashtree writer.
{ "resource": "" }
c177299
test
// GetRangeFromIndex returns a subtree byte range in a serialized hashtree based on a passed in prefix.
{ "resource": "" }