registry

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImageInfo

type ImageInfo struct {
	ID         string
	Repository string
	Tag        string
	Created    time.Time
	Size       int64
}

ImageInfo represents image information

type ListOptions

type ListOptions struct {
	Filter []string
	All    bool
}

ListOptions represents list options

type PullOptions

type PullOptions struct {
	Image    string
	Registry string
	Quiet    bool
}

PullOptions represents pull options

type PullResult

type PullResult struct {
	ImageID     string
	Size        string
	Digest      string
	RegistryURL string
}

PullResult represents pull result

type PushOptions

type PushOptions struct {
	Image    string
	Registry string
	AllTags  bool
}

PushOptions represents push options

type PushResult

type PushResult struct {
	Repository  string
	Tag         string
	Digest      string
	Size        string
	RegistryURL string
}

PushResult represents push result

type Registry

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

Registry handles registry operations

func New

func New() *Registry

New creates a new registry instance

func (*Registry) ListLocal

func (r *Registry) ListLocal(options *ListOptions) ([]ImageInfo, error)

ListLocal lists local images

func (*Registry) Pull

func (r *Registry) Pull(options *PullOptions) (*PullResult, error)

Pull pulls an image from a registry

func (*Registry) Push

func (r *Registry) Push(options *PushOptions) (*PushResult, error)

Push pushes an image to a registry

func (*Registry) ValidateLocalImage

func (r *Registry) ValidateLocalImage(imageName string) error

ValidateLocalImage validates that an image exists locally

Jump to

Keyboard shortcuts

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