registry

package
v0.19.1049 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2026 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToAPIResult

ToAPIResult builds the base success request for an image build/copy. The caller is expected to populate source-identity fields (SourceRef, SourceImage, ResolvedTag, SourceDigest, SourceMediaType, ResolvedAt, NoOp) directly on the returned struct using values derived from `res` and the resolver outcome.

NOTE(jm): once we build out the "results" API, this will become a more first class function, where we build an actual request to represent the image here. For now, it's mainly a translation layer, until we add that.

Types

type AccessInfo

type AccessInfo struct {
	Image    string
	Insecure bool

	Auth *AccessInfoAuth
}

func (*AccessInfo) RepositoryURI

func (a *AccessInfo) RepositoryURI() string

NOTE(jm): in some cases, the image is not a fully resolved path, and we need to use a proxy path or other way of referencing the image, such as when a docker index image is used.

type AccessInfoAuth

type AccessInfoAuth struct {
	// base 64 version
	Encoded string

	// required if encoded not set
	Username string
	Password string

	// set if the authentication should use a custom endpoint
	ServerAddress string
}

type Image

type Image struct {
	Image        string
	Tag          string
	Architecture string
}

func (*Image) Name

func (i *Image) Name() string

Name is the full name including the tag.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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