Documentation
¶
Index ¶
- 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 ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ServiceDefinition ¶
func ServiceDefinition() *broker.ServiceDefinition
Types ¶
type Broker ¶
type Broker struct {
base.PeeredNetworkServiceBase
base.NoOpBindMixin
base.AsynchronousInstanceMixin
}
Broker is the service-broker back-end for creating and binding Redis services.
func (*Broker) Deprovision ¶
func (b *Broker) Deprovision(ctx context.Context, instance models.ServiceInstanceDetails, details brokerapi.DeprovisionDetails) (*string, error)
Deprovision deletes the Redis instance with the given instance ID
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 creates a new Redis instance from the settings in the user-provided details and service plan.
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 {
// Info for admins to diagnose connection issues
Network string `json:"authorized_network"`
ReservedIPRange string `json:"reserved_ip_range"`
// Info for developers to diagnose client issues
RedisVersion string `json:"redis_version"`
MemorySizeGb int64 `json:"memory_size_gb"`
// Connection info
Host string `json:"host"`
Port int64 `json:"port"`
URI string `json:"uri"`
}
InstanceInformation holds the details needed to connect to a Redis instance after it has been provisioned
func NewInstanceInformation ¶
func NewInstanceInformation(instance redis.Instance) InstanceInformation
NewInstanceInformation creates instance information from an instance
Click to show internal directories.
Click to hide internal directories.