package
0.0.0-20200723042522-932836ee9d04
Repository: https://github.com/mixpanel/bb-storage.git
Documentation: pkg.go.dev

# Functions

GetDifferenceAndIntersection partitions the elements stored in sets A and B across three resulting sets: one containing the elements present only in A, one containing the elements present in both A and B, and one containing thelements present only in B.
GetUnion merges all of the elements stored in a list of sets into a single resulting set.
MustNewDigest constructs a Digest similar to NewDigest, but never returns an error.
MustNewInstanceName is identical to NewInstanceName, except that it panics in case the instance name is invalid.
NewDigestFromByteStreamReadPath creates a Digest from a string having the following format: ${instanceName}/blobs/${hash}/${size}.
NewDigestFromByteStreamWritePath creates a Digest from a string having the following format: ${instanceName}/uploads/${uuid}/blobs/${hash}/${size}/${path}.
NewExistenceCache creates a new ExistenceCache that is empty.
NewExistenceCacheFromConfiguration is identical to NewExistenceCache(), except that it takes a specification for the object to be created from a configuration file message.
NewInstanceName creates a new InstanceName object that can be used to parse digests.
NewSetBuilder creates a SetBuilder that contains no initial elements.

# Constants

KeyWithInstance lets Digest.GetKey() return a key that includes the hash, size and instance name.
KeyWithoutInstance lets Digest.GetKey() return a key that does not include the name of the instance; only the hash and the size.

# Variables

BadDigest is a default instance of Digest.
EmptySet is an instance of Set that contains zero elements.
SupportedDigestFunctions is the list of digest functions supported by digest.Digest, using the enumeration values that are part of the Remote Execution protocol.

# Structs

Digest holds the identification of an object stored in the Content Addressable Storage (CAS) or Action Cache (AC).
ExistenceCache is a cache of digests, where entries expire once a certain duration of time has passed.
Generator is a writer that may be used to compute digests of newly created files.
InstanceName is a simple container around REv2 instance name strings.
Set of digests.
SetBuilder is a builder for Set objects.

# Type aliases

KeyFormat is an enumeration type that determines the format of object keys returned by Digest.GetKey().