Documentation
¶
Index ¶
- type DBCluster
- type DBClusterParameterGroup
- type DBClusterSnapshot
- type DBEndpoint
- type DBInstance
- type DBSubnetGroup
- type DocDBService
- type Store
- func (s *Store) AddTags(arn string, tags map[string]string) bool
- func (s *Store) CreateDBCluster(id, engine, engineVersion, dbName string, tags map[string]string) (*DBCluster, bool)
- func (s *Store) CreateDBClusterParameterGroup(name, family, desc string, tags map[string]string) (*DBClusterParameterGroup, bool)
- func (s *Store) CreateDBClusterSnapshot(snapID, clusterID string, tags map[string]string) (*DBClusterSnapshot, bool)
- func (s *Store) CreateDBInstance(id, clusterID, class, engine, engineVersion string, tags map[string]string) (*DBInstance, bool)
- func (s *Store) CreateDBSubnetGroup(name, desc string, subnetIDs []string, tags map[string]string) (*DBSubnetGroup, bool)
- func (s *Store) DeleteDBCluster(id string) (*DBCluster, bool)
- func (s *Store) DeleteDBClusterParameterGroup(name string) bool
- func (s *Store) DeleteDBClusterSnapshot(id string) bool
- func (s *Store) DeleteDBInstance(id string) (*DBInstance, bool)
- func (s *Store) DeleteDBSubnetGroup(name string) bool
- func (s *Store) GetDBCluster(id string) (*DBCluster, bool)
- func (s *Store) GetDBInstance(id string) (*DBInstance, bool)
- func (s *Store) ListDBClusterParameterGroups(filterName string) []*DBClusterParameterGroup
- func (s *Store) ListDBClusterSnapshots(clusterID, snapID string) []*DBClusterSnapshot
- func (s *Store) ListDBClusters(filterID string) []*DBCluster
- func (s *Store) ListDBInstances(filterID string) []*DBInstance
- func (s *Store) ListDBSubnetGroups(filterName string) []*DBSubnetGroup
- func (s *Store) ListTags(arn string) (map[string]string, bool)
- func (s *Store) ModifyDBCluster(id, engineVersion string) (*DBCluster, bool)
- func (s *Store) ModifyDBInstance(id, class string) (*DBInstance, bool)
- func (s *Store) RemoveTags(arn string, keys []string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBCluster ¶
type DBCluster struct {
Identifier string
ARN string
Engine string
EngineVersion string
Status string
Endpoint string
ReaderEndpoint string
Port int
DatabaseName string
Tags map[string]string
CreatedTime time.Time
Lifecycle *lifecycle.Machine
}
DBCluster represents a DocumentDB cluster.
type DBClusterParameterGroup ¶
type DBClusterParameterGroup struct {
Name string
ARN string
Family string
Description string
Tags map[string]string
}
DBClusterParameterGroup represents a parameter group.
type DBClusterSnapshot ¶
type DBClusterSnapshot struct {
Identifier string
ARN string
ClusterIdentifier string
Status string
Engine string
EngineVersion string
SnapshotCreateTime time.Time
Tags map[string]string
}
DBClusterSnapshot represents a cluster snapshot.
type DBEndpoint ¶
DBEndpoint holds address and port.
type DBInstance ¶
type DBInstance struct {
Identifier string
ARN string
ClusterID string
Class string
Engine string
EngineVersion string
Status string
Endpoint DBEndpoint
Tags map[string]string
CreatedTime time.Time
Lifecycle *lifecycle.Machine
IsWriter bool
}
DBInstance represents a DocumentDB instance.
type DBSubnetGroup ¶
type DBSubnetGroup struct {
Name string
ARN string
Description string
SubnetIds []string
Status string
Tags map[string]string
}
DBSubnetGroup represents a Neptune subnet group.
type DocDBService ¶
type DocDBService struct {
// contains filtered or unexported fields
}
DocDBService is the cloudmock implementation of the AWS DocumentDB API.
func (*DocDBService) Actions ¶
func (s *DocDBService) Actions() []service.Action
Actions returns the list of DocDB API actions supported.
func (*DocDBService) HandleRequest ¶
func (s *DocDBService) HandleRequest(ctx *service.RequestContext) (*service.Response, error)
HandleRequest routes an incoming DocDB request to the appropriate handler.
func (*DocDBService) HealthCheck ¶
func (s *DocDBService) HealthCheck() error
HealthCheck always returns nil.
func (*DocDBService) Name ¶
func (s *DocDBService) Name() string
Name returns the AWS service name used for routing.
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store manages all Neptune resources.
func (*Store) CreateDBCluster ¶
func (*Store) CreateDBClusterParameterGroup ¶
func (*Store) CreateDBClusterSnapshot ¶
func (*Store) CreateDBInstance ¶
func (*Store) CreateDBSubnetGroup ¶
func (*Store) DeleteDBClusterParameterGroup ¶
func (*Store) DeleteDBClusterSnapshot ¶
func (*Store) DeleteDBInstance ¶
func (s *Store) DeleteDBInstance(id string) (*DBInstance, bool)
func (*Store) DeleteDBSubnetGroup ¶
func (*Store) GetDBInstance ¶
func (s *Store) GetDBInstance(id string) (*DBInstance, bool)
func (*Store) ListDBClusterParameterGroups ¶
func (s *Store) ListDBClusterParameterGroups(filterName string) []*DBClusterParameterGroup
func (*Store) ListDBClusterSnapshots ¶
func (s *Store) ListDBClusterSnapshots(clusterID, snapID string) []*DBClusterSnapshot
func (*Store) ListDBClusters ¶
func (*Store) ListDBInstances ¶
func (s *Store) ListDBInstances(filterID string) []*DBInstance
func (*Store) ListDBSubnetGroups ¶
func (s *Store) ListDBSubnetGroups(filterName string) []*DBSubnetGroup
func (*Store) ModifyDBCluster ¶
func (*Store) ModifyDBInstance ¶
func (s *Store) ModifyDBInstance(id, class string) (*DBInstance, bool)
Click to show internal directories.
Click to hide internal directories.