Documentation ¶
Index ¶
- type Client
- func (c *Client) CreateTable(table string) error
- func (c *Client) Delete(table, namespace string, secrets []*secret.Secret) error
- func (c *Client) DeleteNamespace(table, namespace string) error
- func (c *Client) Insert(table, namespace string, secrets []*secret.Secret) error
- func (c *Client) ListNamespaces(table string) ([]string, error)
- func (c *Client) ListSecrets(table, namespace string) ([]*secret.Secret, error)
- func (c *Client) NamespaceExists(table, namespace string) (bool, error)
- func (c *Client) TableExists(table string) (bool, error)
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 ¶
CreateTable creates new table for Valec
func (*Client) DeleteNamespace ¶ added in v0.5.1
DeleteNamespace deletes all items in the given namespace
func (*Client) ListNamespaces ¶
ListNamespaces returns all namespaces
func (*Client) ListSecrets ¶ added in v0.3.0
ListSecrets returns all secrets in the given table and namespace
func (*Client) NamespaceExists ¶ added in v0.5.1
NamespaceExists check whether the given table exists or not
Click to show internal directories.
Click to hide internal directories.