kernel

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2020 License: Apache-2.0 Imports: 2 Imported by: 3

Documentation

Overview

Package kernel - describe kernel mechanism

Index

Constants

View Source
const (
	MECHANISM = "KERNEL_INTERFACE"

	// LinuxIfMaxLength - Linux has a limit of 15 characters for an interface name
	LinuxIfMaxLength = 15
	// SocketFilename - socket filename memif mechanism property key
	SocketFilename = "socketfile"
	// Master - NSMgr name
	Master = "master"
	// Slave - NSMgr name
	Slave = "slave"
	// WorkspaceNSEName - NSE workspace name mechanism property key
	WorkspaceNSEName = "workspaceNseName"
	// MemifSocket - memif socket filename
	MemifSocket = "memif.sock"
	// NsmBaseDirEnv - NSM location directory
	NsmBaseDirEnv = "NSM_BASE_DIR"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Mechanism

type Mechanism interface {
	// GetNetNsInode - return net ns inode
	GetNetNsInode() string
	GetParameters() map[string]string
}

Mechanism - kernel mechanism helper

func ToMechanism

func ToMechanism(m *connection.Mechanism) Mechanism

ToMechanism - convert unified mechanism to helper

Jump to

Keyboard shortcuts

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