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) 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 ¶
RemoteImage is a helper for reading/writing images stored in the remote registry.
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
Click to show internal directories.
Click to hide internal directories.