Documentation ¶
Index ¶
- type DynamoDB
- func (d *DynamoDB) CreateTable(ctx context.Context, rcu, wcu int64) error
- func (d *DynamoDB) DeleteResource(ctx context.Context, project string, res *resource.Deployed) error
- func (d *DynamoDB) GetGraph(ctx context.Context, project string) (*resource.Graph, error)
- func (d *DynamoDB) ListResources(ctx context.Context, project string) ([]*resource.Deployed, error)
- func (d *DynamoDB) PutGraph(ctx context.Context, project string, g *resource.Graph) error
- func (d *DynamoDB) PutResource(ctx context.Context, project string, res *resource.Deployed) error
- type Registry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DynamoDB ¶
type DynamoDB struct { Client dynamodbiface.ClientAPI TableName string Registry Registry }
DynamoDB stores data in AWS DynamoDB
func (*DynamoDB) CreateTable ¶
CreateTable creates the DynamoDB table.
func (*DynamoDB) DeleteResource ¶
func (d *DynamoDB) DeleteResource(ctx context.Context, project string, res *resource.Deployed) error
DeleteResource deletes a resource. Returns an error if the resource does not exist.
func (*DynamoDB) GetGraph ¶
GetGraph returns a graph for a project. Returns nil if the project does not have a graph.
func (*DynamoDB) ListResources ¶
ListResources lists all resources in a project. The order of the results is not guaranteed.
Click to show internal directories.
Click to hide internal directories.