credential

package
v0.0.0-...-e8da0a6 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: Apache-2.0 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
}

func NewClient

func NewClient() (*Client, error)

func (*Client) Add

func (c *Client) Add(ctx context.Context, creds []*CredentialInfo) error

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) {

func (*Client) GetAll

func (c *Client) GetAll(ctx context.Context, getData bool) ([]*CredentialInfo, error)

func (*Client) Remove

func (c *Client) Remove(ctx context.Context, creds []*CredentialInfo) error

func (*Client) Update

func (c *Client) Update(ctx context.Context, creds []*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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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