registry

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2025 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	// ListRepositories returns all repositories in the registry
	ListRepositories(ctx context.Context) ([]string, error)

	// ListTags returns all tags for a repository
	ListTags(ctx context.Context, repo string) ([]string, error)

	// GetDigest returns the digest for a specific tag
	GetDigest(ctx context.Context, repo, tag string) (string, error)

	// GetManifest retrieves image manifest by digest
	GetManifest(ctx context.Context, repo, digest string) (*Manifest, error)
}

Client defines the interface for interacting with container registries

func NewClient

func NewClient(regsyncConfig *config.RegsyncConfig) (Client, error)

NewClient creates a new registry client configured with credentials from regsync config

type ConfigDescriptor

type ConfigDescriptor struct {
	Digest    string
	MediaType string
	Size      int64
}

ConfigDescriptor describes the image config

type LayerDescriptor

type LayerDescriptor struct {
	Digest    string
	MediaType string
	Size      int64
}

LayerDescriptor describes an image layer

type Manifest

type Manifest struct {
	Digest       string
	MediaType    string
	Config       ConfigDescriptor
	Layers       []LayerDescriptor
	Annotations  map[string]string
	Architecture string
	OS           string
}

Manifest represents a container image manifest

Jump to

Keyboard shortcuts

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