Documentation ¶
Index ¶
- type Collection
- type Database
- type Document
- type MockConfig
- type MockDocDB
- func (m *MockDocDB) CountDocuments(collection string, filter interface{}) (int, error)
- func (m *MockDocDB) CreateCluster(input *docdb.CreateDBClusterInput) (*docdb.CreateDBClusterOutput, error)
- func (m *MockDocDB) CreateInstance(input *docdb.CreateDBInstanceInput) (*docdb.CreateDBInstanceOutput, error)
- func (m *MockDocDB) DeleteCluster(input *docdb.DeleteDBClusterInput) (*docdb.DeleteDBClusterOutput, error)
- func (m *MockDocDB) DeleteDocument(collection string, filter interface{}) error
- func (m *MockDocDB) DeleteInstance(input *docdb.DeleteDBInstanceInput) (*docdb.DeleteDBInstanceOutput, error)
- func (m *MockDocDB) DeleteMany(collection string, filter Document) (int, error)
- func (m *MockDocDB) FindDocument(collection string, filter Document) ([]Document, error)
- func (m *MockDocDB) InsertDocument(collection string, document Document) error
- func (m *MockDocDB) InsertMany(collection string, documents []interface{}) error
- func (m *MockDocDB) UpdateMany(collection string, filter, update interface{}) error
- func (m *MockDocDB) UpdateOne(collection string, filter, update interface{}) error
- type MockSecretsManager
- type SecretsManagerClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collection ¶
type Collection struct { Name string Data []interface{} }
type Database ¶
type Database struct { Name string Collections map[string]*Collection // contains filtered or unexported fields }
func NewDatabase ¶
func NewDatabase(name string, config *MockConfig) *Database
func (*Database) CreateCollection ¶
func (db *Database) CreateCollection(name string) (*Collection, error)
func (*Database) DeleteCollection ¶
func (*Database) GetCollection ¶
func (db *Database) GetCollection(name string) (*Collection, error)
type MockConfig ¶
type MockDocDB ¶
type MockDocDB struct {
// contains filtered or unexported fields
}
func NewMockDocDB ¶
func NewMockDocDB(config *MockConfig) *MockDocDB
func (*MockDocDB) CountDocuments ¶
func (*MockDocDB) CreateCluster ¶
func (m *MockDocDB) CreateCluster(input *docdb.CreateDBClusterInput) (*docdb.CreateDBClusterOutput, error)
func (*MockDocDB) CreateInstance ¶
func (m *MockDocDB) CreateInstance(input *docdb.CreateDBInstanceInput) (*docdb.CreateDBInstanceOutput, error)
func (*MockDocDB) DeleteCluster ¶
func (m *MockDocDB) DeleteCluster(input *docdb.DeleteDBClusterInput) (*docdb.DeleteDBClusterOutput, error)
func (*MockDocDB) DeleteDocument ¶
func (*MockDocDB) DeleteInstance ¶
func (m *MockDocDB) DeleteInstance(input *docdb.DeleteDBInstanceInput) (*docdb.DeleteDBInstanceOutput, error)
func (*MockDocDB) DeleteMany ¶
func (*MockDocDB) FindDocument ¶
func (*MockDocDB) InsertDocument ¶
func (*MockDocDB) InsertMany ¶
func (*MockDocDB) UpdateMany ¶
type MockSecretsManager ¶
type MockSecretsManager struct {
// contains filtered or unexported fields
}
func NewMockSecretsManager ¶
func NewMockSecretsManager() *MockSecretsManager
func (*MockSecretsManager) AddSecret ¶
func (m *MockSecretsManager) AddSecret(secretID, secretValue string)
func (*MockSecretsManager) GetSecretValue ¶
func (m *MockSecretsManager) GetSecretValue(input *secretsmanager.GetSecretValueInput) (*secretsmanager.GetSecretValueOutput, error)
type SecretsManagerClient ¶
type SecretsManagerClient interface {
GetSecretValue(input *secretsmanager.GetSecretValueInput) (*secretsmanager.GetSecretValueOutput, error)
}
Click to show internal directories.
Click to hide internal directories.