cloud

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2016 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API interface {
	Provision(sourceAppGUID string,
		servicesConfiguration []*extension.ServiceConfiguration,
		request *cf.ServiceCreationRequest) (*extension.ServiceCreationResponse, error)
	Deprovision(appGUID string) error
	UpdateBroker(brokerName string, brokerURL string, username string, password string) error
	CheckIfServiceExists(serviceName string) error
}

type CloudAPI

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

func NewCloudAPI

func NewCloudAPI(envs *cfenv.App) *CloudAPI

func (*CloudAPI) CheckIfServiceExists

func (cloud *CloudAPI) CheckIfServiceExists(serviceName string) error

func (*CloudAPI) CreateUserProvidedServiceClone

func (cloud *CloudAPI) CreateUserProvidedServiceClone(spaceGUID string, comp types.Component, suffix, url string,
	results chan types.ComponentClone, errorsCh chan error, wg *sync.WaitGroup)

Clones user provided service with additional replacements of its content

func (*CloudAPI) Deprovision

func (cloud *CloudAPI) Deprovision(appGUID string) error

Deprovision remove instance of given application (that stands behind service instance though)

func (*CloudAPI) Discovery

func (cloud *CloudAPI) Discovery(sourceAppGUID string) ([]types.Component, error)

func (*CloudAPI) Provision

func (cloud *CloudAPI) Provision(sourceAppGUID string,
	servicesConfiguration []*extension.ServiceConfiguration,
	r *cf.ServiceCreationRequest) (*extension.ServiceCreationResponse, error)

Provision instantiates service of given type

func (*CloudAPI) UpdateBroker

func (cloud *CloudAPI) UpdateBroker(brokerName string, brokerURL string, username string, password string) error

UpdateBroker registers or updates catalog in CF

type Transaction

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

func NewTransaction

func NewTransaction() *Transaction

func (*Transaction) AddApplication

func (t *Transaction) AddApplication(app *types.CfAppResource)

func (*Transaction) AddComponentClone

func (t *Transaction) AddComponentClone(clone *types.ComponentClone)

func (*Transaction) Rollback

func (t *Transaction) Rollback(cloud *CloudAPI)

Jump to

Keyboard shortcuts

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