filestore

package
v5.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: May 27, 2020 License: Apache-2.0 Imports: 15 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// DefaultFileshareName is the default created for fileshares.
	DefaultFileshareName = "filestore"
)

Variables

This section is empty.

Functions

func ServiceDefinition

func ServiceDefinition() *broker.ServiceDefinition

ServiceDefinition creates a new ServiceDefinition object for the Firestore service.

Types

type Broker

Broker is the back-end for creating and binding to Google Cloud Filestores.

func (*Broker) Deprovision

func (b *Broker) Deprovision(ctx context.Context, instance models.ServiceInstanceDetails, details brokerapi.DeprovisionDetails) (*string, error)

Deprovision implements ServiceProvider.Deprovision.

func (*Broker) PollInstance

func (b *Broker) PollInstance(ctx context.Context, instance models.ServiceInstanceDetails) (done bool, err error)

PollInstance implements ServiceProvider.PollInstance

func (*Broker) Provision

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

Provision implements ServiceProvider.Provision.

func (*Broker) UpdateInstanceDetails

func (b *Broker) UpdateInstanceDetails(ctx context.Context, instance *models.ServiceInstanceDetails) error

UpdateInstanceDetails updates the ServiceInstanceDetails with the most recent state from GCP. This instance is a no-op method.

type InstanceInformation

type InstanceInformation struct {
	Network         string `json:"authorized_network"`
	ReservedIPRange string `json:"reserved_ip_range"`
	IPAddress       string `json:"ip_address"`
	FileShareName   string `json:"file_share_name"`
	CapacityGB      int64  `json:"capacity_gb"`
	URI             string `json:"uri"`
}

InstanceInformation holds the details needed to get a Filestore instance once it's been created.

func NewInstanceInformation

func NewInstanceInformation(instance filestore.Instance) (*InstanceInformation, error)

NewInstanceInformation creates instance information from an instance

Jump to

Keyboard shortcuts

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