Documentation ¶
Index ¶
- type InstanceInformation
- type SpannerBroker
- func (s *SpannerBroker) Deprovision(ctx context.Context, instance models.ServiceInstanceDetails, ...) (*string, error)
- func (s *SpannerBroker) PollInstance(ctx context.Context, instance models.ServiceInstanceDetails) (bool, error)
- func (s *SpannerBroker) Provision(ctx context.Context, provisionContext *varcontext.VarContext) (models.ServiceInstanceDetails, error)
- func (s *SpannerBroker) ProvisionsAsync() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InstanceInformation ¶
type InstanceInformation struct {
InstanceId string `json:"instance_id"`
}
InstanceInformation holds the details needed to connect to a Spanner instance after it has been provisioned.
type SpannerBroker ¶
type SpannerBroker struct {
broker_base.BrokerBase
}
SpannerBroker is the service-broker back-end for creating Spanner databases and accounts.
func (*SpannerBroker) Deprovision ¶
func (s *SpannerBroker) Deprovision(ctx context.Context, instance models.ServiceInstanceDetails, details brokerapi.DeprovisionDetails) (*string, error)
Deprovision deletes the Spanner instance associated with the given instance.
func (*SpannerBroker) PollInstance ¶
func (s *SpannerBroker) PollInstance(ctx context.Context, instance models.ServiceInstanceDetails) (bool, error)
PollInstance gets the last operation for this instance and polls its status.
func (*SpannerBroker) Provision ¶
func (s *SpannerBroker) Provision(ctx context.Context, provisionContext *varcontext.VarContext) (models.ServiceInstanceDetails, error)
Provision creates a new Spanner instance from the settings in the user-provided details and service plan.
func (*SpannerBroker) ProvisionsAsync ¶
func (s *SpannerBroker) ProvisionsAsync() bool
ProvisionsAsync indicates that Spanner uses asynchronous provisioning
Click to show internal directories.
Click to hide internal directories.