bk8s

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: MIT Imports: 8 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 BuildWithOption

func BuildWithOption(opts ...Option) *Client

func (*Client) CreateLeases

func (c *Client) CreateLeases(ctx context.Context, namespace, name, identity string) (string, error)

func (*Client) GetLeases

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

func (*Client) ListServices

func (c *Client) ListServices(ctx context.Context, namespace string) ([]meta.Service, error)

tmp

func (*Client) RenewLeases

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

func (*Client) RmvLeases

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

type Option

type Option func(*Parm)

func WithConfigPath

func WithConfigPath(path string) Option

func WithListOpts

func WithListOpts(opts v1.ListOptions) Option

type Parm

type Parm struct {
	ListOpts v1.ListOptions
	GetOpts  v1.GetOptions
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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