registry

package
v0.0.35 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2023 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithAuth added in v0.0.33

func WithAuth(username string, password string) remote.Option

Types

type ImageCache added in v0.0.8

type ImageCache struct {
	Id     string
	Digest string
	Name   string
	Tags   []string

	Image     *v1.Image
	Source    *source.Source
	ImagePath string
	Ref       *name.Reference
	// contains filtered or unexported fields
}

func ReadImage

func ReadImage(name string, path string) (*ImageCache, error)

func SaveImage

func SaveImage(image string, username string, password string, cli command.Cli) (*ImageCache, error)

SaveImage stores the v1.Image at path returned in OCI format

func (*ImageCache) Cleanup added in v0.0.8

func (c *ImageCache) Cleanup()

func (*ImageCache) StoreImage added in v0.0.8

func (c *ImageCache) StoreImage() error

type ImageId

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

func (ImageId) Context

func (i ImageId) Context() name.Repository

func (ImageId) Identifier

func (i ImageId) Identifier() string

func (ImageId) Name

func (i ImageId) Name() string

func (ImageId) Scope

func (i ImageId) Scope(s string) string

func (ImageId) String

func (i ImageId) String() string

Jump to

Keyboard shortcuts

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