imageio

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImageIO

type ImageIO interface {
	ReadIndex() (regpkg.ImageIndex, error)
	WriteIndex(index regpkg.ImageIndex) error
	ReadImage() (regpkg.Image, error)
	WriteImage(image regpkg.Image) error
}

ImageIO is an interface for helpers of reading/writing images to/from somewhere.

type LocalImage

type LocalImage struct {
	LocalPath string
}

LocalImage is a helper for reading/writing images stored in the OCI Image Layout directory.

func (LocalImage) ReadImage

func (li LocalImage) ReadImage() (regpkg.Image, error)

func (LocalImage) ReadIndex

func (li LocalImage) ReadIndex() (regpkg.ImageIndex, error)

func (LocalImage) WriteImage

func (li LocalImage) WriteImage(image regpkg.Image) error

func (LocalImage) WriteIndex

func (li LocalImage) WriteIndex(index regpkg.ImageIndex) error

type RemoteImage

type RemoteImage struct {
	RemoteRef name.Reference
}

RemoteImage is a helper for reading/writing images stored in the remote registry.

func (RemoteImage) ReadImage

func (ri RemoteImage) ReadImage() (regpkg.Image, error)

func (RemoteImage) ReadIndex

func (ri RemoteImage) ReadIndex() (regpkg.ImageIndex, error)

func (RemoteImage) WriteImage

func (ri RemoteImage) WriteImage(image regpkg.Image) error

func (RemoteImage) WriteIndex

func (ri RemoteImage) WriteIndex(index regpkg.ImageIndex) error

Jump to

Keyboard shortcuts

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