storage

package
v4.4.0-rc+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2019 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

View Source
const StorageName = "google-storage"

Variables

This section is empty.

Functions

func ServiceDefinition

func ServiceDefinition() *broker.ServiceDefinition

ServiceDefinition creates a new ServiceDefinition object for the Cloud Storage service.

Types

type InstanceInformation

type InstanceInformation struct {
	BucketName string `json:"bucket_name"`
}

InstanceInformation holds the details needed to connect to a GCS instance after it has been provisioned.

type StorageBroker

type StorageBroker struct {
	base.BrokerBase
}

StorageBroker is the service-broker back-end for creating and binding to Google Cloud Storage buckets.

func (*StorageBroker) Deprovision

Deprovision deletes the bucket associated with the given instance. Note that all objects within the bucket must be deleted first.

func (*StorageBroker) Provision

func (b *StorageBroker) Provision(ctx context.Context, provisionContext *varcontext.VarContext) (models.ServiceInstanceDetails, error)

Provision creates a new GCS bucket from the settings in the user-provided details and service plan.

Jump to

Keyboard shortcuts

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