redis

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const NamePrefix = "acr"

NamePrefix is the prefix for all created Azure Cache instances.

Variables

This section is empty.

Functions

func NeedsUpdate

func NeedsUpdate(kube *v1alpha1.Redis, az redismgmt.ResourceType) bool

NeedsUpdate returns true if the supplied Kubernetes resource differs from the supplied Azure resource. It considers only fields that can be modified in place without deleting and recreating the instance.

func NewCreateParameters

func NewCreateParameters(r *v1alpha1.Redis) redismgmt.CreateParameters

NewCreateParameters returns Redis resource creation parameters suitable for use with the Azure API.

func NewResourceName

func NewResourceName(o metav1.Object) string

NewResourceName returns a resource name used to identify a Redis resource in the Azure API.

func NewSKU

func NewSKU(s v1alpha1.SKUSpec) *redismgmt.Sku

NewSKU returns a Redis resource SKU suitable for use with the Azure API.

func NewUpdateParameters

func NewUpdateParameters(r *v1alpha1.Redis) redismgmt.UpdateParameters

NewUpdateParameters returns Redis resource update parameters suitable for use with the Azure API.

Types

type Client

type Client redisapi.ClientAPI

A Client handles CRUD operations for Azure Cache resources. This interface is compatible with the upstream Azure redis client.

func NewClient

func NewClient(ctx context.Context, credentials []byte) (Client, error)

NewClient returns a new Azure Cache for Redis client. Credentials must be passed as JSON encoded data.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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