cloud

package
v0.7.2 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: 2 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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