image

package
v0.0.0-...-e2fe20d Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Image

type Image struct {
	ID      string
	Bytes   int64
	Tags    map[string]struct{}
	Digests map[string]struct{}
}

func New

func New() *Image

func (*Image) AddDigest

func (i *Image) AddDigest(digest string)

func (*Image) AddTag

func (i *Image) AddTag(tag string)

func (*Image) MarshalJSON

func (i *Image) MarshalJSON() ([]byte, error)

func (*Image) SetByteSize

func (i *Image) SetByteSize(bytes int64) error

func (*Image) SetID

func (i *Image) SetID(id string) error

type List

type List struct {
	SKU     string   `json:"sku"`
	Version string   `json:"imageVersion"`
	BOM     []*Image `json:"imageBom"`
}

func ListImages

func ListImages(sku, version string) (*List, error)

Jump to

Keyboard shortcuts

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