stemcell

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2018 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 FSFinder

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

func NewFSFinder

func NewFSFinder(dkrClient *dkrclient.Client, logger boshlog.Logger) FSFinder

func (FSFinder) Find

func (f FSFinder) Find(id apiv1.StemcellCID) (Stemcell, error)

type FSImporter

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

func NewFSImporter

func NewFSImporter(
	dkrClient *dkrclient.Client,
	fs boshsys.FileSystem,
	uuidGen boshuuid.Generator,
	logger boshlog.Logger,
) FSImporter

func (FSImporter) ImportFromPath

func (i FSImporter) ImportFromPath(imagePath string) (Stemcell, error)

type Finder

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

type Image

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

func NewImage

func NewImage(id apiv1.StemcellCID, dkrClient *dkrclient.Client, logger boshlog.Logger) Image

func (Image) Delete

func (s Image) Delete() error

func (Image) ID

func (s Image) ID() apiv1.StemcellCID

type Importer

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

type Stemcell

type Stemcell interface {
	ID() apiv1.StemcellCID

	Delete() error
}

Jump to

Keyboard shortcuts

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