awselasticache

package
v0.0.0-...-d0a66ea Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2016 License: Apache-2.0 Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCacheClusterDoesNotExist = errors.New("elasticache cluster does not exist")
)

Functions

func AddTagsToResource

func AddTagsToResource(resourceARN string, tags []*elasticache.Tag, cachesvc *elasticache.ElastiCache, logger lager.Logger) error

func BuilElastiCacheTags

func BuilElastiCacheTags(tags map[string]string) []*elasticache.Tag

func UserAccount

func UserAccount(iamsvc *iam.IAM) (string, error)

Types

type CacheCluster

type CacheCluster interface {
	Describe(ID string) (CacheClusterDetails, error)
	Create(ID string, cacheClusterDetails CacheClusterDetails) error
	Modify(ID string, cacheClusterDetails CacheClusterDetails, applyImmediately bool) error
	Delete(ID string) error
}

type CacheClusterDetails

type CacheClusterDetails struct {
	CacheClusterId       string
	Status               string
	Endpoint             string
	Engine               string
	EngineVersion        string
	CacheInstanceClass   string
	Port                 int64
	NumCacheNodes        int64
	CacheSecurityGroups  []string
	CacheSubnetGroupName string
	Tags                 map[string]string
}

type ElastiCacheCluster

type ElastiCacheCluster struct {
	// contains filtered or unexported fields
}

func NewElastiCacheCluster

func NewElastiCacheCluster(
	region string,
	iamsvc *iam.IAM,
	cachesvc *elasticache.ElastiCache,
	logger lager.Logger,
) *ElastiCacheCluster

func (*ElastiCacheCluster) Create

func (r *ElastiCacheCluster) Create(ID string, cacheClusterDetails CacheClusterDetails) error

func (*ElastiCacheCluster) Delete

func (r *ElastiCacheCluster) Delete(ID string) error

func (*ElastiCacheCluster) Describe

func (*ElastiCacheCluster) Modify

func (r *ElastiCacheCluster) Modify(ID string, cacheClusterDetails CacheClusterDetails, applyImmediately bool) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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