Documentation
¶
Index ¶
- type ACL
- type AuthenticationType
- type Cluster
- type ClusterEndpoint
- type MemoryDBService
- type ParameterGroup
- type Snapshot
- type Store
- func (s *Store) CreateACL(name string, userNames []string, tags map[string]string) (*ACL, bool)
- func (s *Store) CreateCluster(name, nodeType, engineVersion, subnetGroup, aclName, paramGroup string, ...) (*Cluster, bool)
- func (s *Store) CreateParameterGroup(name, family, description string, tags map[string]string) (*ParameterGroup, bool)
- func (s *Store) CreateSnapshot(name, clusterName string, tags map[string]string) (*Snapshot, bool)
- func (s *Store) CreateSubnetGroup(name, description string, subnetIds []string, tags map[string]string) (*SubnetGroup, bool)
- func (s *Store) CreateUser(name, accessString, authType string, passwords []string, ...) (*User, bool)
- func (s *Store) DeleteACL(name string) bool
- func (s *Store) DeleteCluster(name string) (*Cluster, bool)
- func (s *Store) DeleteParameterGroup(name string) bool
- func (s *Store) DeleteSnapshot(name string) bool
- func (s *Store) DeleteSubnetGroup(name string) bool
- func (s *Store) DeleteUser(name string) bool
- func (s *Store) GetACL(name string) (*ACL, bool)
- func (s *Store) GetCluster(name string) (*Cluster, bool)
- func (s *Store) GetUser(name string) (*User, bool)
- func (s *Store) ListACLs() []*ACL
- func (s *Store) ListClusters() []*Cluster
- func (s *Store) ListParameterGroups() []*ParameterGroup
- func (s *Store) ListSnapshots(clusterName string) []*Snapshot
- func (s *Store) ListSubnetGroups() []*SubnetGroup
- func (s *Store) ListTags(arn string) (map[string]string, bool)
- func (s *Store) ListUsers() []*User
- func (s *Store) TagResource(arn string, tags map[string]string) bool
- func (s *Store) UntagResource(arn string, keys []string) bool
- func (s *Store) UpdateACL(name string, userNamesToAdd, userNamesToRemove []string) (*ACL, bool)
- func (s *Store) UpdateCluster(name, nodeType, engineVersion string, numShards, numReplicas int) (*Cluster, bool)
- func (s *Store) UpdateUser(name, accessString string) (*User, bool)
- type SubnetGroup
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthenticationType ¶
AuthenticationType holds user auth config.
type Cluster ¶
type Cluster struct {
Name string
ARN string
Status string
NodeType string
NumShards int
NumReplicasPerShard int
EngineVersion string
Port int
ClusterEndpoint ClusterEndpoint
SubnetGroupName string
ACLName string
ParameterGroupName string
Tags map[string]string
CreatedTime time.Time
Lifecycle *lifecycle.Machine
}
Cluster represents a MemoryDB cluster.
type ClusterEndpoint ¶
ClusterEndpoint holds cluster connection info.
type MemoryDBService ¶
type MemoryDBService struct {
// contains filtered or unexported fields
}
MemoryDBService is the cloudmock implementation of the AWS MemoryDB API.
func (*MemoryDBService) Actions ¶
func (s *MemoryDBService) Actions() []service.Action
Actions returns the list of MemoryDB API actions supported.
func (*MemoryDBService) HandleRequest ¶
func (s *MemoryDBService) HandleRequest(ctx *service.RequestContext) (*service.Response, error)
HandleRequest routes an incoming request to the appropriate handler.
func (*MemoryDBService) HealthCheck ¶
func (s *MemoryDBService) HealthCheck() error
HealthCheck always returns nil.
func (*MemoryDBService) Name ¶
func (s *MemoryDBService) Name() string
Name returns the AWS service name used for routing.
type ParameterGroup ¶
type ParameterGroup struct {
Name string
ARN string
Family string
Description string
Tags map[string]string
}
ParameterGroup represents a MemoryDB parameter group.
type Snapshot ¶
type Snapshot struct {
Name string
ARN string
ClusterName string
Status string
Source string
Tags map[string]string
CreatedTime time.Time
}
Snapshot represents a MemoryDB snapshot.
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store manages all MemoryDB resources.
func (*Store) CreateCluster ¶
func (*Store) CreateParameterGroup ¶
func (*Store) CreateSnapshot ¶
func (*Store) CreateSubnetGroup ¶
func (*Store) CreateUser ¶
func (*Store) DeleteParameterGroup ¶
func (*Store) DeleteSnapshot ¶
func (*Store) DeleteSubnetGroup ¶
func (*Store) DeleteUser ¶
func (*Store) ListClusters ¶
func (*Store) ListParameterGroups ¶
func (s *Store) ListParameterGroups() []*ParameterGroup
func (*Store) ListSnapshots ¶
func (*Store) ListSubnetGroups ¶
func (s *Store) ListSubnetGroups() []*SubnetGroup
func (*Store) UpdateCluster ¶
Click to show internal directories.
Click to hide internal directories.