registry

package
v0.19.1306 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2026 License: AGPL-3.0 Imports: 4 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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