schema1

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: 7 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 schema1 manifest.

func RequestConfig

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

RequestConfig retrieves the manifest from the associated configuration. Unlike in v2 manifests, v1 manifests have the configuration stored in the history, so we can safely ignore the http.Client passed to this function.

func ToManifest

func ToManifest(manifest distribution.Manifest) *v1.SignedManifest

ToManifest casts a distribution.Manifest to a schema1.Manifest. It panics if it passed anything other than a schema1.SignedManifest.

Types

This section is empty.

Jump to

Keyboard shortcuts

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