Documentation ¶
Index ¶
- func MapPlan(details map[string]string) map[string]string
- type InstanceInformation
- type SpannerBroker
- func (s *SpannerBroker) Deprovision(instanceID string, details models.DeprovisionDetails) error
- func (s *SpannerBroker) LastOperationWasDelete(instanceId string) (bool, error)
- func (s *SpannerBroker) PollInstance(instanceId string) (bool, error)
- func (s *SpannerBroker) Provision(instanceId string, details models.ProvisionDetails, plan models.PlanDetails) (models.ServiceInstanceDetails, error)
- func (s *SpannerBroker) ProvisionsAsync() bool
- type SpannerDynamicPlan
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type InstanceInformation ¶
type InstanceInformation struct {
InstanceId string `json:"instance_id"`
}
type SpannerBroker ¶
type SpannerBroker struct { Client *http.Client ProjectId string Logger lager.Logger AccountManager models.AccountManager broker_base.BrokerBase }
func (*SpannerBroker) Deprovision ¶
func (s *SpannerBroker) Deprovision(instanceID string, details models.DeprovisionDetails) error
deletes the instance associated with the given instanceID string
func (*SpannerBroker) LastOperationWasDelete ¶
func (s *SpannerBroker) LastOperationWasDelete(instanceId string) (bool, error)
used during polling of async operations to determine if the workflow is a provision or deprovision flow based off the type of the most recent operation since spanner deprovisions synchronously, the last operation will never have been delete
func (*SpannerBroker) PollInstance ¶
func (s *SpannerBroker) PollInstance(instanceId string) (bool, error)
gets the last operation for this instance and polls the status of it
func (*SpannerBroker) Provision ¶
func (s *SpannerBroker) Provision(instanceId string, details models.ProvisionDetails, plan models.PlanDetails) (models.ServiceInstanceDetails, error)
Creates a new Spanner Instance identified by the name provided in details.RawParameters.name and an optional region (defaults to regional-us-central1) and optional display_name
func (*SpannerBroker) ProvisionsAsync ¶
func (s *SpannerBroker) ProvisionsAsync() bool
Indicates that Spanner uses asynchronous provisioning
Click to show internal directories.
Click to hide internal directories.