Documentation
¶
Index ¶
- type APIEntry
- type Entry
- type Instance
- type InstanceBindData
- type InstanceCredentials
- type InstanceID
- type InstanceOperation
- type InstanceState
- type Namespace
- type OperationID
- type OperationState
- type OperationType
- type RemoteEnvironment
- type RemoteEnvironmentName
- type RemoteServiceID
- type Service
- type ServiceID
- type ServicePlanID
- type Source
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Instance ¶
type Instance struct {
ID InstanceID
ServiceID ServiceID
ServicePlanID ServicePlanID
Namespace Namespace
State InstanceState
ParamsHash string
}
Instance contains info about Service exposed via Service Catalog.
type InstanceBindData ¶
type InstanceBindData struct {
InstanceID InstanceID
Credentials InstanceCredentials
}
InstanceBindData contains data about service instance and it's credentials.
type InstanceCredentials ¶
InstanceCredentials are created when we bind a service instance.
type InstanceID ¶
type InstanceID string
InstanceID is a service instance identifier.
func (InstanceID) IsZero ¶
func (id InstanceID) IsZero() bool
IsZero checks if InstanceID equals zero.
type InstanceOperation ¶
type InstanceOperation struct {
InstanceID InstanceID
OperationID OperationID
Type OperationType
State OperationState
StateDescription *string
// ParamsHash is an immutable hash for operation parameters
// used to match requests.
ParamsHash string
// CreatedAt points to creation time of the operation.
// Field should be treated as immutable and is responsibility of storage implementation.
// It should be set by storage Insert method.
CreatedAt time.Time
}
InstanceOperation represents single operation.
type InstanceState ¶
type InstanceState string
InstanceState defines the possible states of the Instance in the storage.
const ( // InstanceStatePending is when provision is in progress InstanceStatePending InstanceState = "pending" // InstanceStateFailed is when provision was failed InstanceStateFailed InstanceState = "failed" // InstanceStateSucceeded is when provision was succeeded InstanceStateSucceeded InstanceState = "succeeded" )
type OperationID ¶
type OperationID string
OperationID is used as binding operation identifier.
func (OperationID) IsZero ¶
func (id OperationID) IsZero() bool
IsZero checks if OperationID equals zero
type OperationState ¶
type OperationState string
OperationState defines the possible states of an asynchronous request to a broker.
const ( // OperationStateInProgress means that operation is in progress OperationStateInProgress OperationState = "in progress" // OperationStateSucceeded means that request succeeded OperationStateSucceeded OperationState = "succeeded" // OperationStateFailed means that request failed OperationStateFailed OperationState = "failed" )
func (OperationState) String ¶
func (os OperationState) String() string
String returns state of the operation.
type OperationType ¶
type OperationType string
OperationType defines the possible types of an asynchronous operation to a broker.
const ( // OperationTypeCreate means creating OperationType OperationTypeCreate OperationType = "create" // OperationTypeRemove means removing OperationType OperationTypeRemove OperationType = "remove" // OperationTypeUndefined means undefined OperationType OperationTypeUndefined OperationType = "" )
type RemoteEnvironment ¶
type RemoteEnvironment struct {
Name RemoteEnvironmentName
Description string
Source Source
Services []Service
AccessLabel string
}
RemoteEnvironment represents Remote Environment as defined by OSB API.
type RemoteEnvironmentName ¶
type RemoteEnvironmentName string
RemoteEnvironmentName is a Remote Environment name
type RemoteServiceID ¶
type RemoteServiceID string
RemoteServiceID is an ID of Service defined in RemoteEnvironment
type Service ¶
type Service struct {
ID RemoteServiceID
DisplayName string
LongDescription string
ProviderDisplayName string
Tags []string
//TODO(entry-simplification): this is an accepted simplification until
// explicit support of many APIEntry and EventEntry
APIEntry *APIEntry
EventProvider bool
}
Service represents service defined in the remote environment which is mapped to service class in the service catalog.
type ServiceID ¶
type ServiceID string
ServiceID is an ID of the Service exposed via Service Catalog.
type ServicePlanID ¶
type ServicePlanID string
ServicePlanID is an ID of the Plan of Service exposed via Service Catalog.
Directories
¶
| Path | Synopsis |
|---|---|
|
automock
Code generated by mockery v1.0.0
|
Code generated by mockery v1.0.0 |
|
automock
Code generated by mockery v1.0.0
|
Code generated by mockery v1.0.0 |
|
automock
Code generated by mockery v1.0.0
|
Code generated by mockery v1.0.0 |
|
populator/automock
Code generated by mockery v1.0.0
|
Code generated by mockery v1.0.0 |
|
testing
Package testing provides test functions for storage.
|
Package testing provides test functions for storage. |
|
automock
Code generated by mockery v1.0.0
|
Code generated by mockery v1.0.0 |