Documentation
¶
Overview ¶
Package types catalogs github.com/opencontainers/go-digest for wrapping by containerkit.
Code generated by go run ./tools/gencatalog; DO NOT EDIT.
Source: https://pkg.go.dev/github.com/opencontainers/go-digest
Each identifier keeps the exact upstream type name. Domain isolation lives in the import path (internal/digest/types), not in renamed aliases.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Algorithm ¶
Algorithm wraps digest.Algorithm.
Algorithm identifies and implementation of a digester by an identifier. Note the that this defines both the hash algorithm used and the string encoding.
Source: https://pkg.go.dev/github.com/opencontainers/go-digest#Algorithm Kind: named:string Underlying: string Usecase: wrap an OCI content digest type used by image identity.
type Digest ¶
Digest wraps digest.Digest.
Digest allows simple protection of hex formatted digest strings, prefixed by their algorithm. Strings of type Digest have some guarantee of being in the correct format and it provides quick access to the components of a digest string.
The following is an example of the contents of Digest types:
sha256:7173b809ca12ec5dee4506cd86be934c4596dd234ee82c0662eac04a8c2c71dc
This allows to abstract the digest behind this type and work only in those terms.
Source: https://pkg.go.dev/github.com/opencontainers/go-digest#Digest Kind: named:string Underlying: string Usecase: wrap an OCI content digest type used by image identity.
type Digester ¶
Digester wraps digest.Digester.
Digester calculates the digest of written data. Writes should go directly to the return value of Hash, while calling Digest will return the current value of the digest.
Source: https://pkg.go.dev/github.com/opencontainers/go-digest#Digester Kind: interface References: hash.Hash Usecase: wrap an OCI content digest type used by image identity.
type Verifier ¶
Verifier wraps digest.Verifier.
Verifier presents a general verification interface to be used with message digests and other byte stream verifications. Users instantiate a Verifier from one of the various methods, write the data under test to it then check the result with the Verified method.
Source: https://pkg.go.dev/github.com/opencontainers/go-digest#Verifier Kind: interface References: io.Writer Usecase: wrap an OCI content digest type used by image identity.