Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Image ¶
type Image struct { Architecture string `json:"architecture,omitempty"` OS string `json:"os,omitempty"` OSVersion string `json:"os.version,omitempty"` OSFeatures []string `json:"os.features,omitempty"` }
Image is the minimal set of fields required to set default platform settings on a manifest.
func NewImageFromJSON ¶
NewImageFromJSON creates an Image configuration from json.
type ImageManifest ¶
type ImageManifest struct { Ref *SerializableNamed Digest digest.Digest SchemaV2Manifest *schema2.DeserializedManifest `json:",omitempty"` Platform manifestlist.PlatformSpec }
ImageManifest contains info to output for a manifest object.
func NewImageManifest ¶
func NewImageManifest(ref reference.Named, digest digest.Digest, img Image, manifest *schema2.DeserializedManifest) ImageManifest
NewImageManifest returns a new ImageManifest object. The values for Platform are initialized from those in the image
func (ImageManifest) Blobs ¶
func (i ImageManifest) Blobs() []digest.Digest
Blobs returns the digests for all the blobs referenced by this manifest
func (ImageManifest) Payload ¶
func (i ImageManifest) Payload() (string, []byte, error)
Payload returns the media type and bytes for the manifest
func (ImageManifest) References ¶
func (i ImageManifest) References() []distribution.Descriptor
References implements the distribution.Manifest interface. It delegates to the underlying manifest.
type SerializableNamed ¶
SerializableNamed is a reference.Named that can be serialzied and deserialized from JSON
func (*SerializableNamed) MarshalJSON ¶
func (s *SerializableNamed) MarshalJSON() ([]byte, error)
MarshalJSON returns the JSON bytes representation
func (*SerializableNamed) UnmarshalJSON ¶
func (s *SerializableNamed) UnmarshalJSON(b []byte) error
UnmarshalJSON loads the Named reference from JSON bytes