redis

package
v5.0.0-rc+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ServiceDefinition

func ServiceDefinition() *broker.ServiceDefinition

Types

type Broker

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

Jump to

Keyboard shortcuts

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