source

package
v0.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 16, 2019 License: Apache-2.0 Imports: 9 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DockerSource

type DockerSource struct {
	// contains filtered or unexported fields
}

func NewDockerSource

func NewDockerSource() *DockerSource

func (*DockerSource) Cleanup

func (ds *DockerSource) Cleanup() error

func (*DockerSource) ID

func (ds *DockerSource) ID() string

func (*DockerSource) Parse

func (ds *DockerSource) Parse(ociRef meta.OCIImageRef) (*api.OCIImageSource, error)

func (*DockerSource) Reader

func (ds *DockerSource) Reader() (io.ReadCloser, error)

type Source

type Source interface {
	// ID returns the ID of the source
	ID() string

	// 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL