Package imagefmt exposes functions to dynamically register methods to detect different types of container image formats.
var ( // ErrCouldNotFindLayer is returned when we could not download or open the layer file. ErrCouldNotFindLayer = commonerr.NewBadRequestError("could not find layer from given path") )
Extract a set of files as FilesMap from a layer blob.
Extractors returns the list of the registered extractors.
IsSupported checks if a format is supported
RegisterExtractor makes an extractor available by the provided name.
If called twice with the same name, the name is blank, or if the provided Extractor is nil, this function panics.
UnregisterExtractor removes a Extractor with a particular name from the list.
Extractor represents an ability to extract files from a particular container image format.
|aci||Package aci implements an imagefmt.Extractor for appc formatted container image layers.|
|docker||Package docker implements an imagefmt.Extractor for docker formatted container image layers.|