image

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2019 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DirImage

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

func NewDirImage

func NewDirImage(dirPath string, img regv1.Image, logger Logger) *DirImage

func (*DirImage) AsDirectory

func (i *DirImage) AsDirectory() error

type FileImage

type FileImage struct {
	v1.Image
	// contains filtered or unexported fields
}

func NewFileImage

func NewFileImage(path string) (*FileImage, error)

func (*FileImage) Remove

func (i *FileImage) Remove() error

type Images

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

func NewImages

func NewImages(ref regname.Reference, metadata ImagesMetadata) Images

func (Images) Images

func (tds Images) Images() ([]regv1.Image, error)

type ImagesMetadata

type ImagesMetadata interface {
	Generic(regname.Reference) (regv1.Descriptor, error)
	Index(regname.Reference) (regv1.ImageIndex, error)
	Image(regname.Reference) (regv1.Image, error)
}

type Logger

type Logger interface {
	BeginLinef(pattern string, args ...interface{})
}

type Registry

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

func NewRegistry

func NewRegistry(opts RegistryOpts) Registry

func (Registry) Generic

func (i Registry) Generic(ref regname.Reference) (regv1.Descriptor, error)

func (Registry) Image

func (i Registry) Image(ref regname.Reference) (regv1.Image, error)

func (Registry) Index

func (i Registry) Index(ref regname.Reference) (regv1.ImageIndex, error)

func (Registry) ListTags

func (i Registry) ListTags(repo regname.Repository) ([]string, error)

func (Registry) WriteImage

func (i Registry) WriteImage(ref regname.Reference, img regv1.Image) error

func (Registry) WriteIndex

func (i Registry) WriteIndex(ref regname.Reference, idx regv1.ImageIndex) error

type RegistryOpts

type RegistryOpts struct {
	CACertPaths []string
	VerifyCerts bool

	Username string
	Password string
	Token    string
	Anon     bool
}

type TarImage

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

func NewTarImage

func NewTarImage(files []string) *TarImage

func (*TarImage) AsFileImage

func (i *TarImage) AsFileImage() (*FileImage, error)

type UncompressedFileLayer

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

func (*UncompressedFileLayer) DiffID

func (ul *UncompressedFileLayer) DiffID() (regv1.Hash, error)

func (*UncompressedFileLayer) MediaType

func (ul *UncompressedFileLayer) MediaType() (regtypes.MediaType, error)

func (*UncompressedFileLayer) Uncompressed

func (ul *UncompressedFileLayer) Uncompressed() (io.ReadCloser, error)

Jump to

Keyboard shortcuts

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