Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterBlobOpener ¶
func RegisterBlobOpener(mediaType string, opener BlobOpener)
RegisterBlobOpener registers a new BlobOpener that will be used to initialize an FS from blobs of the given media type.
This function is not thread safe and should only be called from init().
Types ¶
type BlobOpener ¶
BlobOpener is a function that, given an open io.ReadCloser and size for an image layer, returns a valid FS.
type FS ¶
type FS interface { fs.FS // Close will remove any underlying temporary resources that have been created // as a result of accessing the image filesystem. If the filesystem was never // accessed, this should be a noop. Close() error // WithContext returns a copy of the filesystem with a newly given context. WithContext(context.Context) FS }
FS provides an fs.FS interface to the underlying image layers as well as a Close() method to remove temporary resources that are created upon first access.
func New ¶
func New(ctx context.Context, ref types.ImageReference, sys *types.SystemContext, cache types.BlobInfoCache) FS
New returns a new FS that will provide JIT access to the given image's layered filesystem.
Click to show internal directories.
Click to hide internal directories.