Documentation
¶
Index ¶
- type Database
- func (_m *Database) DeleteNetwork(ctx context.Context, id string) error
- func (_m *Database) DeletePool(ctx context.Context, region string) error
- func (_m *Database) DeleteProvider(ctx context.Context, name string) error
- func (_m *Database) GetNetwork(ctx context.Context, id string) (*types.Network, error)
- func (_m *Database) GetPool(ctx context.Context, region string) (*types.Pool, error)
- func (_m *Database) GetProvider(ctx context.Context, name string) (*types.Provider, error)
- func (_m *Database) PutNetwork(ctx context.Context, n *types.Network) error
- func (_m *Database) PutPool(ctx context.Context, p *types.Pool) error
- func (_m *Database) PutProvider(ctx context.Context, p *types.Provider) error
- func (_m *Database) ScanNetworks(ctx context.Context) ([]*types.Network, error)
- func (_m *Database) ScanPools(ctx context.Context) ([]*types.Pool, error)
- func (_m *Database) ScanProviders(ctx context.Context) ([]*types.Provider, error)
- type DynamoClient
- func (_m *DynamoClient) DeleteItem(ctx context.Context, params *dynamodb.DeleteItemInput, ...) (*dynamodb.DeleteItemOutput, error)
- func (_m *DynamoClient) GetItem(ctx context.Context, params *dynamodb.GetItemInput, ...) (*dynamodb.GetItemOutput, error)
- func (_m *DynamoClient) PutItem(ctx context.Context, params *dynamodb.PutItemInput, ...) (*dynamodb.PutItemOutput, error)
- func (_m *DynamoClient) Scan(_a0 context.Context, _a1 *dynamodb.ScanInput, _a2 ...func(*dynamodb.Options)) (*dynamodb.ScanOutput, error)
- type NewDatabaseT
- type NewDynamoClientT
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
Database is an autogenerated mock type for the Database type
func NewDatabase ¶
func NewDatabase(t NewDatabaseT) *Database
NewDatabase creates a new instance of Database. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Database) DeleteNetwork ¶
DeleteNetwork provides a mock function with given fields: ctx, id
func (*Database) DeletePool ¶
DeletePool provides a mock function with given fields: ctx, region
func (*Database) DeleteProvider ¶
DeleteProvider provides a mock function with given fields: ctx, name
func (*Database) GetNetwork ¶
GetNetwork provides a mock function with given fields: ctx, id
func (*Database) GetProvider ¶
GetProvider provides a mock function with given fields: ctx, name
func (*Database) PutNetwork ¶
PutNetwork provides a mock function with given fields: ctx, n
func (*Database) PutProvider ¶
PutProvider provides a mock function with given fields: ctx, p
func (*Database) ScanNetworks ¶
ScanNetworks provides a mock function with given fields: ctx
type DynamoClient ¶
DynamoClient is an autogenerated mock type for the DynamoClient type
func NewDynamoClient ¶
func NewDynamoClient(t NewDynamoClientT) *DynamoClient
NewDynamoClient creates a new instance of DynamoClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*DynamoClient) DeleteItem ¶
func (_m *DynamoClient) DeleteItem(ctx context.Context, params *dynamodb.DeleteItemInput, optFns ...func(*dynamodb.Options)) (*dynamodb.DeleteItemOutput, error)
DeleteItem provides a mock function with given fields: ctx, params, optFns
func (*DynamoClient) GetItem ¶
func (_m *DynamoClient) GetItem(ctx context.Context, params *dynamodb.GetItemInput, optFns ...func(*dynamodb.Options)) (*dynamodb.GetItemOutput, error)
GetItem provides a mock function with given fields: ctx, params, optFns
func (*DynamoClient) PutItem ¶
func (_m *DynamoClient) PutItem(ctx context.Context, params *dynamodb.PutItemInput, optFns ...func(*dynamodb.Options)) (*dynamodb.PutItemOutput, error)
PutItem provides a mock function with given fields: ctx, params, optFns