remote

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2026 License: Apache-2.0 Imports: 14 Imported by: 6 modules, 6 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 DockerCredentialFunc added in v0.4.0

func DockerCredentialFunc(configPath string) (func(string) (string, string, error), error)

DockerCredentialFunc returns a credential function compatible with containerd's docker.ResolverOptions.Credentials and docker.WithAuthCreds. It reads Docker configuration from the given config path. If configPath is empty, the default Docker configuration is used.

func Image

func Image(fetcher remotes.Fetcher, desc ocispec.Descriptor) ociimage.Image

Types

type Registry

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

func DockerRegistry

func DockerRegistry() (*Registry, error)

func DockerRegistryWithConfigPath added in v0.4.0

func DockerRegistryWithConfigPath(configPath string) (*Registry, error)

func DockerRegistryWithPlatform added in v0.2.5

func DockerRegistryWithPlatform(platform *ocispec.Platform) (*Registry, error)

func (*Registry) Push

func (r *Registry) Push(ctx context.Context, ref string, img ociimage.Image) error

func (*Registry) Resolve

func (r *Registry) Resolve(ctx context.Context, ref string) (ociimage.Image, error)

Jump to

Keyboard shortcuts

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