container

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidCopyName      = errors.New("invalid copy name (format: <file>[:<destination>])")
	ErrorInvalidLabelFormat = errors.New("invalid label (format: <key>=<value>)")
)

Functions

This section is empty.

Types

type Binary

type Binary struct {
	Platform ocischemav1.Platform
	File     string
}

type Blob

type Blob struct {
	Sha256 digest.Digest
	Data   []byte
}

type Container

type Container struct {
	Blobs         []Blob
	Shared        []ocischemav1.Descriptor
	SharedDiffIDs []digest.Digest
	Layout        ocischemav1.ImageLayout
	Index         ocischemav1.Index
	Labels        map[string]string
}

func New

func New() (*Container, error)

func (*Container) AddBinary

func (c *Container) AddBinary(fnames []string) error

func (*Container) Copy

func (c *Container) Copy(names ...string) error

func (*Container) Save

func (c *Container) Save(dirname string) error

func (*Container) SetLabels

func (c *Container) SetLabels(labels ...string) error

func (*Container) WriteBlobs

func (c *Container) WriteBlobs(dirname string) error

func (*Container) WriteIndex

func (c *Container) WriteIndex(dirname string) error

func (*Container) WriteLayout

func (c *Container) WriteLayout(dirname string) error

type Layer

type Layer struct {
}

type TarItem

type TarItem struct {
	File        string
	Destination string
}

Jump to

Keyboard shortcuts

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