Documentation
¶
Index ¶
Constants ¶
View Source
const ( EndpointStoragePrefix = "/node-endpoints" NetworkEndpointStoragePrefix = "/network-endpoints" )
View Source
const ( OverlayNetworkType NetworkType = "overlay" DefaultIPRange = "10.0.0.0/24" DefaultGateway = "10.0.0.1/24" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Endpoint ¶
type Endpoint struct {
ID string `json:"id"`
NetworkID string `json:"network_id"`
Hostname string `json:"hostname"`
HostIP string `json:"host_ip"`
APIHostname string `json:"api_hostname"`
CreatedAt time.Time `json:"created_at"`
TargetNetnsPath string `json:"target_netns_path"`
OverlayVethName string `json:"overlay_veth_name"`
OverlayVethMAC string `json:"overlay_veth_mac"`
TargetVethName string `json:"target_veth_name"`
TargetVethMAC string `json:"target_veth_mac"`
TargetVethIP string `json:"target_veth_ip"`
Active bool `json:"active"`
}
func (Endpoint) GetAPIHostname ¶ added in v1.1.2
func (Endpoint) NetworkStorageKey ¶
func (Endpoint) StorageKey ¶
type Network ¶
type Network struct {
ID string `json:"id"`
CreatedAt time.Time `json:"created_at"`
Name string `json:"name"`
Type NetworkType `json:"type"`
NSHandlePath string `json:"ns_handle_path"`
VxLANVNI int `json:"vxlan_vni"`
IPRange string `json:"ip_range"`
Gateway string `json:"gateway"`
}
func (Network) EndpointsStorageKey ¶
func (Network) StorageKey ¶
type NetworkType ¶
type NetworkType string
Click to show internal directories.
Click to hide internal directories.