task

package
v0.20.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2018 License: Apache-2.0 Imports: 9 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDeployer

func NewDeployer(boshClient BoshClient, manifestGenerator ManifestGenerator) deployer

func NewDeploymentNotFoundError

func NewDeploymentNotFoundError(e error) error

func NewManifestGenerator

func NewManifestGenerator(
	serviceAdapter ServiceAdapterClient,
	serviceOffering config.ServiceOffering,
	serviceStemcell serviceadapter.Stemcell,
	serviceReleases serviceadapter.ServiceReleases,
) manifestGenerator

func NewPendingChangesNotAppliedError added in v0.18.0

func NewPendingChangesNotAppliedError(e error) error

func NewServiceError

func NewServiceError(e error) error

Types

type BoshClient

type BoshClient interface {
	Deploy(manifest []byte, contextID string, logger *log.Logger) (int, error)
	GetTasks(deploymentName string, logger *log.Logger) (boshdirector.BoshTasks, error)
	GetDeployment(name string, logger *log.Logger) ([]byte, bool, error)
}

type DeploymentNotFoundError

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

type ManifestGenerator

type ManifestGenerator interface {
	GenerateManifest(
		deploymentName,
		planID string,
		requestParams map[string]interface{},
		oldManifest []byte,
		previousPlanID *string, logger *log.Logger,
	) (RawBoshManifest, error)
}

type PendingChangesNotAppliedError

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

type PlanNotFoundError

type PlanNotFoundError struct {
	PlanGUID string
}

func (PlanNotFoundError) Error

func (e PlanNotFoundError) Error() string

type RawBoshManifest added in v0.17.1

type RawBoshManifest []byte

type ServiceAdapterClient

type ServiceAdapterClient interface {
	GenerateManifest(
		serviceReleases serviceadapter.ServiceDeployment,
		plan serviceadapter.Plan,
		requestParams map[string]interface{},
		previousManifest []byte,
		previousPlan *serviceadapter.Plan, logger *log.Logger,
	) ([]byte, error)
}

type ServiceError

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

type TaskInProgressError

type TaskInProgressError struct {
	Message string
}

func (TaskInProgressError) Error

func (e TaskInProgressError) Error() string

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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