client

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ServiceAccountTokenNotReady = errors.New("service account token not ready")

Functions

This section is empty.

Types

type Client

type Client struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func New

func New(ops ...Option) *Client

func (*Client) DisConnect

func (c *Client) DisConnect()

func (*Client) IsConnected

func (c *Client) IsConnected() bool

func (*Client) Start

func (c *Client) Start(ctx context.Context) error

type KubernetesClusterInfo

type KubernetesClusterInfo struct {
	Address string `json:"address"`
	Token   string `json:"token"`
	CACert  string `json:"caCert"`
}

type Option

type Option func(*Client)

func WithConfig

func WithConfig(cfg *config.Config) Option

Jump to

Keyboard shortcuts

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