network

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetWatcher

func GetWatcher() *monitor.Monitor

Types

type Condition

type Condition struct {
	Normal  bool
	Message string
}

type Event

type Event struct {
	EventType string
	Reason    string
	Message   string
}

type EventSender

type EventSender interface {
	SendEvent(event *Event, networkType string) error
}

type IsolatedNetwork

type IsolatedNetwork interface {
	Network
	AddLocalArea(id int) error
	RemoveLocalArea(id int) error
}

type Network

type Network interface {
	Type() string
	Setup(nic string) error
	Teardown() error
	NIC() iface.IFace
}

network type

type Status

type Status struct {
	Condition Condition
	IFaces    map[string]iface.IFace
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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