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 CFResponse
- type Client
- func (c Client) CountInstancesOfPlan(serviceID, servicePlanID string, logger *log.Logger) (int, error)
- func (c Client) CountInstancesOfServiceOffering(serviceID string, logger *log.Logger) (map[ServicePlan]int, error)
- func (c Client) CreateServiceBroker(name, username, password, url string) error
- func (c Client) CreateServicePlanVisibility(orgName string, serviceOfferingID string, planName 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 (c Client) DeregisterBroker(brokerGUID string, logger *log.Logger) error
- func (c Client) DisableServiceAccess(serviceOfferingID, planName string, logger *log.Logger) error
- func (c Client) DisableServiceAccessForAllPlans(serviceOfferingID string, logger *log.Logger) error
- func (c Client) EnableServiceAccess(serviceOfferingID, planName string, 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) GetInstanceState(serviceInstanceGUID string, logger *log.Logger) (InstanceState, error)
- func (c Client) GetInstances(filters GetInstancesFilter, logger *log.Logger) ([]Instance, error)
- func (c Client) GetLastOperationForInstance(serviceInstanceGUID string, logger *log.Logger) (LastOperation, error)
- func (c Client) GetServiceKeysForInstance(instanceGUID string, logger *log.Logger) ([]ServiceKey, error)
- func (c Client) GetServiceOfferingGUID(brokerName string, logger *log.Logger) (string, error)
- func (c Client) ServiceBrokers() ([]ServiceBroker, error)
- func (c Client) UpdateServiceBroker(brokerGUID, name, username, password, url string) error
- type ForbiddenError
- type GetInstancesFilter
- type Instance
- type InstanceState
- type InvalidResponseError
- type LastOperation
- type Metadata
- type OperationState
- type OperationType
- type ResourceNotFoundError
- type ServiceBroker
- type ServiceKey
- type ServicePlan
- type ServicePlanEntity
- type ServicePlanResponse
- type ServicePlanVisibility
- type ServicePlanVisibilityMetadata
- 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 CFResponse ¶ added in v0.21.0
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (Client) CountInstancesOfPlan ¶
func (Client) CountInstancesOfServiceOffering ¶
func (Client) CreateServiceBroker ¶ added in v0.29.0
func (Client) CreateServicePlanVisibility ¶ added in v0.29.0
func (Client) DeleteBinding ¶
func (Client) DeleteServiceInstance ¶
func (Client) DeleteServiceKey ¶
func (c Client) DeleteServiceKey(serviceKey ServiceKey, logger *log.Logger) error
func (Client) DeregisterBroker ¶
func (Client) DisableServiceAccess ¶
func (Client) DisableServiceAccessForAllPlans ¶ added in v0.29.0
func (Client) EnableServiceAccess ¶ added in v0.29.0
func (Client) GetBindingsForInstance ¶
func (Client) GetInstanceState ¶
func (Client) GetInstances ¶ added in v0.30.0
func (Client) GetLastOperationForInstance ¶ added in v0.30.0
func (Client) GetServiceKeysForInstance ¶
func (Client) GetServiceOfferingGUID ¶
func (Client) ServiceBrokers ¶ added in v0.29.0
func (c Client) ServiceBrokers() ([]ServiceBroker, error)
func (Client) UpdateServiceBroker ¶ added in v0.29.0
type ForbiddenError ¶
type ForbiddenError struct {
// contains filtered or unexported fields
}
func (ForbiddenError) Error ¶
func (e ForbiddenError) Error() string
type GetInstancesFilter ¶ added in v0.30.0
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
func (LastOperation) OperationFailed ¶ added in v0.30.0
func (o LastOperation) OperationFailed() 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 ServiceBroker ¶
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 ServicePlanVisibility ¶ added in v0.29.0
type ServicePlanVisibility struct {
Metadata ServicePlanVisibilityMetadata `json:"metadata"`
}
type ServicePlanVisibilityMetadata ¶ added in v0.29.0
type ServicePlanVisibilityMetadata struct {
GUID string `json:"guid"`
}
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.