Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Broker ¶
type Broker interface { // CreateInstance uses the catalog and parsed request to create an instance for the particular type of service. CreateInstance(*catalog.Catalog, string, request.Request) response.Response // ModifyInstance uses the catalog and parsed request to modify an existing instance for the particular type of service. ModifyInstance(*catalog.Catalog, string, request.Request, Instance) response.Response // LastOperation uses the catalog and parsed request to get an instance status for the particular type of service. LastOperation(*catalog.Catalog, string, Instance, string) response.Response // BindInstance takes the existing instance and binds it to an app. BindInstance(*catalog.Catalog, string, request.Request, Instance) response.Response // DeleteInstance deletes the existing instance. DeleteInstance(*catalog.Catalog, string, Instance) response.Response // Supports Async operation AsyncOperationRequired(*catalog.Catalog, Instance, Operation) bool }
Broker is the interface that every type of broker should implement.
type Instance ¶
type InstanceState ¶
type InstanceState uint8
InstanceState is an enumeration to indicate what state the instance is in.
const ( // InstanceNotCreated is the default InstanceState that represents an uninitiated instance. InstanceNotCreated InstanceState = iota // 0 // InstanceInProgress indicates that the instance is in a intermediate step. InstanceInProgress // 1 // InstanceReady indicates that the instance is created or modified and ready to be used. InstanceReady // 2 // InstanceGone indicates that the instance is deleted. InstanceGone // 3 // InstanceNotGone indicates that the instance is not deleted. InstanceNotGone // 4 // InstanceNotModified indicates that the instance is not modified. InstanceNotModified // 5 )
func (InstanceState) String ¶
func (i InstanceState) String() string
Click to show internal directories.
Click to hide internal directories.