stemcell

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

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

func NewFactory

func NewFactory(
	opts FactoryOpts,
	driver driver.Driver,
	runner driver.Runner,
	retrier driver.Retrier,
	fs boshsys.FileSystem,
	uuidGen boshuuid.Generator,
	compressor boshcmd.Compressor,
	logger boshlog.Logger,
) Factory

func (Factory) Find

func (f Factory) Find(cid apiv1.StemcellCID) (Stemcell, error)

func (Factory) ImportFromPath

func (f Factory) ImportFromPath(imagePath string) (Stemcell, error)

type FactoryOpts added in v0.0.6

type FactoryOpts struct {
	DirPath           string
	StorageController string // todo expose per stemcell
}

type Finder

type Finder interface {
	Find(apiv1.StemcellCID) (Stemcell, error)
}

type Importer

type Importer interface {
	ImportFromPath(string) (Stemcell, error)
}

type Stemcell

type Stemcell interface {
	ID() apiv1.StemcellCID
	SnapshotName() string

	Exists() (bool, error)
	Delete() error
}

type StemcellImpl

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

func NewStemcellImpl

func NewStemcellImpl(
	cid apiv1.StemcellCID,
	path string,
	driver driver.Driver,
	runner driver.Runner,
	logger boshlog.Logger,
) StemcellImpl

func (StemcellImpl) Delete

func (s StemcellImpl) Delete() error

func (StemcellImpl) Exists

func (s StemcellImpl) Exists() (bool, error)

func (StemcellImpl) ID

func (StemcellImpl) Prepare

func (s StemcellImpl) Prepare() error

func (StemcellImpl) SnapshotName

func (s StemcellImpl) SnapshotName() string

Jump to

Keyboard shortcuts

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