instance

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: 20 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 interface {
	Create(string) Instance
}

func NewInstanceFactory

func NewInstanceFactory(
	agentClientFactory bmagentclient.Factory,
	templatesSpecGenerator TemplatesSpecGenerator,
	applySpecFactory bmas.Factory,
	fs boshsys.FileSystem,
	logger boshlog.Logger,
) Factory

type Instance

type Instance interface {
	WaitToBeReady(maxAttempts int, delay time.Duration) error
	Apply(bmstemcell.ApplySpec, bmdepl.Deployment) error
	Start() error
	WaitToBeRunning(maxAttempts int, delay time.Duration) error
}

func NewInstance

func NewInstance(
	agentClient bmagentclient.AgentClient,
	templatesSpecGenerator TemplatesSpecGenerator,
	applySpecFactory bmas.Factory,
	mbusURL string,
	fs boshsys.FileSystem,
	logger boshlog.Logger,
) Instance

type SHA1Calculator

type SHA1Calculator interface {
	Calculate(filePath string) (string, error)
}

func NewSha1Calculator

func NewSha1Calculator(fs boshsys.FileSystem) SHA1Calculator

type TemplatesSpec

type TemplatesSpec struct {
	BlobID            string
	ArchiveSha1       string
	ConfigurationHash string
}

type TemplatesSpecGenerator

type TemplatesSpecGenerator interface {
	Create(deploymentJob bmdepl.Job, stemcellJob bmstemcell.Job, deploymentName string, properties map[string]interface{}, blobstoreURL string) (TemplatesSpec, error)
}

func NewTemplatesSpecGenerator

func NewTemplatesSpecGenerator(
	blobstoreFactory bmblobstore.Factory,
	compressor boshcmd.Compressor,
	jobRenderer bmtempcomp.JobRenderer,
	uuidGenerator boshuuid.Generator,
	sha1Calculator SHA1Calculator,
	fs boshsys.FileSystem,
	logger boshlog.Logger,
) TemplatesSpecGenerator

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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