client

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrClientIsNil = errors.New("client is nil")
)

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(c *apiclient.Client) (*Client, error)

func (*Client) AcceptApproval

func (c *Client) AcceptApproval(ctx context.Context, id string) error

func (*Client) CreateKey

func (c *Client) CreateKey(ctx context.Context, newKey schema.NewKey) (key schema.Key, err error)

func (*Client) DeleteKey

func (c *Client) DeleteKey(ctx context.Context, id string) (err error)

func (*Client) GetApprovals

func (c *Client) GetApprovals(ctx context.Context) (approvals schema.Approvals, err error)

func (*Client) GetKey

func (c *Client) GetKey(ctx context.Context, id string) (key schema.Key, err error)

func (*Client) GetKeyLoop

func (c *Client) GetKeyLoop(ctx context.Context, id string) (key schema.Key, err error)

func (*Client) GetKeys

func (c *Client) GetKeys(ctx context.Context) (keys schema.Keys, err error)

func (*Client) RejectApproval

func (c *Client) RejectApproval(ctx context.Context, id string) error

Jump to

Keyboard shortcuts

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