Documentation
¶
Overview ¶
manifest provides utilities for managing Open Container Initiative image manifests described here: https://github.com/opencontainers/image-spec/blob/main/manifest.md and here: https://pkg.go.dev/github.com/opencontainers/image-spec@v1.1.1/specs-go/v1#Manifest .
manifest provides utilities for managing Open Container Initiative image manifests described here: https://github.com/opencontainers/image-spec/blob/main/manifest.md and here: https://pkg.go.dev/github.com/opencontainers/image-spec@v1.1.1/specs-go/v1#Manifest .
Index ¶
- Constants
- func NewDescriptor() v1.Descriptor
- func NewDescriptorFromTableRow(cols, row []string) (v1.Descriptor, error)
- func NewManifest() v1.Manifest
- func NewManifestFromTableRow(cols, row []string) (v1.Manifest, error)
- type DescriptorEdit
- func (e *DescriptorEdit) Digest() digest.Digest
- func (e *DescriptorEdit) Title() string
- func (e *DescriptorEdit) UpsertDigest(v string)
- func (e *DescriptorEdit) UpsertSize(v int64)
- func (e *DescriptorEdit) UpsertTableRow(cols, row []string) error
- func (e *DescriptorEdit) UpsertTitle(v string)
- func (e *DescriptorEdit) UpsertVersion(v string)
- type Descriptors
- type ManifestEdit
Constants ¶
View Source
const ( FieldDigest = "digest" FieldPlatformOS = "platform_os" FieldPlatformArch = "platform_arch" FieldSize = "size" FieldTitle = "title" FieldVersion = "version" )
Variables ¶
This section is empty.
Functions ¶
func NewDescriptor ¶
func NewDescriptor() v1.Descriptor
func NewDescriptorFromTableRow ¶
func NewDescriptorFromTableRow(cols, row []string) (v1.Descriptor, error)
func NewManifest ¶
Types ¶
type DescriptorEdit ¶
type DescriptorEdit struct {
Descriptor v1.Descriptor
}
func NewDescriptorEdit ¶
func NewDescriptorEdit() DescriptorEdit
func (*DescriptorEdit) Digest ¶
func (e *DescriptorEdit) Digest() digest.Digest
func (*DescriptorEdit) Title ¶
func (e *DescriptorEdit) Title() string
func (*DescriptorEdit) UpsertDigest ¶
func (e *DescriptorEdit) UpsertDigest(v string)
func (*DescriptorEdit) UpsertSize ¶
func (e *DescriptorEdit) UpsertSize(v int64)
func (*DescriptorEdit) UpsertTableRow ¶
func (e *DescriptorEdit) UpsertTableRow(cols, row []string) error
func (*DescriptorEdit) UpsertTitle ¶
func (e *DescriptorEdit) UpsertTitle(v string)
func (*DescriptorEdit) UpsertVersion ¶
func (e *DescriptorEdit) UpsertVersion(v string)
type Descriptors ¶
type Descriptors []v1.Descriptor
func (Descriptors) DigestsMap ¶
func (ds Descriptors) DigestsMap() map[string]int
func (Descriptors) DigestsUnique ¶
func (ds Descriptors) DigestsUnique() bool
func (Descriptors) TitlesMap ¶
func (ds Descriptors) TitlesMap() map[string]int
func (Descriptors) TitlesUnique ¶
func (ds Descriptors) TitlesUnique() bool
type ManifestEdit ¶
func NewManifestEdit ¶
func NewManifestEdit() ManifestEdit
func (*ManifestEdit) UpsertDigest ¶
func (e *ManifestEdit) UpsertDigest(v string)
func (*ManifestEdit) UpsertSize ¶
func (e *ManifestEdit) UpsertSize(v int64)
func (*ManifestEdit) UpsertTableRow ¶
func (e *ManifestEdit) UpsertTableRow(cols, row []string) error
func (*ManifestEdit) UpsertTitle ¶
func (e *ManifestEdit) UpsertTitle(v string)
func (*ManifestEdit) UpsertVersion ¶
func (e *ManifestEdit) UpsertVersion(v string)
Click to show internal directories.
Click to hide internal directories.