memorydb

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ACL

type ACL struct {
	Name      string
	ARN       string
	Status    string
	UserNames []string
	Tags      map[string]string
}

ACL represents a MemoryDB access control list.

type AuthenticationType

type AuthenticationType struct {
	Type      string
	Passwords []string
}

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

type ClusterEndpoint struct {
	Address string
	Port    int
}

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 New

func New(accountID, region string) *MemoryDBService

New returns a new MemoryDBService.

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 NewStore

func NewStore(accountID, region string) *Store

NewStore creates a new MemoryDB store.

func (*Store) CreateACL

func (s *Store) CreateACL(name string, userNames []string, tags map[string]string) (*ACL, bool)

func (*Store) CreateCluster

func (s *Store) CreateCluster(name, nodeType, engineVersion, subnetGroup, aclName, paramGroup string, numShards, numReplicas int, tags map[string]string) (*Cluster, bool)

func (*Store) CreateParameterGroup

func (s *Store) CreateParameterGroup(name, family, description string, tags map[string]string) (*ParameterGroup, bool)

func (*Store) CreateSnapshot

func (s *Store) CreateSnapshot(name, clusterName string, tags map[string]string) (*Snapshot, bool)

func (*Store) CreateSubnetGroup

func (s *Store) CreateSubnetGroup(name, description string, subnetIds []string, tags map[string]string) (*SubnetGroup, bool)

func (*Store) CreateUser

func (s *Store) CreateUser(name, accessString, authType string, passwords []string, tags map[string]string) (*User, bool)

func (*Store) DeleteACL

func (s *Store) DeleteACL(name string) bool

func (*Store) DeleteCluster

func (s *Store) DeleteCluster(name string) (*Cluster, bool)

func (*Store) DeleteParameterGroup

func (s *Store) DeleteParameterGroup(name string) bool

func (*Store) DeleteSnapshot

func (s *Store) DeleteSnapshot(name string) bool

func (*Store) DeleteSubnetGroup

func (s *Store) DeleteSubnetGroup(name string) bool

func (*Store) DeleteUser

func (s *Store) DeleteUser(name string) bool

func (*Store) GetACL

func (s *Store) GetACL(name string) (*ACL, bool)

func (*Store) GetCluster

func (s *Store) GetCluster(name string) (*Cluster, bool)

func (*Store) GetUser

func (s *Store) GetUser(name string) (*User, bool)

func (*Store) ListACLs

func (s *Store) ListACLs() []*ACL

func (*Store) ListClusters

func (s *Store) ListClusters() []*Cluster

func (*Store) ListParameterGroups

func (s *Store) ListParameterGroups() []*ParameterGroup

func (*Store) ListSnapshots

func (s *Store) ListSnapshots(clusterName string) []*Snapshot

func (*Store) ListSubnetGroups

func (s *Store) ListSubnetGroups() []*SubnetGroup

func (*Store) ListTags

func (s *Store) ListTags(arn string) (map[string]string, bool)

func (*Store) ListUsers

func (s *Store) ListUsers() []*User

func (*Store) TagResource

func (s *Store) TagResource(arn string, tags map[string]string) bool

func (*Store) UntagResource

func (s *Store) UntagResource(arn string, keys []string) bool

func (*Store) UpdateACL

func (s *Store) UpdateACL(name string, userNamesToAdd, userNamesToRemove []string) (*ACL, bool)

func (*Store) UpdateCluster

func (s *Store) UpdateCluster(name, nodeType, engineVersion string, numShards, numReplicas int) (*Cluster, bool)

func (*Store) UpdateUser

func (s *Store) UpdateUser(name, accessString string) (*User, bool)

type SubnetGroup

type SubnetGroup struct {
	Name        string
	ARN         string
	Description string
	SubnetIds   []string
	Tags        map[string]string
}

SubnetGroup represents a MemoryDB subnet group.

type User

type User struct {
	Name           string
	ARN            string
	Status         string
	AccessString   string
	Authentication AuthenticationType
	Tags           map[string]string
}

User represents a MemoryDB user.

Jump to

Keyboard shortcuts

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