registry

package
v0.16.9 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NotFoundError = errors.New("image reference not found")

Functions

This section is empty.

Types

type Client

type Client interface {
	Inspect(ctx context.Context, imageRef string, platform *Platform) (*ManifestResult, error)
	GetImage(ctx context.Context, imageRef string, platform *Platform) (v1.Image, error)
	Exists(ctx context.Context, imageRef string) (bool, error)
}

func NewRegistryClient added in v0.15.3

func NewRegistryClient() Client

type ManifestResult

type ManifestResult struct {
	SchemaVersion int64
	MediaType     string

	Manifests []PlatformManifest
	Layers    []string
	Config    string
}

func (*ManifestResult) IsIndex

func (m *ManifestResult) IsIndex() bool

func (*ManifestResult) IsSinglePlatform

func (m *ManifestResult) IsSinglePlatform() bool

type Platform

type Platform struct {
	OS           string
	Architecture string
	Variant      string
}

type PlatformManifest

type PlatformManifest struct {
	Digest       string
	OS           string
	Architecture string
	Variant      string
}

type RegistryClient added in v0.15.3

type RegistryClient struct{}

func (*RegistryClient) Exists added in v0.15.3

func (c *RegistryClient) Exists(ctx context.Context, imageRef string) (bool, error)

func (*RegistryClient) GetImage added in v0.15.3

func (c *RegistryClient) GetImage(ctx context.Context, imageRef string, platform *Platform) (v1.Image, error)

func (*RegistryClient) Inspect added in v0.15.3

func (c *RegistryClient) Inspect(ctx context.Context, imageRef string, platform *Platform) (*ManifestResult, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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