Documentation
¶
Index ¶
- type BrokerServices
- type HTTPClient
- type ResponseConverter
- func (r ResponseConverter) LastOperationFrom(response *http.Response) (brokerapi.LastOperation, error)
- func (r ResponseConverter) OrphanDeploymentsFrom(response *http.Response) ([]mgmtapi.Deployment, error)
- func (r ResponseConverter) UpgradeOperationFrom(response *http.Response) (UpgradeOperation, error)
- type UpgradeOperation
- type UpgradeOperationType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BrokerServices ¶
type BrokerServices struct {
// contains filtered or unexported fields
}
func NewBrokerServices ¶
func NewBrokerServices(client HTTPClient, authHeaderBuilder authorizationheader.AuthHeaderBuilder, baseURL string, logger *log.Logger) *BrokerServices
func (*BrokerServices) LastOperation ¶
func (b *BrokerServices) LastOperation(instanceGUID string, operationData broker.OperationData) (brokerapi.LastOperation, error)
func (*BrokerServices) OrphanDeployments ¶
func (b *BrokerServices) OrphanDeployments() ([]mgmtapi.Deployment, error)
func (*BrokerServices) UpgradeInstance ¶
func (b *BrokerServices) UpgradeInstance(instance service.Instance) (UpgradeOperation, error)
type ResponseConverter ¶
type ResponseConverter struct{}
func (ResponseConverter) LastOperationFrom ¶
func (r ResponseConverter) LastOperationFrom(response *http.Response) (brokerapi.LastOperation, error)
func (ResponseConverter) OrphanDeploymentsFrom ¶
func (r ResponseConverter) OrphanDeploymentsFrom(response *http.Response) ([]mgmtapi.Deployment, error)
func (ResponseConverter) UpgradeOperationFrom ¶
func (r ResponseConverter) UpgradeOperationFrom(response *http.Response) (UpgradeOperation, error)
type UpgradeOperation ¶
type UpgradeOperation struct { Type UpgradeOperationType Data broker.OperationData }
type UpgradeOperationType ¶
type UpgradeOperationType int
const ( UpgradeAccepted UpgradeOperationType = iota OperationInProgress UpgradeOperationType = iota InstanceNotFound UpgradeOperationType = iota OrphanDeployment UpgradeOperationType = iota )
Click to show internal directories.
Click to hide internal directories.