Documentation
¶
Index ¶
Constants ¶
View Source
const (
DigestSHA256Prefix = "sha256:"
)
Variables ¶
This section is empty.
Functions ¶
func IsDigestEqual ¶
func ValidateDigest ¶
Types ¶
type Digest ¶
type Digest string
func CanonicalDigest ¶ added in v0.2.17
func CloneDigest ¶
func DigestBytes ¶
DigestBytes returns the canonical sha256 digest representation used by the artifact store for arbitrary immutable content.
type DigestWriter ¶ added in v0.2.20
type DigestWriter struct {
// contains filtered or unexported fields
}
DigestWriter incrementally calculates a Digest.
It implements io.Writer and is suitable for bounded streaming reads, directory fingerprints, and other inputs that should not be accumulated into one in-memory byte slice.
DigestWriter is not safe for concurrent use.
func NewDigestWriter ¶ added in v0.2.20
func NewDigestWriter() *DigestWriter
func (*DigestWriter) Digest ¶ added in v0.2.20
func (w *DigestWriter) Digest() Digest
Digest returns the current digest without changing writer state.
Click to show internal directories.
Click to hide internal directories.