plainimage

package
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNotAnImageError

func IsNotAnImageError(err error) bool

Types

type Contents

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

func NewContents

func NewContents(paths []string, excludedPaths []string) Contents

func (Contents) Push

func (i Contents) Push(uploadRef regname.Tag, labels map[string]string, writer ImagesWriter, ui ui.UI) (string, error)

type ImagesDescriptor

type ImagesDescriptor interface {
	Get(regname.Reference) (*regremote.Descriptor, error)
}

type ImagesWriter

type ImagesWriter interface {
	WriteImage(regname.Reference, regv1.Image) error
	WriteTag(ref regname.Tag, taggagle regremote.Taggable) error
}

type InfoLog

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

func (InfoLog) Write

func (l InfoLog) Write(data []byte) (int, error)

type PlainImage

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

func NewFetchedPlainImageWithTag

func NewFetchedPlainImageWithTag(digestRef string, tag string, fetchedImage regv1.Image) *PlainImage

func NewPlainImage

func NewPlainImage(ref string, imgDescriptor ImagesDescriptor) *PlainImage

func (*PlainImage) Digest added in v0.27.0

func (i *PlainImage) Digest() string

Digest Image Digest

func (*PlainImage) DigestRef

func (i *PlainImage) DigestRef() string

DigestRef Image full location including registry, repository and digest

func (*PlainImage) Fetch

func (i *PlainImage) Fetch() (regv1.Image, error)

func (*PlainImage) IsImage

func (i *PlainImage) IsImage() (bool, error)

func (*PlainImage) Pull

func (i *PlainImage) Pull(outputPath string, ui ui.UI) error

func (*PlainImage) Repo

func (i *PlainImage) Repo() string

func (*PlainImage) Tag

func (i *PlainImage) Tag() string

Jump to

Keyboard shortcuts

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