Documentation ¶
Index ¶
- Constants
- func ServiceDefinition() *broker.ServiceDefinition
- type Broker
- func (b *Broker) Deprovision(ctx context.Context, instance models.ServiceInstanceDetails, ...) (*string, error)
- func (b *Broker) PollInstance(ctx context.Context, instance models.ServiceInstanceDetails) (done bool, err error)
- func (b *Broker) Provision(ctx context.Context, provisionContext *varcontext.VarContext) (models.ServiceInstanceDetails, error)
- func (b *Broker) UpdateInstanceDetails(ctx context.Context, instance *models.ServiceInstanceDetails) error
- type InstanceInformation
Constants ¶
View Source
const (
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 ¶
type Broker struct { base.PeeredNetworkServiceBase base.NoOpBindMixin base.AsynchronousInstanceMixin }
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"` 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
Click to show internal directories.
Click to hide internal directories.