package
Version:
v0.3.9
Opens a new window with list of versions in this module.
Published: Feb 16, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type CPU struct {
Cores int `json:"cores"`
}
type Config struct {
MaxMemory int `yaml:"MaxMemory"`
MaxCore int `yaml:"MaxCore"`
}
type Endpoint struct {
Name string `json:"name"`
Port int `json:"port"`
}
type Link struct {
Name string `json:"name"`
Endpoints [2]Endpoint `json:"endpoints"`
}
type Memory struct {
Capacity Unit `json:"capacity"`
}
type Mount struct {
Source string `json:"source"`
Point string `json:"point"`
}
type Node struct {
Name string `json:"name"`
OS string `json:"os"`
Image string `json:"image,omitempty"`
CPU *CPU `json:"cpu,omitempty"`
Memory *Memory `json:"memory,omitempty"`
Mounts []Mount `json:"mounts,omitempty"`
Ebpf bool `json:"ebpf"`
Emulator string `json:"emulator"`
}
type Topo struct {
Name string `json:"name"`
Nodes []Node `json:"nodes"`
Switches []Node `json:"switches"`
Links []Link `json:"links"`
}
type Unit struct {
Value int `json:"value"`
Unit string `json:"unit"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.