stemcell

package
v0.0.0-...-9a89ba0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2014 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRepo

func NewRepo(configService bmconfig.DeploymentConfigService) repo

Types

type ApplySpec

type ApplySpec struct {
	Job      Job
	Packages map[string]Blob
	Networks map[string]interface{}
}

type Blob

type Blob struct {
	Name        string
	Version     string
	SHA1        string
	BlobstoreID string `json:"blobstore_id"`
}

type CID

type CID string

func (CID) String

func (c CID) String() string

type Infrastructure

type Infrastructure interface {
	CreateStemcell(Manifest) (CID, error)
}

type Job

type Job struct {
	Name      string
	Templates []Blob
}

type Manager

type Manager interface {
	Upload(tarballPath string) (Stemcell, CID, error)
}

type ManagerFactory

type ManagerFactory interface {
	NewManager(Infrastructure) Manager
}

func NewManagerFactory

func NewManagerFactory(fs boshsys.FileSystem, reader Reader, repo Repo, eventLogger bmeventlog.EventLogger) ManagerFactory

type Manifest

type Manifest struct {
	ImagePath          string
	Name               string
	Version            string
	SHA1               string
	RawCloudProperties map[interface{}]interface{} `yaml:"cloud_properties"`
}

func (Manifest) CloudProperties

func (m Manifest) CloudProperties() (map[string]interface{}, error)

type Reader

type Reader interface {
	Read(stemcellTarballPath string, extractedPath string) (Stemcell, error)
}

Reader reads a stemcell tarball and returns a stemcell object containing parsed information (e.g. version, name)

func NewReader

func NewReader(compressor boshcmd.Compressor, fs boshsys.FileSystem) Reader

type Repo

type Repo interface {
	Save(stemcellManifest Manifest, cid CID) error
	Find(stemcellManifest Manifest) (CID, bool, error)
}

Repo persists stemcells metadata

type Stemcell

type Stemcell struct {
	Manifest  Manifest
	ApplySpec ApplySpec
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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