Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Image, _ = partial.UncompressedToImage(emptyImage{})
Image is a singleton empty image, think: FROM scratch.
Functions ¶
func GzipReadCloser ¶
func GzipReadCloser(rc io.ReadCloser) (io.ReadCloser, error)
GzipReadCloser constructs a new gzipReadCloser from the passed file.
Types ¶
type Cache ¶
type Cache interface { Has(id string) bool Get(id string) (io.ReadCloser, error) Store(id string, content io.ReadCloser) error Delete(id string) error }
A Cache caches OCI package content.
type NopCache ¶
type NopCache struct{}
NopCache is a cache implementation that does not store anything and always returns an error on get.
func (*NopCache) Get ¶
func (c *NopCache) Get(string) (io.ReadCloser, error)
Get retrieves content from the NopCache.
type Puller ¶
type Puller interface { Fetch(ctx context.Context, ref name.Reference, secrets ...string) (v1.Image, error) Head(ctx context.Context, ref name.Reference, secrets ...string) (*v1.Descriptor, error) Tags(ctx context.Context, ref name.Reference, secrets ...string) ([]string, error) }
Puller pulls package images.
Click to show internal directories.
Click to hide internal directories.