package
0.0.0-20250207195839-4efbcf8eb020
Repository: https://github.com/bazelbuild/remote-apis-sdks.git
Documentation: pkg.go.dev

# Functions

CheckCapabilities returns an error if the digest function is not supported by the server.
GetDigestFunction returns the digest function used by the client.
New creates a new digest from a string and size.
NewFromBlob takes a blob (in the form of a byte array) and returns the Digest for that blob.
NewFromFile computes a file digest from a path.
NewFromMessage calculates the digest of a protobuf in SHA-256 mode.
NewFromProto converts a proto digest to a Digest.
NewFromProtoUnvalidated converts a proto digest to a Digest, skipping validation.
NewFromReader computes a file digest from a reader.
NewFromString returns a digest from a canonical digest string.
TestNew is like New but also pads your hash with zeros if it is shorter than the required length, and panics on error rather than returning the error.
TestNewFromMessage is only suitable for testing and panics on error.

# Variables

Empty is the digest of the empty blob.
HashFn is the digest function used.

# Structs

Digest is a Go type to mirror the repb.Digest message.