Versions in this module Expand all Collapse all v0 v0.1.0 Aug 12, 2022 Changes in this version type DynamoClient + Query func(ctx context.Context, params *dynamodb.QueryInput, ...) (*dynamodb.QueryOutput, error) v0.0.1 Jul 18, 2022 Changes in this version + type Database interface + DeleteNetwork func(ctx context.Context, id string) error + DeletePool func(ctx context.Context, id string) error + DeleteProvider func(ctx context.Context, name string) error + GetNetwork func(ctx context.Context, id string) (*types.Network, error) + GetPool func(ctx context.Context, id string) (*types.Pool, error) + GetProvider func(ctx context.Context, name string) (*types.Provider, error) + PutNetwork func(ctx context.Context, n *types.Network) error + PutPool func(ctx context.Context, p *types.Pool) error + PutProvider func(ctx context.Context, p *types.Provider) error + ScanNetworks func(ctx context.Context) ([]*types.Network, error) + ScanPools func(ctx context.Context) ([]*types.Pool, error) + ScanProviders func(ctx context.Context) ([]*types.Provider, error) + func New(cli DynamoClient) Database + type DynamoClient interface + DeleteItem func(ctx context.Context, params *dynamodb.DeleteItemInput, ...) (*dynamodb.DeleteItemOutput, error) + GetItem func(ctx context.Context, params *dynamodb.GetItemInput, ...) (*dynamodb.GetItemOutput, error) + PutItem func(ctx context.Context, params *dynamodb.PutItemInput, ...) (*dynamodb.PutItemOutput, error)