Documentation ¶
Index ¶
- type Client
- func (c *Client) Add(ctx context.Context, creds []*CredentialInfo) error
- func (c *Client) Get(ctx context.Context, st storage.StorageType, key string, getData bool) (*CredentialInfo, error)
- func (c *Client) GetAll(ctx context.Context, getData bool) ([]*CredentialInfo, error)
- func (c *Client) Remove(ctx context.Context, creds []*CredentialInfo) error
- func (c *Client) Update(ctx context.Context, creds []*CredentialInfo) error
- type CredentialInfo
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
}
func (*Client) Get ¶
func (c *Client) Get(ctx context.Context, st storage.StorageType, key string, getData bool) (*CredentialInfo, error)
func (c *Client) Get(ctx context.Context, cred *CredentialInfo, getData bool) (*CredentialInfo, error) {
type CredentialInfo ¶
type CredentialInfo struct { Key string `json:"key,omitempty"` Storage string `json:"storage,omitempty"` Type string `json:"type,omitempty"` Data interface{} `json:"data,omitempty"` }
func (*CredentialInfo) GetInfoAsBytes ¶
func (ci *CredentialInfo) GetInfoAsBytes() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.