deployment

package
v0.0.0-...-e2c346a Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2015 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDeployer

func NewDeployer(
	stemcellManagerFactory bmstemcell.ManagerFactory,
	vmManagerFactory bmvm.ManagerFactory,
	instanceManagerFactory bminstance.ManagerFactory,
	deploymentFactory Factory,
	eventLogger bmeventlog.EventLogger,
	logger boshlog.Logger,
) *deployer

Types

type Deployment

type Deployment interface {
	Delete(bmeventlog.Stage) error
}

func NewDeployment

func NewDeployment(
	instances []bminstance.Instance,
	disks []bmdisk.Disk,
	stemcells []bmstemcell.CloudStemcell,
	pingTimeout time.Duration,
	pingDelay time.Duration,
) Deployment

type Factory

type Factory interface {
	NewDeployment(
		[]bminstance.Instance,
		[]bmdisk.Disk,
		[]bmstemcell.CloudStemcell,
	) Deployment
}

func NewFactory

func NewFactory(
	pingTimeout time.Duration,
	pingDelay time.Duration,
) Factory

type Manager

type Manager interface {
	FindCurrent() (deployment Deployment, found bool, err error)
	Cleanup(bmeventlog.Stage) error
}

func NewManager

func NewManager(
	instanceManager bminstance.Manager,
	diskManager bmdisk.Manager,
	stemcellManager bmstemcell.Manager,
	deploymentFactory Factory,
) Manager

type ManagerFactory

type ManagerFactory interface {
	NewManager(bmcloud.Cloud, bmac.AgentClient, bmblobstore.Blobstore) Manager
}

func NewManagerFactory

func NewManagerFactory(
	vmManagerFactory bmvm.ManagerFactory,
	instanceManagerFactory bminstance.ManagerFactory,
	diskManagerFactory bmdisk.ManagerFactory,
	stemcellManagerFactory bmstemcell.ManagerFactory,
	deploymentFactory Factory,
) ManagerFactory

type Record

type Record interface {
	IsDeployed(manifestPath string, release bmrel.Release, stemcell bmstemcell.ExtractedStemcell) (bool, error)
	Update(manifestPath string, release bmrel.Release) error
}

func NewRecord

func NewRecord(
	deploymentRepo bmconfig.DeploymentRepo,
	releaseRepo bmconfig.ReleaseRepo,
	stemcellRepo bmconfig.StemcellRepo,
	sha1Calculator bmcrypto.SHA1Calculator,
) Record

Jump to

Keyboard shortcuts

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