task

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2017 License: Apache-2.0 Imports: 7 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 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) // TODO SF found = false => manifest => nil, drop the found flag?
}

type BoshManifest

type BoshManifest []byte

func (BoshManifest) Equals

func (m BoshManifest) Equals(other BoshManifest) (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) (BoshManifest, error)
}

TODO SF previousPlanID is a pointer because it might not exist. Should we have a nil value instead? Should we have a specific type?

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 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
This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter
This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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