Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OCIFileExtractor ¶
type OCIFileExtractor struct {
// contains filtered or unexported fields
}
func New ¶
func New(searchPaths []string, opts ...OCIFileExtractorOpts) (*OCIFileExtractor, error)
func (*OCIFileExtractor) ExtractFrom ¶
func (o *OCIFileExtractor) ExtractFrom(uri string) (path string, err error)
ExtractFrom locates and extracts a file from the given OCI image. The first located file will be extracted to the configured store directory and its path will be returned, or an error if the file was not found. The underlying OCI image is not retained.
type OCIFileExtractorOpts ¶
type OCIFileExtractorOpts func(o *OCIFileExtractor)
func WithContext ¶
func WithContext(ctx context.Context) OCIFileExtractorOpts
func WithFS ¶
func WithFS(fs vfs.FS) OCIFileExtractorOpts
func WithLocal ¶
func WithLocal(local bool) OCIFileExtractorOpts
func WithOCIUnpacker ¶
func WithOCIUnpacker(u OCIUnpacker) OCIFileExtractorOpts
func WithStore ¶
func WithStore(store string) OCIFileExtractorOpts
Click to show internal directories.
Click to hide internal directories.