dynamodb

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client represents the wrapper of DynamoDB API client

func NewClient

func NewClient(api dynamodbiface.DynamoDBAPI) *Client

NewClient creates new Client object

func (*Client) CreateTable

func (c *Client) CreateTable(table string) error

CreateTable creates new table for Valec

func (*Client) Delete

func (c *Client) Delete(table, namespace string, secrets []*secret.Secret) error

Delete deletes records from DynamoDB table

func (*Client) DeleteNamespace added in v0.5.1

func (c *Client) DeleteNamespace(table, namespace string) error

DeleteNamespace deletes all items in the given namespace

func (*Client) Get added in v0.6.0

func (c *Client) Get(table, namespace, key string) (*secret.Secret, error)

Get returns a secret with the given key

func (*Client) Insert

func (c *Client) Insert(table, namespace string, secrets []*secret.Secret) error

Insert creates / updates records of secrets in DynamoDB table

func (*Client) ListNamespaces

func (c *Client) ListNamespaces(table string) ([]string, error)

ListNamespaces returns all namespaces

func (*Client) ListSecrets added in v0.3.0

func (c *Client) ListSecrets(table, namespace string) ([]*secret.Secret, error)

ListSecrets returns all secrets in the given table and namespace

func (*Client) NamespaceExists added in v0.5.1

func (c *Client) NamespaceExists(table, namespace string) (bool, error)

NamespaceExists check whether the given table exists or not

func (*Client) TableExists

func (c *Client) TableExists(table string) (bool, error)

TableExists check whether the given table exists or not

Jump to

Keyboard shortcuts

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