package elasticache
import "github.com/AdRoll/goamz/elasticache"
Index ¶
- Variables
- type CacheCluster
- type CacheNode
- type DescribeCacheClustersResult
- type DescribeReplicationGroupsResult
- type ElastiCache
- func New(auth aws.Auth, region aws.Region) *ElastiCache
- func (ec *ElastiCache) DescribeCacheCluster(cluster string) (*CacheCluster, error)
- func (ec *ElastiCache) DescribeReplicationGroup(groupName string) (*ReplicationGroup, error)
- type Endpoint
- type Error
- type NodeGroup
- type NodeGroupMember
- type PrimaryEndpoint
- type ReadEndpoint
- type ReplicationGroup
Variables ¶
Types ¶
type CacheCluster ¶
type CacheCluster struct { CacheClusterId string `xml:"CacheCluster>CacheClusterId"` CacheNodes []*CacheNode `xml:"CacheCluster>CacheNodes"` }
CacheCluster represents a cache cluster
type CacheNode ¶
type CacheNode struct { Endpoint *Endpoint `xml:"CacheNode>Endpoint"` }
CacheNode represents a cache node
type DescribeCacheClustersResult ¶
type DescribeCacheClustersResult struct { CacheClusters []*CacheCluster `xml:"DescribeCacheClustersResult>CacheClusters"` }
DescribeCacheClustersResult represents the response from a DescribeCacheClusters ElastiCache API call
type DescribeReplicationGroupsResult ¶
type DescribeReplicationGroupsResult struct { ReplicationGroups []ReplicationGroup `xml:"DescribeReplicationGroupsResult>ReplicationGroups"` }
DescribeReplicationGroupsResult represents the response
type ElastiCache ¶
func New ¶
func New(auth aws.Auth, region aws.Region) *ElastiCache
New creates a new ElastiCache instance
func (*ElastiCache) DescribeCacheCluster ¶
func (ec *ElastiCache) DescribeCacheCluster(cluster string) (*CacheCluster, error)
DescribeCacheCluster returns information about a cache cluster
func (*ElastiCache) DescribeReplicationGroup ¶
func (ec *ElastiCache) DescribeReplicationGroup(groupName string) (*ReplicationGroup, error)
DescribeReplicationGroup returns information about a cache replication group
type Endpoint ¶
Endpoint represents a cache node endpoint
type Error ¶
type Error struct { // HTTP status code StatusCode int // AWS error code Code string // The human-oriented error message Message string }
Error encapsulates an error returned by EC.
func (*Error) Error ¶
type NodeGroup ¶
type NodeGroup struct { Status string `xml:"NodeGroup>Status"` PrimaryEndpoint PrimaryEndpoint `xml:"NodeGroup>PrimaryEndpoint"` NodeGroupMembers []*NodeGroupMember `xml:"NodeGroup>NodeGroupMembers>NodeGroupMember"` }
NodeGroup represents a node group
type NodeGroupMember ¶
type NodeGroupMember struct { CurrentRole string `xml:"CurrentRole"` PreferredAvailabilityZone string `xml:"PreferredAvailabilityZone"` CacheNodeId string `xml:"CacheNodeId"` CacheClusterId string `xml:"CacheClusterId"` ReadEndpoint ReadEndpoint `xml:"ReadEndpoint"` }
NodeGroupMember represents an individual node
type PrimaryEndpoint ¶
PrimaryEndpoint represents the primary endpoint
type ReadEndpoint ¶
ReadEndpoint represents a read endpoint
type ReplicationGroup ¶
type ReplicationGroup struct { Status string `xml:"ReplicationGroup>Status"` ReplicationGroupId string `xml:"ReplicationGroup>ReplicationGroupId"` MemberClusters []string `xml:"ReplicationGroup>MemberClusters>ClusterId"` NodeGroups []NodeGroup `xml:"ReplicationGroup>NodeGroups"` }
ReplicationGroup represents a replication group
func (*ReplicationGroup) GetPrimaryNode ¶
func (repGroup *ReplicationGroup) GetPrimaryNode() (*PrimaryEndpoint, error)
Source Files ¶
- Version
- v0.0.0-20170825154802-2731d20f46f4 (latest)
- Published
- Aug 25, 2017
- Platform
- linux/amd64
- Imports
- 7 packages
- Last checked
- 2 days ago –
Tools for package owners.