package
17.12.1-ce-rc2+incompatible
Repository: https://github.com/mirantis/cli.git
Documentation: pkg.go.dev
# Functions
GetVersionFromTarsum returns the Version from the provided string.
GetVersions gets a list of all known tarsum versions.
NewTarSum creates a new interface for calculating a fixed time checksum of a tar archive.
NewTarSumForLabel creates a new TarSum using the provided TarSum version+hash label.
NewTarSumHash creates a new TarSum, providing a THash to use rather than the DefaultTHash.
NewTHash is a convenience method for creating a THash.
VersionLabelForChecksum returns the label for the given tarsum checksum, i.e., everything before the first `+` character in the string or an empty string if no label separator is found.
WriteV1Header writes a tar header to a writer in V1 tarsum format.
# Constants
Prefix of "tarsum".
Prefix of "tarsum".
VersionDev this constant will be either the latest or an unsettled next-version of the TarSum calculation.
# Variables
DefaultTHash is default TarSum hashing algorithm - "sha256".
Errors that may be returned by functions in this package.
Errors that may be returned by functions in this package.
# Interfaces
BuilderContext is an interface extending TarSum by adding the Remove method.
FileInfoSumInterface provides an interface for accessing file checksum information within a tar file.
TarSum is the generic interface for calculating fixed time checksums of a tar archive.
THash provides a hash.Hash type generator and its name.
# Type aliases
FileInfoSums provides a list of FileInfoSumInterfaces.
Version is used for versioning of the TarSum algorithm based on the prefix of the hash used i.e.