Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Driver ¶
type Driver interface {
// Convert converts the source image to target image, where
// content parameter provides necessary image utils, image
// content store and so on. If conversion successful, the
// converted image manifest will be returned, otherwise a
// non-nil error will be returned.
Convert(context.Context, content.Provider) (*ocispec.Descriptor, error)
// Name gets the driver type name, it is used to identify
// different accelerated image formats.
Name() string
// Version gets the driver version, it is used to identify
// different accelerated image format versions with same driver.
Version() string
}
Driver defines image conversion interface, the following methods need to be implemented by image format providers.
func NewLocalDriver ¶
func NewLocalDriver(cfg *config.DriverConfig) (Driver, error)
Click to show internal directories.
Click to hide internal directories.