forwarder

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: Apache-2.0 Imports: 13 Imported by: 3

Documentation

Index

Constants

View Source
const (
	DefaultListenHost          = "0.0.0.0"
	DefaultListenPort          = "15150"
	DefaultListenAddr          = DefaultListenHost + ":" + DefaultListenPort
	DefaultConfigPath          = "/peerpod/daemon.json"
	DefaultPodNetworkSpecPath  = "/peerpod/podnetwork.json"
	DefaultKataAgentSocketPath = "/run/kata-containers/agent.sock"
	DefaultKataAgentNamespace  = ""
	AgentURLPath               = "/agent"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	PodNetwork   *tunneler.Config `json:"pod-network"`
	PodNamespace string           `json:"pod-namespace"`
	PodName      string           `json:"pod-name"`

	TLSServerKey  string `json:"tls-server-key,omitempty"`
	TLSServerCert string `json:"tls-server-cert,omitempty"`
	TLSClientCA   string `json:"tls-client-ca,omitempty"`

	AAKBCParams string `json:"aa-kbc-params,omitempty"`

	AuthJson string `json:"auth-json,omitempty"`
}

type Daemon

type Daemon interface {
	Start(ctx context.Context) error
	Shutdown() error
	Ready() chan struct{}
	Addr() string
}

func NewDaemon

func NewDaemon(spec *Config, listenAddr string, tlsConfig *tlsutil.TLSConfig, interceptor interceptor.Interceptor, podNode podnetwork.PodNode) Daemon

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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