common

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RecommendedStorePathFlagName        = "store-path"
	RecommendedDockerConfigPathFlagName = "docker-config-path"
)
View Source
const (
	RecommendedStorePathFlagUsage        = "Path where to store all local images and index information (such as tags)."
	RecommendedDockerConfigPathFlagUsage = "Path to look up for docker configuration. Leave empty for default location."
)

Variables

View Source
var (
	// DefaultStorePath is the default store path. If your user does not have a home directory,
	// this is empty and needs to be passed in as a flag.
	DefaultStorePath string
)

Functions

func FuzzyResolveRef

func FuzzyResolveRef(ctx context.Context, store *store.Store, ref string) (string, error)

Types

type RemoteRegistryFactory

type RemoteRegistryFactory func() (*remote.Registry, error)

RemoteRegistryFactory is a factory for a remote.Registry.

func DefaultRemoteRegistryFactory

func DefaultRemoteRegistryFactory(configPath *string) RemoteRegistryFactory

type RequestResolverFactory

type RequestResolverFactory func() (*docker.RequestResolver, error)

func DefaultRequestResolverFactory

func DefaultRequestResolverFactory(configPath *string) RequestResolverFactory

type StoreFactory

type StoreFactory func() (*store.Store, error)

StoreFactory is a factory for a store.Store.

func DefaultStoreFactory

func DefaultStoreFactory(storePath *string) StoreFactory

DefaultStoreFactory returns a new StoreFactory that dereferences the store path at invocation time.

Jump to

Keyboard shortcuts

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