agent

package
v1.14.1 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCert

func GetCert(clusterid, urlpath, tokenpath string) (ca, crt, key []byte, err error)

func IsNotExist

func IsNotExist(crt, key string) bool

func PutToSecrets

func PutToSecrets(config *config.ClientConfig) error

Types

type CERT

type CERT struct {
	CA  string `json:"ca"`
	CRT string `json:"cert"`
	KEY string `json:"key"`
}

type Client

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

func NewClient

func NewClient(config *ClientConfig) (*Client, error)

func (*Client) Start

func (c *Client) Start(targetURLStr string, cfg *rest.Config, tunnelsPerAgent int) error

type ClientConfig

type ClientConfig struct {
	ServerAddr      string
	TLSClientConfig *tls.Config
	Logger          *log.Logger
}

Jump to

Keyboard shortcuts

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