redis

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 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 *v1alpha2.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 *v1alpha2.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 v1alpha2.SKUSpec) *redismgmt.Sku

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

func NewUpdateParameters

func NewUpdateParameters(r *v1alpha2.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