Documentation
¶
Overview ¶
Package images transfers CLI-managed OCI images between registries, local storage, and object storage.
Index ¶
- func CacheRoot() (string, error)
- func Mirror(ctx context.Context, source, cacheRoot string, objects ObjectStore) (string, error)
- func NormalizeDestination(source name.Tag, destination string) (name.Tag, string, error)
- func ParseSource(source string) (name.Tag, error)
- func Pull(ctx context.Context, source string, cacheRoot string) error
- func Push(ctx context.Context, source, destination, cacheRoot string, refresh bool, ...) (string, error)
- type ObjectStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NormalizeDestination ¶
NormalizeDestination returns the cluster reference and repository object prefix.
func ParseSource ¶
ParseSource parses a tagged source reference.
Types ¶
type ObjectStore ¶
type ObjectStore interface {
Get(context.Context, string) ([]byte, string, error)
Put(context.Context, string, []byte) error
PutIfMatch(context.Context, string, []byte, string) error
}
ObjectStore is the object-storage contract required by image publication. Get returns an opaque version used to replace mutable index.json objects.
Click to show internal directories.
Click to hide internal directories.