common

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RecommendedStorePathFlagName         = "store-path"
	RecommendedDockerConfigPathsFlagName = "docker-config-path"
)
View Source
const (
	RecommendedStorePathFlagUsage         = "Path where to store all local images and index information (such as tags)."
	RecommendedDockerConfigPathsFlagUsage = "Paths 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(configPaths []string) RemoteRegistryFactory

type RequestResolverFactory

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

func DefaultRequestResolverFactory

func DefaultRequestResolverFactory(configPaths []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