Documentation
¶
Index ¶
- type Service
- type Store
- func (s *Store) CreateKeyspace(name, replicationType string, replicationRegions []string, ...) (*StoredKeyspace, *service.AWSError)
- func (s *Store) CreateTable(keyspace, name string, schema, capacity, encryption, pitr, ttl map[string]any, ...) (*StoredTable, *service.AWSError)
- func (s *Store) CreateType(keyspace, name string, fields []map[string]any) (*StoredType, *service.AWSError)
- func (s *Store) DeleteKeyspace(name string) *service.AWSError
- func (s *Store) DeleteTable(keyspace, name string) *service.AWSError
- func (s *Store) DeleteType(keyspace, name string) *service.AWSError
- func (s *Store) GetKeyspace(name string) (*StoredKeyspace, *service.AWSError)
- func (s *Store) GetTable(keyspace, name string) (*StoredTable, *service.AWSError)
- func (s *Store) GetType(keyspace, name string) (*StoredType, *service.AWSError)
- func (s *Store) ListKeyspaces() []*StoredKeyspace
- func (s *Store) ListTables(keyspace string) []*StoredTable
- func (s *Store) ListTags(arn string) map[string]string
- func (s *Store) ListTypes(keyspace string) []*StoredType
- func (s *Store) Reset()
- func (s *Store) RestoreTable(sourceKeyspace, sourceName, targetKeyspace, targetName string) (*StoredTable, *service.AWSError)
- func (s *Store) TagResource(arn string, tags map[string]string)
- func (s *Store) UntagResource(arn string, keys []string)
- func (s *Store) UpdateKeyspace(name string, replicationRegions []string) (*StoredKeyspace, *service.AWSError)
- func (s *Store) UpdateTable(keyspace, name string, schema, capacity, pitr map[string]any, defaultTTL *int) (*StoredTable, *service.AWSError)
- type StoredKeyspace
- type StoredTable
- type StoredType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is the cloudmock implementation of the AWS cassandra service.
func (*Service) HandleRequest ¶
HandleRequest routes a request to the appropriate handler.
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is the in-memory data store for keyspaces resources.
func (*Store) CreateKeyspace ¶
func (*Store) CreateTable ¶
func (*Store) CreateType ¶
func (*Store) GetKeyspace ¶
func (s *Store) GetKeyspace(name string) (*StoredKeyspace, *service.AWSError)
func (*Store) GetTable ¶
func (s *Store) GetTable(keyspace, name string) (*StoredTable, *service.AWSError)
func (*Store) GetType ¶
func (s *Store) GetType(keyspace, name string) (*StoredType, *service.AWSError)
func (*Store) ListKeyspaces ¶
func (s *Store) ListKeyspaces() []*StoredKeyspace
func (*Store) ListTables ¶
func (s *Store) ListTables(keyspace string) []*StoredTable
func (*Store) ListTypes ¶
func (s *Store) ListTypes(keyspace string) []*StoredType
func (*Store) RestoreTable ¶
func (s *Store) RestoreTable(sourceKeyspace, sourceName, targetKeyspace, targetName string) (*StoredTable, *service.AWSError)
func (*Store) UntagResource ¶
func (*Store) UpdateKeyspace ¶
func (*Store) UpdateTable ¶
type StoredKeyspace ¶
type StoredKeyspace struct {
Name string
Arn string
ReplicationType string
ReplicationRegions []string
Tags map[string]string
CreatedAt time.Time
}
StoredKeyspace is a persisted keyspace.
type StoredTable ¶
type StoredTable struct {
KeyspaceName string
TableName string
Arn string
Status string
SchemaDefinition map[string]any
CapacitySpec map[string]any
EncryptionSpec map[string]any
PITR map[string]any
TTL map[string]any
ClientEncoding string
DefaultTimeToLive int
Comment map[string]any
CreatedAt time.Time
Tags map[string]string
}
StoredTable is a persisted table.
Click to show internal directories.
Click to hide internal directories.