Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DockerSource ¶
type DockerSource struct {
// contains filtered or unexported fields
}
TODO: Make this a generic "OCISource" as it now only depends on the generic providers.Runtime
func NewDockerSource ¶
func NewDockerSource() *DockerSource
func (*DockerSource) Cleanup ¶
func (ds *DockerSource) Cleanup() (err error)
func (*DockerSource) Parse ¶
func (ds *DockerSource) Parse(ociRef meta.OCIImageRef) (*api.OCIImageSource, error)
func (*DockerSource) Reader ¶
func (ds *DockerSource) Reader() (rc io.ReadCloser, err error)
func (*DockerSource) Ref ¶ added in v0.6.0
func (ds *DockerSource) Ref() meta.OCIImageRef
type Source ¶
type Source interface { // Ref returns the reference of the source Ref() meta.OCIImageRef // Parse verifies the ImageSource, fills in any missing fields and prepares the reader Parse(src meta.OCIImageRef) (*api.OCIImageSource, error) // Reader provides a tar stream reader Reader() (io.ReadCloser, error) // Cleanup cleans up any temporary assets after reading Cleanup() error }
Source represents a source for VM images
Click to show internal directories.
Click to hide internal directories.