package
Version:
v0.0.0-...-33e3a13
Opens a new window with list of versions in this module.
Published: Dec 27, 2022
License: MIT
Opens a new window with license information.
Imports: 12
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Bridge is a bridge in a network namespace
NewBridge returns a new bridge
Deploy is a deployment of a topology
GetDeploy returns the deployment identified by name
GetDeploys returns all deployments
NewDeploy returns a new deployment for t
RunCmd runs cmd on node in the deployment
Start starts the deployment
Status returns the status of the deployment
Stop stops the deployment
Topology returns the topology of the deployment
type Netns struct {
Name string
}
Netns is a network namespace
NewNetns returns a new network namespace
Start starts the network namespace
Status returns the status of the network namespace
Stop stops the network namespace
Route is a routing table entry in a network namespace
NewRoute returns a new route
Start configures the route
type Router struct {
Netns string
}
Router is a router in a network namespace
NewRouter returns a new router
Run is a list of commands to run in a network namespace
NewRun returns a new list of commands to run
Start executes the commands
Status is a deployment status
const (
StatusUnknown Status = iota
StatusInactive
StatusPartial
StatusActive
StatusInvalid
)
Status codes for the deployment status
String returns the status as a string
Veth is a veth device
NewVeth returns a new veth device
Start starts the veth device
Stop stops the veth device
Source Files
¶
Click to show internal directories.
Click to hide internal directories.