client

package
v1.5.17 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2025 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 {
	*client.Client
}

func New

func New(url string, opts ...client.ClientOpt) (*Client, error)

Create a new client

func (*Client) CreateCert

func (c *Client) CreateCert(ctx context.Context, meta schema.CertCreateMeta) (*schema.CertMeta, error)

func (*Client) CreateName

func (c *Client) CreateName(ctx context.Context, name schema.NameMeta) (*schema.Name, error)

func (*Client) DeleteCert

func (c *Client) DeleteCert(ctx context.Context, name string) error

func (*Client) DeleteName

func (c *Client) DeleteName(ctx context.Context, id uint64) error

func (*Client) GetCert

func (c *Client) GetCert(ctx context.Context, name string) (*schema.Cert, error)

func (*Client) GetName

func (c *Client) GetName(ctx context.Context, id uint64) (*schema.Name, error)

func (*Client) ListNames

func (c *Client) ListNames(ctx context.Context, opts ...Opt) (*schema.NameList, error)

func (*Client) UpdateName

func (c *Client) UpdateName(ctx context.Context, id uint64, meta schema.NameMeta) (*schema.Name, error)

type Opt

type Opt func(*opt) error

An Option to set on the client

func OptSet

func OptSet(k, v string) Opt

func WithOffsetLimit

func WithOffsetLimit(offset uint64, limit *uint64) Opt

Set offset and limit

Jump to

Keyboard shortcuts

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