image

package
v0.42.3 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: Apache-2.0 Imports: 15 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

NewDirImage given an OCI Image representation creates a struct that will allow that image to be extracted into the provided directory

func (*DirImage) AsDirectory

func (i *DirImage) AsDirectory() error

AsDirectory extracts the OCI image to the provided location in disk

type FileImage

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

func NewFileImage

func NewFileImage(path string, labels map[string]string) (*FileImage, error)

func (*FileImage) Remove

func (i *FileImage) Remove() error

type Logger

type Logger interface {
	Logf(msg string, args ...interface{})
}

Logger used to print messages

type TarImage

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

func NewTarImage

func NewTarImage(files []string, excludePaths []string, logger Logger, keepPermissions bool) *TarImage

NewTarImage creates a struct that will allow users to create a representation of a set of paths as an OCI Image

func (*TarImage) AsFileImage

func (i *TarImage) AsFileImage(labels map[string]string) (*FileImage, error)

AsFileImage Creates an OCI Image representation of the provided folders

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