Documentation ¶
Index ¶
- Constants
- func ConfigureIface(ifName string, ipConfigs []*current.IPConfig, routes []*types.Route) error
- func GenerateNetworkResultByNic(index int, nic PodNic, defaultGw bool) (*current.Result, error)
- func GenerateNetworkResultByNics(nics []PodNic) (*current.Result, error)
- func GetCloudServerDir() string
- func Main(version string)
- type CloudPod
- type NetConf
- type OVSClient
- type PodDesc
- type PodInfo
- type PodNic
- type PodNicVpc
Constants ¶
View Source
const ( K8S_POD_NAMESPACE = "K8S_POD_NAMESPACE" K8S_POD_NAME = "K8S_POD_NAME" K8S_POD_INFRA_CONTAINER_ID = "K8S_POD_INFRA_CONTAINER_ID" K8S_POD_UID = "K8S_POD_UID" )
View Source
const (
POD_NIC_PROVIDER_OVN = "ovn"
)
Variables ¶
This section is empty.
Functions ¶
func ConfigureIface ¶
func GetCloudServerDir ¶
func GetCloudServerDir() string
Types ¶
type CloudPod ¶
type CloudPod struct { *PodInfo // contains filtered or unexported fields }
func NewCloudPodFromCNIArgs ¶
type OVSClient ¶
type OVSClient interface { AddPort(bridge, port string) error DeletePort(bridge, port string) error SetIfaceId(id string, name string) error }
func NewOVSClient ¶
type PodNic ¶
type PodNic struct { Index int `json:"index"` Bridge string `json:"bridge"` Ifname string `json:"ifname"` Interface string `json:"interface"` Ip string `json:"ip"` Mac string `json:"mac"` Gateway string `json:"gateway"` Bandwidth int `json:"bw"` Dns string `json:"dns"` Mtu int `json:"mtu"` Masklen int `json:"masklen,omitempty"` Domain string `json:"domain,omitempty"` NetId string `json:"net_id"` WireId string `json:"wire_id"` Vpc *PodNicVpc `json:"vpc,omitempty"` }
func (PodNic) GetInterface ¶
Click to show internal directories.
Click to hide internal directories.