cniserver

package
v0.0.0-...-c16cc43 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: Apache-2.0 Imports: 42 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TransferFdSockName    = "/tmp/bpf-transfer-fd.sock"
	BpfBackServer         = "/host/var/run/bpf-back-server.sock"
	FdServerTransferFdURL = "/v1/transfer-fds"
	FdServerStandbyURL    = "/v1/standby"
)

Functions

This section is empty.

Types

type Installer

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

func NewInstaller

func NewInstaller(serviceMeshMode string) *Installer

NewInstaller returns an instance of Installer with the given config

func (*Installer) Cleanup

func (in *Installer) Cleanup() error

Cleanup remove Merbridge CNI's config, kubeconfig file, and binaries.

func (*Installer) Run

func (in *Installer) Run(ctx context.Context, cniReady chan struct{}) error

Run starts the installation process, verifies the configuration, then sleeps. If an invalid configuration is detected, the installation process will restart to restore a valid state.

type Server

type Server interface {
	Start() error
	Stop()
}

func NewServer

func NewServer(serviceMeshMode string, unixSockPath string, bpfMountPath string, cniReady, stop chan struct{}) Server

Jump to

Keyboard shortcuts

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