docdb

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: 9 Imported by: 0

Documentation

Index

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

type DBEndpoint struct {
	Address string
	Port    int
}

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 New

func New(accountID, region string) *DocDBService

New returns a new DocDBService.

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 NewStore

func NewStore(accountID, region string) *Store

NewStore creates a new Neptune store.

func (*Store) AddTags

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

func (*Store) CreateDBCluster

func (s *Store) CreateDBCluster(id, engine, engineVersion, dbName string, tags map[string]string) (*DBCluster, bool)

func (*Store) CreateDBClusterParameterGroup

func (s *Store) CreateDBClusterParameterGroup(name, family, desc string, tags map[string]string) (*DBClusterParameterGroup, bool)

func (*Store) CreateDBClusterSnapshot

func (s *Store) CreateDBClusterSnapshot(snapID, clusterID string, tags map[string]string) (*DBClusterSnapshot, bool)

func (*Store) CreateDBInstance

func (s *Store) CreateDBInstance(id, clusterID, class, engine, engineVersion string, tags map[string]string) (*DBInstance, bool)

func (*Store) CreateDBSubnetGroup

func (s *Store) CreateDBSubnetGroup(name, desc string, subnetIDs []string, tags map[string]string) (*DBSubnetGroup, bool)

func (*Store) DeleteDBCluster

func (s *Store) DeleteDBCluster(id string) (*DBCluster, bool)

func (*Store) DeleteDBClusterParameterGroup

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

func (*Store) DeleteDBClusterSnapshot

func (s *Store) DeleteDBClusterSnapshot(id string) bool

func (*Store) DeleteDBInstance

func (s *Store) DeleteDBInstance(id string) (*DBInstance, bool)

func (*Store) DeleteDBSubnetGroup

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

func (*Store) GetDBCluster

func (s *Store) GetDBCluster(id string) (*DBCluster, bool)

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 (s *Store) ListDBClusters(filterID string) []*DBCluster

func (*Store) ListDBInstances

func (s *Store) ListDBInstances(filterID string) []*DBInstance

func (*Store) ListDBSubnetGroups

func (s *Store) ListDBSubnetGroups(filterName string) []*DBSubnetGroup

func (*Store) ListTags

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

func (*Store) ModifyDBCluster

func (s *Store) ModifyDBCluster(id, engineVersion string) (*DBCluster, bool)

func (*Store) ModifyDBInstance

func (s *Store) ModifyDBInstance(id, class string) (*DBInstance, bool)

func (*Store) RemoveTags

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

Jump to

Keyboard shortcuts

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