Documentation
¶
Index ¶
- Variables
- func NewClient(ctx context.Context, profile, region, tableName, keyARN string) (storage.RowStorer, error)
- type Client
- func (client *Client) CreateChild(ctx context.Context, rowType, label, parentType, parentID string, ...) (storage.Row, error)
- func (client *Client) CreateRow(ctx context.Context, rowType, label string) (storage.Row, error)
- func (client *Client) DeleteRow(ctx context.Context, rowType, childType, id string) error
- func (client *Client) GetChild(ctx context.Context, label, parentID string) (storage.Row, error)
- func (client *Client) GetRow(ctx context.Context, rowType, label string) (storage.Row, error)
- func (client *Client) GetRowByID(ctx context.Context, rowType, id string) (storage.Row, error)
- func (client *Client) ListRows(ctx context.Context, rowType, labelFilter, parentIDFilter string) ([]storage.Row, error)
- func (client *Client) UpdateChild(ctx context.Context, ...) (storage.Row, error)
- func (client *Client) UpdateColumn(ctx context.Context, rowType, rowID, columnName string, ...) error
- func (client *Client) UpdateColumns(ctx context.Context, rowType, rowID string, columns map[string]interface{}) error
- func (client *Client) UpdateRow(ctx context.Context, rowType, id, newLabel string) (storage.Row, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrCannotDeleteRow = errors.New("cannot delete row") ErrCollisionParentLabel = errors.New("a row with that parent and label already exists") ErrCollisionTypeLabel = errors.New("a row with that type and label already exists") ErrNilQueryOutput = errors.New("something went wrong: the query output was nil") ErrNotFoundRow = errors.New("row not found") ErrTooManyFound = errors.New("multiple exist where there must only be one") )
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CreateChild ¶
func (*Client) GetRowByID ¶
func (*Client) UpdateChild ¶
func (*Client) UpdateColumn ¶
func (*Client) UpdateColumns ¶
Click to show internal directories.
Click to hide internal directories.