agent

package
v1.23.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2022 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseJSONFile

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

func ParseKVFile

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

ParseKVFile parse kv from FOO="bar" likes file

func ReadManufacture

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

func Run

func Run(ctx context.Context, opts *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