schema2

package
v2.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 4, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsManifest

func IsManifest(m distribution.Manifest) bool

IsManifest returns true if the passed manifest is a schema2 manifest.

func RequestConfig

func RequestConfig(client *http.Client, ref reference.Canonical, manifest distribution.Manifest) (*dockerTypes.ExecConfig, error)

RequestConfig requests an image configuration from the server, based on the passed digest. Returns an ImageConfig or an error.

func ToManifest

func ToManifest(manifest distribution.Manifest) v2.Manifest

ToManifest casts a distribution.Manifest to a schema2.Manifest. It panics if it passed anything other than a schema2.DeserialzedManifest.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL