portobj

package
v0.0.0-...-9649b88 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogicPortObj

type LogicPortObj struct {
	ID           string `json:"id"`
	Name         string `json:"name"`
	MacAddress   string `json:"mac_address"`
	IP           string `json:"ip"`
	NetworkID    string `json:"network_id"`
	SubNetID     string `json:"sub_net_id"`
	Cidr         string `json:"cidr"`
	GatewayIP    string `json:"gateway_ip"`
	Accelerate   string `json:"accelerate"`
	NetworkPlane string `json:"network_plane"`
	NetworkName  string `json:"network_name"`
	PodName      string `json:"pod_name"`
	PodNs        string `json:"pod_ns"`
	TenantID     string `json:"tenant_id"`
}

func CreateLogicPortsFromTransInfoPortObjs

func CreateLogicPortsFromTransInfoPortObjs(ports []*PortObj) []*LogicPortObj

type NetworkAttrs

type NetworkAttrs struct {
	Name        string                         `json:"name"`
	ID          string                         `json:"network_id"`
	GateWay     string                         `json:"gateway"`
	Cidr        string                         `json:"cidr"`
	CreateTime  string                         `json:"create_time"`
	Status      string                         `json:"state"`
	Public      bool                           `json:"public"`
	Owner       string                         `json:"owner"`
	Description string                         `json:"description"`
	SubnetID    string                         `json:"subnet_id"`
	Provider    iaasaccessor.NetworkExtenAttrs `json:"provider"`
}

type PfLinkResponse

type PfLinkResponse struct {
	PfName   string `json:"pf_name"`
	CurrName string `json:"pf_current_name"`
	PciID    string `json:"pci_id"`
	MacAddr  string `json:"mac_addr"`
}

type PortEagerAttr

type PortEagerAttr struct {
	NetworkName  string
	NetworkPlane string
	PortName     string
	VnicType     string
	Accelerate   string
	PodName      string
	PodNs        string
	FixIP        string
	IPGroupName  string
	Metadata     interface{}
}

type PortLazyAttr

type PortLazyAttr struct {
	//NetworkID      string
	VlanID     string
	Vni        int
	ID         string
	Name       string
	TenantID   string
	MacAddress string
	FixedIps   []ports.IP
	GatewayIP  string
	Cidr       string
	NetAttr    NetworkAttrs
	Pflink     *PfLinkResponse
	BusInfos   []string
	BondInfo   cni.BondInfo
	OrgDriver  string
}

type PortObj

type PortObj struct {
	BuildPortRole portrole.PortBuilderRole

	EagerAttr PortEagerAttr
	LazyAttr  PortLazyAttr
}

func CreatePortObj

func CreatePortObj(podNs, podName string, port *monitor.Port) (*PortObj, error)

Jump to

Keyboard shortcuts

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