manifest

package
v1.7.4 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder added in v1.7.0

type Builder struct {
	// contains filtered or unexported fields
}

Builder is the builder to build DockerV2ListMediaType manifest.

func NewBuilder added in v1.7.0

func NewBuilder(o *BuilderOpts) (*Builder, error)

func (*Builder) Add added in v1.7.0

func (b *Builder) Add(p *Image)

func (*Builder) Images added in v1.7.0

func (b *Builder) Images() int

func (*Builder) Push added in v1.7.0

func (b *Builder) Push(ctx context.Context) error

type BuilderOpts added in v1.7.0

type BuilderOpts struct {
	ReferenceName string
	SystemContext *types.SystemContext
	// The number of times to possibly retry.
	MaxRetry int
	// The delay to use between retries, if set.
	Delay time.Duration
}

type Image added in v1.7.0

type Image struct {
	Size      int64
	Digest    digest.Digest
	MediaType string
	// contains filtered or unexported fields
}

func NewImage added in v1.7.0

func NewImage(digest digest.Digest, mime string, size int64) *Image

func NewImageByInspect added in v1.7.0

func NewImageByInspect(
	ctx context.Context, referenceName string, sysContext *types.SystemContext,
) (*Image, error)

func (*Image) Equal added in v1.7.0

func (p *Image) Equal(d *Image) bool

func (*Image) SetArch added in v1.7.0

func (p *Image) SetArch(arch string)

func (*Image) SetOS added in v1.7.0

func (p *Image) SetOS(os string)

func (*Image) SetOsFeature added in v1.7.0

func (p *Image) SetOsFeature(v []string)

func (*Image) SetOsVersion added in v1.7.0

func (p *Image) SetOsVersion(v string)

func (*Image) SetVariant added in v1.7.0

func (p *Image) SetVariant(variant string)

func (*Image) UpdatePlatform added in v1.7.0

func (p *Image) UpdatePlatform(
	arch, variant, os, osVersion string, osFeatures []string,
)

type Images added in v1.7.0

type Images []*Image

func (Images) ContainDigest added in v1.7.0

func (images Images) ContainDigest(d digest.Digest) bool

func (Images) Contains added in v1.7.0

func (images Images) Contains(d *Image) bool

func (Images) Equal added in v1.7.0

func (images Images) Equal(d Images) bool

func (Images) FindPlatformIndex added in v1.7.0

func (images Images) FindPlatformIndex(p *manifestPlatform) int

type Inspector added in v1.7.0

type Inspector struct {
	// contains filtered or unexported fields
}

Inspector provides similar functions of 'skopeo inspect' command.

func NewInspector added in v1.7.0

func NewInspector(ctx context.Context, o *InspectorOption) (*Inspector, error)

func (*Inspector) Close added in v1.7.0

func (ins *Inspector) Close() error

func (*Inspector) Config added in v1.7.0

func (ins *Inspector) Config(ctx context.Context) ([]byte, error)

func (*Inspector) ConfigInfo added in v1.7.0

func (ins *Inspector) ConfigInfo(ctx context.Context) (*types.BlobInfo, error)

func (*Inspector) Inspect added in v1.7.0

func (ins *Inspector) Inspect(ctx context.Context) (*types.ImageInspectInfo, error)

func (*Inspector) Raw added in v1.7.0

func (ins *Inspector) Raw(ctx context.Context) ([]byte, string, error)

type InspectorOption added in v1.7.0

type InspectorOption struct {
	// Reference of the image to be inspected (Optional)
	Reference types.ImageReference
	// ReferenceName of the image (Optional)
	ReferenceName string
	// SystemContext pointer, can be nil.
	SystemContext *types.SystemContext
	// The number of times to possibly retry.
	MaxRetry int
	// The delay to use between retries, if set.
	Delay time.Duration
}

Jump to

Keyboard shortcuts

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