task

package
v0.22.0-alpha2 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2018 License: Apache-2.0 Imports: 11 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDeployer

func NewDeployer(boshClient BoshClient, manifestGenerator ManifestGenerator, bulkSetter BulkSetter) 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, reporter *boshdirector.AsyncTaskReporter) (int, error)
	GetTasks(deploymentName string, logger *log.Logger) (boshdirector.BoshTasks, error)
	GetDeployment(name string, logger *log.Logger) ([]byte, bool, error)
}

type BulkSetter added in v0.22.0

type BulkSetter interface {
	BulkSet([]ManifestSecret) 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,
	) (serviceadapter.MarshalledGenerateManifest, error)
	GenerateSecretPaths(deploymentName string, manifest string, secrets serviceadapter.ODBManagedSecrets) []ManifestSecret
	ReplaceODBRefs(manifest string, secrets []ManifestSecret) string
}

type ManifestSecret added in v0.22.0

type ManifestSecret struct {
	Name  string
	Path  string
	Value interface{}
}

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,
	) (serviceadapter.MarshalledGenerateManifest, error)
	GeneratePlanSchema(plan serviceadapter.Plan, logger *log.Logger) (brokerapi.ServiceSchemas, 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