Documentation ¶
Overview ¶
Package manifesthandler defines a common set of operations on all versions of manifest schema.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrManifestBlobBadSize ¶
ErrManifestBlobBadSize is returned when the blob size in a manifest does not match the actual size. The docker/distribution does not check this and therefore does not provide an error for this.
func (ErrManifestBlobBadSize) Error ¶
func (err ErrManifestBlobBadSize) Error() string
type ManifestHandler ¶
type ManifestHandler interface { // Config returns a blob with image configuration associated with the manifest. This applies only to // manifet schema 2. Config(ctx context.Context) ([]byte, error) // Digest returns manifest's digest. Digest() (manifestDigest digest.Digest, err error) // Manifest returns a deserialized manifest object. Manifest() distribution.Manifest // Layers returns image layers and a value for the dockerLayersOrder annotation. Layers(ctx context.Context) (order string, layers []imageapiv1.ImageLayer, err error) // Payload returns manifest's media type, complete payload with signatures and canonical payload without // signatures or an error if the information could not be fetched. Payload() (mediaType string, payload []byte, canonical []byte, err error) // Verify returns an error if the contained manifest is not valid or has missing dependencies. Verify(ctx context.Context, skipDependencyVerification bool) error }
A ManifestHandler defines a common set of operations on all versions of manifest schema.
func NewManifestHandler ¶
func NewManifestHandler(serverAddr string, blobStore distribution.BlobStore, manifest distribution.Manifest) (ManifestHandler, error)
NewManifestHandler creates a manifest handler for the given manifest.
Click to show internal directories.
Click to hide internal directories.