Documentation ¶
Index ¶
- Constants
- func NewForbiddenError(message string) error
- func NewInvalidResponseError(message string) error
- func NewResourceNotFoundError(message string) error
- func NewUnauthorizedError(message string) error
- type AuthHeaderBuilder
- type Binding
- type Client
- func (c Client) CountInstancesOfPlan(serviceID, servicePlanID string, logger *log.Logger) (int, error)
- func (c Client) CountInstancesOfServiceOffering(serviceID string, logger *log.Logger) (map[string]int, error)
- func (c Client) Delete(path string, logger *log.Logger) error
- func (c Client) DeleteBinding(binding Binding, logger *log.Logger) error
- func (c Client) DeleteServiceInstance(instanceGUID string, logger *log.Logger) error
- func (c Client) DeleteServiceKey(serviceKey ServiceKey, logger *log.Logger) error
- func (w Client) Get(path string, body interface{}, logger *log.Logger) error
- func (c Client) GetAPIVersion(logger *log.Logger) (string, error)
- func (c Client) GetBindingsForInstance(instanceGUID string, logger *log.Logger) ([]Binding, error)
- func (c Client) GetInstance(serviceInstanceGUID string, logger *log.Logger) (Instance, error)
- func (c Client) GetInstanceState(serviceInstanceGUID string, logger *log.Logger) (InstanceState, error)
- func (c Client) GetInstancesOfServiceOffering(serviceOfferingID string, logger *log.Logger) ([]string, error)
- func (c Client) GetServiceKeysForInstance(instanceGUID string, logger *log.Logger) ([]ServiceKey, error)
- type ForbiddenError
- type Instance
- type InstanceState
- type InvalidResponseError
- type LastOperation
- type Metadata
- type OperationState
- type OperationType
- type ResourceNotFoundError
- type ServiceKey
- type ServicePlan
- type ServicePlanEntity
- type ServicePlanResponse
- type UnauthorizedError
Constants ¶
View Source
const ( OperationTypeDelete OperationType = "delete" OperationStateFailed OperationState = "failed" OperationStateInProgress OperationState = "in progress" )
Variables ¶
This section is empty.
Functions ¶
func NewForbiddenError ¶
func NewInvalidResponseError ¶
func NewUnauthorizedError ¶
Types ¶
type AuthHeaderBuilder ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (Client) CountInstancesOfPlan ¶
func (Client) CountInstancesOfServiceOffering ¶
func (Client) DeleteBinding ¶
func (Client) DeleteServiceInstance ¶
func (Client) DeleteServiceKey ¶
func (c Client) DeleteServiceKey(serviceKey ServiceKey, logger *log.Logger) error
func (Client) GetBindingsForInstance ¶
func (Client) GetInstance ¶
func (Client) GetInstanceState ¶
func (Client) GetInstancesOfServiceOffering ¶
func (Client) GetServiceKeysForInstance ¶
type ForbiddenError ¶
type ForbiddenError struct {
// contains filtered or unexported fields
}
func (ForbiddenError) Error ¶
func (e ForbiddenError) Error() string
type Instance ¶
type Instance struct {
LastOperation LastOperation `json:"last_operation"`
}
func (Instance) OperationFailed ¶
type InstanceState ¶
type InvalidResponseError ¶
type InvalidResponseError struct {
// contains filtered or unexported fields
}
func (InvalidResponseError) Error ¶
func (e InvalidResponseError) Error() string
type LastOperation ¶
type LastOperation struct { Type OperationType `json:"type"` State OperationState `json:"state"` }
func (LastOperation) IsDelete ¶
func (o LastOperation) IsDelete() bool
type OperationState ¶
type OperationState string
type OperationType ¶
type OperationType string
type ResourceNotFoundError ¶
type ResourceNotFoundError struct {
// contains filtered or unexported fields
}
func (ResourceNotFoundError) Error ¶
func (e ResourceNotFoundError) Error() string
type ServiceKey ¶
type ServiceKey struct {
GUID string
}
type ServicePlan ¶
type ServicePlan struct { Metadata Metadata `json:"metadata"` ServicePlanEntity ServicePlanEntity `json:"entity"` }
type ServicePlanEntity ¶
type ServicePlanResponse ¶
type ServicePlanResponse struct { ServicePlans []ServicePlan `json:"resources"` // contains filtered or unexported fields }
type UnauthorizedError ¶
type UnauthorizedError struct {
// contains filtered or unexported fields
}
func (UnauthorizedError) Error ¶
func (e UnauthorizedError) Error() string
Click to show internal directories.
Click to hide internal directories.