Documentation ¶
Index ¶
- func NewDeployer(boshClient BoshClient, manifestGenerator ManifestGenerator) deployer
- func NewDeploymentNotFoundError(e error) error
- func NewManifestGenerator(serviceAdapter ServiceAdapterClient, serviceOffering config.ServiceOffering, ...) manifestGenerator
- func NewServiceError(e error) error
- type BoshClient
- type BoshManifest
- type DeploymentNotFoundError
- type ManifestGenerator
- type PendingChangesNotAppliedError
- type PlanNotFoundError
- type ServiceAdapterClient
- type ServiceError
- type TaskInProgressError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDeployer ¶
func NewDeployer(boshClient BoshClient, manifestGenerator ManifestGenerator) deployer
func NewManifestGenerator ¶
func NewManifestGenerator( serviceAdapter ServiceAdapterClient, serviceOffering config.ServiceOffering, serviceStemcell serviceadapter.Stemcell, serviceReleases serviceadapter.ServiceReleases, ) manifestGenerator
func NewServiceError ¶
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
Click to show internal directories.
Click to hide internal directories.