types

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2023 License: MIT Imports: 2 Imported by: 19

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"`
	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) NetworkStorageKey

func (e Endpoint) NetworkStorageKey() string

func (Endpoint) StorageKey

func (e Endpoint) StorageKey() string

func (Endpoint) String

func (e Endpoint) String() string

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 (n Network) EndpointsStorageKey(hostname string) string

func (Network) StorageKey

func (n Network) StorageKey() string

func (Network) String

func (n Network) String() string

type NetworkType

type NetworkType string

Jump to

Keyboard shortcuts

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