auth

package
v0.0.0-...-3abe282 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2021 License: Apache-2.0 Imports: 10 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 {
	Address string
	Logger  zerolog.Logger
	Handler clients.Handler
}

Client contains methods for command related resource actions.

func NewClient

func NewClient(address string, log zerolog.Logger, handler clients.Handler) *Client

NewClient creates a new api key provider.

func (*Client) Create

func (c *Client) Create(name string) (*models.APIKey, error)

Create creates a repository resource.

func (*Client) Delete

func (c *Client) Delete(id int) error

Delete deletes an api key resource.

func (*Client) Get

func (c *Client) Get(id int) (*models.APIKey, error)

Get returns a api key resource.

func (*Client) List

func (c *Client) List() ([]*models.APIKey, error)

List api keys.

Jump to

Keyboard shortcuts

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