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) CheckMinimumOSBAPIVersion(minimum string, logger *log.Logger) bool
- 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) GetLastOperationForInstance(serviceInstanceGUID string, logger *log.Logger) (LastOperation, error)
- func (c Client) GetPlanByServiceInstanceGUID(serviceGUID string, logger *log.Logger) (ServicePlan, error)
- func (c Client) GetServiceInstance(serviceInstanceGUID string, logger *log.Logger) (ServiceInstanceResource, error)
- func (c Client) GetServiceInstances(filters GetInstancesFilter, logger *log.Logger) ([]Instance, 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
- func (c Client) UpgradeServiceInstance(serviceInstanceGUID string, maintenanceInfo MaintenanceInfo, ...) (LastOperation, error)
- type ForbiddenError
- type GetInstancesFilter
- type Instance
- type InstanceState
- type InvalidResponseError
- type LastOperation
- type MaintenanceInfo
- type Metadata
- type OperationState
- type OperationType
- type ResourceNotFoundError
- type ServiceBroker
- type ServiceInstanceEntity
- type ServiceInstanceResource
- type ServiceKey
- type ServicePlan
- type ServicePlanEntity
- type ServicePlanResponse
- type ServicePlanVisibility
- type ServicePlanVisibilityMetadata
- type UnauthorizedError
Constants ¶
View Source
const ( OperationTypeDelete OperationType = "delete" OperationStateSucceeded OperationState = "succeeded" OperationStateFailed OperationState = "failed" OperationStateInProgress OperationState = "in progress" )
Variables ¶
This section is empty.
Functions ¶
func NewForbiddenError ¶
func NewInvalidResponseError ¶
func NewUnauthorizedError ¶
Types ¶
type AuthHeaderBuilder ¶
type CFResponse ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (Client) CheckMinimumOSBAPIVersion ¶
func (Client) CountInstancesOfPlan ¶
func (Client) CountInstancesOfServiceOffering ¶
func (Client) CreateServiceBroker ¶
func (Client) CreateServicePlanVisibility ¶
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 ¶
func (Client) EnableServiceAccess ¶
func (Client) GetBindingsForInstance ¶
func (Client) GetLastOperationForInstance ¶
func (Client) GetPlanByServiceInstanceGUID ¶
func (Client) GetServiceInstance ¶
func (Client) GetServiceInstances ¶
func (Client) GetServiceKeysForInstance ¶
func (Client) GetServiceOfferingGUID ¶
func (Client) ServiceBrokers ¶
func (c Client) ServiceBrokers() ([]ServiceBroker, error)
func (Client) UpdateServiceBroker ¶
func (Client) UpgradeServiceInstance ¶
func (c Client) UpgradeServiceInstance(serviceInstanceGUID string, maintenanceInfo MaintenanceInfo, logger *log.Logger) (LastOperation, error)
type ForbiddenError ¶
type ForbiddenError struct {
// contains filtered or unexported fields
}
func (ForbiddenError) Error ¶
func (e ForbiddenError) Error() string
type GetInstancesFilter ¶
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 ¶
func (o LastOperation) OperationFailed() bool
type MaintenanceInfo ¶
type MaintenanceInfo struct {
Version string `json:"version"`
}
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 ServiceInstanceEntity ¶
type ServiceInstanceEntity struct { SpaceGUID string `json:"space_guid"` ServicePlanURL string `json:"service_plan_url"` LastOperation LastOperation `json:"last_operation"` MaintenanceInfo MaintenanceInfo `json:"maintenance_info"` }
type ServiceInstanceResource ¶
type ServiceInstanceResource struct { Metadata Metadata `json:"metadata"` Entity ServiceInstanceEntity `json:"entity"` }
type ServiceKey ¶
type ServiceKey struct {
GUID string
}
type ServicePlan ¶
type ServicePlan struct { Metadata Metadata `json:"metadata"` ServicePlanEntity ServicePlanEntity `json:"entity"` }
type ServicePlanEntity ¶
type ServicePlanEntity struct { UniqueID string `json:"unique_id"` ServiceInstancesUrl string `json:"service_instances_url"` Name string `json:"name"` MaintenanceInfo MaintenanceInfo `json:"maintenance_info"` }
type ServicePlanResponse ¶
type ServicePlanResponse struct { ServicePlans []ServicePlan `json:"resources"` // contains filtered or unexported fields }
type ServicePlanVisibility ¶
type ServicePlanVisibility struct {
Metadata ServicePlanVisibilityMetadata `json:"metadata"`
}
type ServicePlanVisibilityMetadata ¶
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
Source Files ¶
Click to show internal directories.
Click to hide internal directories.