Documentation ¶
Index ¶
- type API
- type CloudAPI
- func (cloud *CloudAPI) CheckIfServiceExists(serviceName string) error
- func (cloud *CloudAPI) CreateUserProvidedServiceClone(spaceGUID string, comp types.Component, suffix, url string, ...)
- func (cloud *CloudAPI) Deprovision(appGUID string) error
- func (cloud *CloudAPI) Discovery(sourceAppGUID string) ([]types.Component, error)
- func (cloud *CloudAPI) Provision(sourceAppGUID string, servicesConfiguration []*extension.ServiceConfiguration, ...) (*extension.ServiceCreationResponse, error)
- func (cloud *CloudAPI) UpdateBroker(brokerName string, brokerURL string, username string, password string) error
- type Transaction
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 (*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 ¶
Deprovision remove instance of given application (that stands behind service instance though)
func (*CloudAPI) Provision ¶
func (cloud *CloudAPI) Provision(sourceAppGUID string, servicesConfiguration []*extension.ServiceConfiguration, r *cf.ServiceCreationRequest) (*extension.ServiceCreationResponse, error)
Provision instantiates service of given type
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)
Click to show internal directories.
Click to hide internal directories.