Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ServiceDefinition ¶
func ServiceDefinition() *broker.ServiceDefinition
ServiceDefinition creates a new ServiceDefinition object for the Datastore service.
Types ¶
type DatastoreBroker ¶
type DatastoreBroker struct {
base.BrokerBase
}
DatastoreBroker is the service-broker back-end for creating and binding Datastore instances.
func (*DatastoreBroker) Deprovision ¶
func (b *DatastoreBroker) Deprovision(ctx context.Context, instance models.ServiceInstanceDetails, details brokerapi.DeprovisionDetails) (*string, error)
Deprovision is a no-op call because only service accounts need to be bound/unbound for Datastore.
func (*DatastoreBroker) Provision ¶
func (b *DatastoreBroker) Provision(ctx context.Context, provisionContext *varcontext.VarContext) (models.ServiceInstanceDetails, error)
Provision stores the namespace for future reference.
type InstanceInformation ¶
type InstanceInformation struct {
Namespace string `json:"namespace,omitempty"`
}
InstanceInformation holds the details needed to bind a service to a DatastoreBroker.
Click to show internal directories.
Click to hide internal directories.