types

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bridge

type Bridge struct {
	Name string
	IP   *net.IP
}

type Node

type Node struct {
	ID   string
	Type NodeType

	// veth
	Veth            string
	Peer            string
	PeerNameInNetns string
	PeerId          int
	Orphaned        bool
	NetNsID         int
	NetNsName       string
	Master          *Bridge
	Route           net.IP

	// general
	Name   string
	Status string
}

func (*Node) Label

func (n *Node) Label() string

type NodeType

type NodeType int
const (
	VethType NodeType = iota
	BridgeType
	LoType
)

Jump to

Keyboard shortcuts

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