Versions in this module Expand all Collapse all v0 v0.0.1 Feb 12, 2024 Changes in this version + var ErrItemAlreadyExist = errors.New("item already exist") + var ErrKeyNotFound = errors.New("key not found") + type Client struct + func New(ctx context.Context, addr, token, engine, description string) (*Client, error) + type Vault interface + Add func(ctx context.Context, name string, model T) error + Get func(ctx context.Context, name string) (*T, error) + List func(ctx context.Context) (map[string]T, error) + Ping func(ctx context.Context) error + Remove func(ctx context.Context, name string) error + Update func(ctx context.Context, name string, model T) error + func NewRepository[T any](client *Client, key string) Vault[T]