spanner

package
v3.3.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2017 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MapPlan

func MapPlan(details map[string]string) map[string]string

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

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

type SpannerDynamicPlan

type SpannerDynamicPlan struct {
	Guid        string `json:"guid"`
	Name        string `json:"name"`
	Description string `json:"description"`
	NumNodes    string `json:"num_nodes"`
	DisplayName string `json:"display_name"`
	ServiceId   string `json:"service"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL