package
2.3.4+incompatible
Repository: https://github.com/jeffreydwalter/git-lfs.git
Documentation: pkg.go.dev
# Functions
ClampInt returns the integer "n" bounded between "min" and "max".
CleanPaths splits the given `paths` argument by the delimiter argument, and then "cleans" that path according to the path.Clean function (see https://golang.org/pkg/path#Clean).
No description provided by the author
CopyWithCallback copies reader to writer while performing a progress callback.
DirExists determines if a dir (NOT file) exists.
FastWalkGitRepo is a more optimal implementation of filepath.Walk for a Git repo.
FileExists determines if a file (NOT dir) exists.
FileExistsOfSize determines if a file exists and is of a specific size.
FileOrDirExists determines if a file/dir exists, returns IsDir() results too.
No description provided by the author
Indent returns a string which prepends "\t" TAB characters to the beginning of each line in the given string "str".
IsExpiredAtOrIn returns whether or not the result of calling TimeAtOrIn is "expired" within "until" units of time from now.
Ljust returns a copied string slice where each element is left justified to match the width of the longest element in the set.
Longest returns the longest element in the string slice in O(n) time and O(1) space.
MaxInt returns the greater of two `int`s, "a", or "b".
MaxInt64 returns the greater of two `int`s, "a", or "b".
MinInt returns the smaller of two `int`s, "a", or "b".
MinInt64 returns the smaller of two `int`s, "a", or "b".
No description provided by the author
No description provided by the author
No description provided by the author
Get a new Hash instance of the type used to hash LFS content.
NewOrderedSet creates an ordered set with no values.
NewOrderedSetFromSlice returns a new ordered set with the elements given in the slice "s".
NewOrderedSetWithCapacity creates a new ordered set with no values.
No description provided by the author
Creates and returns a reference to an empty set.
Creates and returns a reference to a set from an existing slice.
Creates and returns a reference to an empty set with a capacity.
QuotedFields is an alternative to strings.Fields (see: https://golang.org/pkg/strings#Fields) that respects spaces between matching pairs of quotation delimeters.
RenameFileCopyPermissions moves srcfile to destfile, replacing destfile if necessary and also copying the permissions of destfile if it already exists.
ResolveSymlinks ensures that if the path supplied is a symlink, it is resolved to the actual concrete path.
Rjust returns a copied string slice where each element is right justified to match the width of the longest element in the set.
SetFileWriteFlag changes write permissions on a file Used to make a file read-only or not.
Spool spools the contents from 'from' to 'to' by buffering the entire contents of 'from' into a temprorary file created in the directory "dir".
TimeAtOrIn returns either "at", or the "in" duration added to the current time.
No description provided by the author
Undent removes all leading tabs in the given string "str", line-wise.
VerifyFileHash reads a file and verifies whether the SHA is correct Returns an error if there is a problem.
# Structs
Base implementation of channel wrapper to just deal with errors.
HashingReader wraps a reader and calculates the hash of the data as it is read.
OrderedSet is a unique set of strings that maintains insertion order.
RetriableReader wraps a error response of reader as RetriableError().
# Interfaces
Interface for all types of wrapper around a channel of results and an error channel Implementors will expose a type-specific channel for results Call the Wait() function after processing the results channel to catch any errors that occurred during the async processing.
# Type aliases
FastWalkCallback is the signature for the callback given to FastWalkGitRepo().
The primary type that represents a set.