repository

package
v0.0.0-...-e093f0a Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsManifestUnknownError

func IsManifestUnknownError(err error) bool

func IsRepositoryUnknownError

func IsRepositoryUnknownError(err error) bool

func IsTagUnknownError

func IsTagUnknownError(err error) bool

Types

type ImageInfo

type ImageInfo struct {
	Tag           string `json:",omitempty"`
	Created       *time.Time
	DockerVersion string
	Labels        map[string]string
	Architecture  string
	Os            string
	Layers        []string
	Env           []string
}

type Repository

type Repository interface {
	ImageMetadata(imgRef, arch string, insecure bool) (*ImageInfo, error)
	PushImage(ctx context.Context, img v1.Image, imgRef string) error
	PushImageIndex(ctx context.Context, img v1.ImageIndex, imgRef string) error
	CopyImage(ctx context.Context, srcRef, dstRef string, insecure bool) error
}

type RepositoryImpl

type RepositoryImpl struct {
}

func (RepositoryImpl) CopyImage

func (r RepositoryImpl) CopyImage(ctx context.Context, srcRef, dstRef string, insecure bool) error

func (RepositoryImpl) ImageMetadata

func (r RepositoryImpl) ImageMetadata(imgRef, arch string, insecure bool) (imageInfo *ImageInfo, retErr error)

func (RepositoryImpl) PushImage

func (r RepositoryImpl) PushImage(ctx context.Context, img v1.Image, imgRef string) error

func (RepositoryImpl) PushImageIndex

func (r RepositoryImpl) PushImageIndex(ctx context.Context, imageIndex v1.ImageIndex, imageRef string) error

Jump to

Keyboard shortcuts

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