agent

package
v1.23.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2023 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const ClientIDSecret = "kubegems-edge-agent-id"

Variables

This section is empty.

Functions

func ParseJSONFile

func ParseJSONFile(content []byte) (map[string]string, error)

func ParseKV

func ParseKV(file string) (map[string]string, error)

func ParseKVFile

func ParseKVFile(content []byte) (map[string]string, error)

ParseKVFile parse kv from FOO="bar" likes file

func ParseToMaps

func ParseToMaps(list []string) map[string]string

func ReadManufacture

func ReadManufacture(options *options.AgentOptions, clientID string) (map[string]string, error)

func Run

func Run(ctx context.Context, options *options.AgentOptions) error

Types

type AgentAPI

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

func (*AgentAPI) Run

func (a *AgentAPI) Run(ctx context.Context, listen string) error

type EdgeAgent

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

func (*EdgeAgent) RunKeepAliveRouter

func (ea *EdgeAgent) RunKeepAliveRouter(ctx context.Context, duration time.Duration, annotationsfunc func(ctx context.Context) tunnel.Annotations) error

Jump to

Keyboard shortcuts

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