bypass4netnsutil

package
v1.7.7 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSocketDir

func CreateSocketDir() error

func GenerateBypass4netnsOpts

func GenerateBypass4netnsOpts(securityOptsMaps map[string]string, labelMaps map[string]string, id string) ([]oci.SpecOpts, error)

func GetBypass4NetnsdDefaultSocketPath

func GetBypass4NetnsdDefaultSocketPath() (string, error)

func GetPidFilePathByID

func GetPidFilePathByID(id string) (string, error)

func GetSocketPathByID

func GetSocketPathByID(id string) (string, error)

func IsBypass4netnsEnabled

func IsBypass4netnsEnabled(annotations map[string]string) (bool, error)

Types

type Bypass4netnsCNIBypassManager

type Bypass4netnsCNIBypassManager struct {
	client.Client
	// contains filtered or unexported fields
}

func NewBypass4netnsCNIBypassManager

func NewBypass4netnsCNIBypassManager(client client.Client, rlkClient rlkclient.Client) (*Bypass4netnsCNIBypassManager, error)

func (*Bypass4netnsCNIBypassManager) StartBypass

func (b4nnm *Bypass4netnsCNIBypassManager) StartBypass(ctx context.Context, ports []gocni.PortMapping, id, stateDir string) error

func (*Bypass4netnsCNIBypassManager) StopBypass

func (b4nnm *Bypass4netnsCNIBypassManager) StopBypass(ctx context.Context, id string) error

Jump to

Keyboard shortcuts

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