Documentation ¶
Overview ¶
Package v1 contains API Schema definitions for the multinic.fms.io v1 API group +kubebuilder:object:generate=true +groupName=multinic.fms.io
Index ¶
- Variables
- type Allocation
- type AttachmentPolicy
- type CIDR
- type CIDREntry
- type CIDRList
- type CIDRSpec
- type CIDRStatus
- type Config
- type ConfigList
- type ConfigSpec
- type ConfigStatus
- type DNS
- type DaemonSpec
- type DeviceClass
- type DeviceClassList
- type DeviceClassSpec
- type DeviceClassStatus
- type DeviceID
- type DiscoverStatus
- type HostInterface
- type HostInterfaceInfo
- type HostInterfaceList
- type HostInterfaceSpec
- type HostInterfaceStatus
- type HostPathMount
- type IPPool
- type IPPoolList
- type IPPoolSpec
- type IPPoolStatus
- type InterfaceInfoType
- type LinkStat
- type MultiNicNetwork
- type MultiNicNetworkList
- type MultiNicNetworkSpec
- type MultiNicNetworkStatus
- type NetConfigStatus
- type NicNetworkResult
- type PluginConfig
- type PluginSpec
- type RouteStatus
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "multinic.fms.io", Version: "v1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
This section is empty.
Types ¶
type Allocation ¶
type Allocation struct { Pod string `json:"pod"` Namespace string `json:"namespace"` Index int `json:"index"` Address string `json:"address"` }
func (*Allocation) DeepCopy ¶
func (in *Allocation) DeepCopy() *Allocation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Allocation.
func (*Allocation) DeepCopyInto ¶
func (in *Allocation) DeepCopyInto(out *Allocation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AttachmentPolicy ¶
type AttachmentPolicy struct { Strategy string `json:"strategy"` Target string `json:"target,omitempty"` }
AssignmentPolicy defines the policy to select the NICs from the pool Strategy is one of None, CostOpt, PerfOpt, QoSClass Target is target bandwidth in a format (d+)Gbps, (d+)Mbps, (d+)Kbps required for CostOpt and PerfOpt
func (*AttachmentPolicy) DeepCopy ¶
func (in *AttachmentPolicy) DeepCopy() *AttachmentPolicy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AttachmentPolicy.
func (*AttachmentPolicy) DeepCopyInto ¶
func (in *AttachmentPolicy) DeepCopyInto(out *AttachmentPolicy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CIDR ¶
type CIDR struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec CIDRSpec `json:"spec,omitempty"` Status CIDRStatus `json:"status,omitempty"` }
CIDR is the Schema for the cidrs API
func (*CIDR) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CIDR.
func (*CIDR) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CIDR) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CIDREntry ¶
type CIDREntry struct { NetAddress string `json:"netAddress"` InterfaceIndex int `json:"interfaceIndex"` VlanCIDR string `json:"vlanCIDR"` Hosts []HostInterfaceInfo `json:"hosts"` }
func (*CIDREntry) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CIDREntry.
func (*CIDREntry) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CIDRList ¶
type CIDRList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []CIDR `json:"items"` }
CIDRList contains a list of CIDR
func (*CIDRList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CIDRList.
func (*CIDRList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CIDRList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CIDRSpec ¶
type CIDRSpec struct { // INSERT ADDITIONAL SPEC FIELDS - desired state of cluster // Important: Run "make" to regenerate code after modifying this file Config PluginConfig `json:"config"` CIDRs []CIDREntry `json:"cidr"` }
CIDRSpec defines the desired state of CIDR
func (*CIDRSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CIDRSpec.
func (*CIDRSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CIDRStatus ¶
type CIDRStatus struct { }
CIDRStatus defines the observed state of CIDR
func (*CIDRStatus) DeepCopy ¶
func (in *CIDRStatus) DeepCopy() *CIDRStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CIDRStatus.
func (*CIDRStatus) DeepCopyInto ¶
func (in *CIDRStatus) DeepCopyInto(out *CIDRStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Config ¶
type Config struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ConfigSpec `json:"spec,omitempty"` Status ConfigStatus `json:"status,omitempty"` }
Config is the Schema for the configs API
func (*Config) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Config.
func (*Config) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Config) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ConfigList ¶
type ConfigList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Config `json:"items"` }
ConfigList contains a list of Config
func (*ConfigList) DeepCopy ¶
func (in *ConfigList) DeepCopy() *ConfigList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigList.
func (*ConfigList) DeepCopyInto ¶
func (in *ConfigList) DeepCopyInto(out *ConfigList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ConfigList) DeepCopyObject ¶
func (in *ConfigList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ConfigSpec ¶
type ConfigSpec struct { // INSERT ADDITIONAL SPEC FIELDS - desired state of cluster // Important: Run "make" to regenerate code after modifying this file CNIType string `json:"cniType"` IPAMType string `json:"ipamType"` Daemon DaemonSpec `json:"daemon"` JoinPath string `json:"joinPath"` InterfacePath string `json:"getInterfacePath"` AddRoutePath string `json:"addRoutePath,omitempty"` DeleteRoutePath string `json:"deleteRoutePath,omitempty"` UrgentReconcileSeconds int `json:"urgentReconcileSeconds,omitempty"` NormalReconcileMinutes int `json:"normalReconcileMinutes,omitempty"` LongReconcileMinutes int `json:"longReconcileMinutes,omitempty"` ContextTimeoutMinutes int `json:"contextTimeoutMinutes,omitempty"` LogLevel int `json:"logLevel,omitempty"` }
ConfigSpec defines the desired state of Config
func (*ConfigSpec) DeepCopy ¶
func (in *ConfigSpec) DeepCopy() *ConfigSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigSpec.
func (*ConfigSpec) DeepCopyInto ¶
func (in *ConfigSpec) DeepCopyInto(out *ConfigSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ConfigStatus ¶
type ConfigStatus struct { }
ConfigStatus defines the observed state of Config
func (*ConfigStatus) DeepCopy ¶
func (in *ConfigStatus) DeepCopy() *ConfigStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigStatus.
func (*ConfigStatus) DeepCopyInto ¶
func (in *ConfigStatus) DeepCopyInto(out *ConfigStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DNS ¶
type DNS struct { Nameservers []string `json:"nameservers,omitempty"` Domain string `json:"domain,omitempty"` Search []string `json:"search,omitempty"` Options []string `json:"options,omitempty"` }
reference: github.com/containernetworking/cni/pkg/types
func (*DNS) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DNS.
func (*DNS) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DaemonSpec ¶
type DaemonSpec struct { NodeSelector map[string]string `json:"nodeSelector,omitempty"` Image string `json:"image"` ImagePullSecret string `json:"imagePullSecretName,omitempty"` ImagePullPolicy string `json:"imagePullPolicy,omitempty"` SecurityContext *corev1.SecurityContext `json:"securityContext,omitempty"` Env []corev1.EnvVar `json:"env,omitempty"` EnvFrom []corev1.EnvFromSource `json:"envFrom,omitempty"` HostPathMounts []HostPathMount `json:"mounts,omitempty"` DaemonPort int `json:"port"` Resources corev1.ResourceRequirements `json:"resources,omitempty"` Tolerations []corev1.Toleration `json:"tolerations,omitempty" protobuf:"bytes,22,opt,name=tolerations"` }
func (*DaemonSpec) DeepCopy ¶
func (in *DaemonSpec) DeepCopy() *DaemonSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DaemonSpec.
func (*DaemonSpec) DeepCopyInto ¶
func (in *DaemonSpec) DeepCopyInto(out *DaemonSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DeviceClass ¶
type DeviceClass struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec DeviceClassSpec `json:"spec,omitempty"` Status DeviceClassStatus `json:"status,omitempty"` }
DeviceClass is the Schema for the deviceclasses API
func (*DeviceClass) DeepCopy ¶
func (in *DeviceClass) DeepCopy() *DeviceClass
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceClass.
func (*DeviceClass) DeepCopyInto ¶
func (in *DeviceClass) DeepCopyInto(out *DeviceClass)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DeviceClass) DeepCopyObject ¶
func (in *DeviceClass) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DeviceClassList ¶
type DeviceClassList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []DeviceClass `json:"items"` }
DeviceClassList contains a list of DeviceClass
func (*DeviceClassList) DeepCopy ¶
func (in *DeviceClassList) DeepCopy() *DeviceClassList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceClassList.
func (*DeviceClassList) DeepCopyInto ¶
func (in *DeviceClassList) DeepCopyInto(out *DeviceClassList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DeviceClassList) DeepCopyObject ¶
func (in *DeviceClassList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DeviceClassSpec ¶
type DeviceClassSpec struct {
DeviceIDs []DeviceID `json:"ids"`
}
DeviceClassSpec defines the desired state of DeviceClass
func (*DeviceClassSpec) DeepCopy ¶
func (in *DeviceClassSpec) DeepCopy() *DeviceClassSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceClassSpec.
func (*DeviceClassSpec) DeepCopyInto ¶
func (in *DeviceClassSpec) DeepCopyInto(out *DeviceClassSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DeviceClassStatus ¶
type DeviceClassStatus struct { }
DeviceClassStatus defines the observed state of DeviceClass
func (*DeviceClassStatus) DeepCopy ¶
func (in *DeviceClassStatus) DeepCopy() *DeviceClassStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceClassStatus.
func (*DeviceClassStatus) DeepCopyInto ¶
func (in *DeviceClassStatus) DeepCopyInto(out *DeviceClassStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DeviceID ¶
func (*DeviceID) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceID.
func (*DeviceID) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DiscoverStatus ¶
type DiscoverStatus struct { ExistDaemon int `json:"existDaemon"` InterfaceInfoAvailable int `json:"infoAvailable"` CIDRProcessedHost int `json:"cidrProcessed"` }
func (*DiscoverStatus) DeepCopy ¶
func (in *DiscoverStatus) DeepCopy() *DiscoverStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DiscoverStatus.
func (*DiscoverStatus) DeepCopyInto ¶
func (in *DiscoverStatus) DeepCopyInto(out *DiscoverStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HostInterface ¶
type HostInterface struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec HostInterfaceSpec `json:"spec,omitempty"` Status HostInterfaceStatus `json:"status,omitempty"` }
HostInterface is the Schema for the hostinterfaces API
func (*HostInterface) DeepCopy ¶
func (in *HostInterface) DeepCopy() *HostInterface
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HostInterface.
func (*HostInterface) DeepCopyInto ¶
func (in *HostInterface) DeepCopyInto(out *HostInterface)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*HostInterface) DeepCopyObject ¶
func (in *HostInterface) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type HostInterfaceInfo ¶
type HostInterfaceInfo struct { HostIndex int `json:"hostIndex"` HostName string `json:"hostName"` InterfaceName string `json:"interfaceName"` HostIP string `json:"hostIP"` PodCIDR string `json:"podCIDR"` IPPool string `json:"ippool,omitempty"` }
func (*HostInterfaceInfo) DeepCopy ¶
func (in *HostInterfaceInfo) DeepCopy() *HostInterfaceInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HostInterfaceInfo.
func (*HostInterfaceInfo) DeepCopyInto ¶
func (in *HostInterfaceInfo) DeepCopyInto(out *HostInterfaceInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HostInterfaceList ¶
type HostInterfaceList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []HostInterface `json:"items"` }
HostInterfaceList contains a list of HostInterface
func (*HostInterfaceList) DeepCopy ¶
func (in *HostInterfaceList) DeepCopy() *HostInterfaceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HostInterfaceList.
func (*HostInterfaceList) DeepCopyInto ¶
func (in *HostInterfaceList) DeepCopyInto(out *HostInterfaceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*HostInterfaceList) DeepCopyObject ¶
func (in *HostInterfaceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type HostInterfaceSpec ¶
type HostInterfaceSpec struct { HostName string `json:"hostName"` Interfaces []InterfaceInfoType `json:"interfaces"` }
HostInterfaceSpec defines the desired state of HostInterface
func (*HostInterfaceSpec) DeepCopy ¶
func (in *HostInterfaceSpec) DeepCopy() *HostInterfaceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HostInterfaceSpec.
func (*HostInterfaceSpec) DeepCopyInto ¶
func (in *HostInterfaceSpec) DeepCopyInto(out *HostInterfaceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HostInterfaceStatus ¶
type HostInterfaceStatus struct {
Stat LinkStat `json:"stat"`
}
HostInterfaceStatus defines the observed state of HostInterface
func (*HostInterfaceStatus) DeepCopy ¶
func (in *HostInterfaceStatus) DeepCopy() *HostInterfaceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HostInterfaceStatus.
func (*HostInterfaceStatus) DeepCopyInto ¶
func (in *HostInterfaceStatus) DeepCopyInto(out *HostInterfaceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HostPathMount ¶
type HostPathMount struct { Name string `json:"name"` PodCNIPath string `json:"podpath"` HostCNIPath string `json:"hostpath"` }
func (*HostPathMount) DeepCopy ¶
func (in *HostPathMount) DeepCopy() *HostPathMount
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HostPathMount.
func (*HostPathMount) DeepCopyInto ¶
func (in *HostPathMount) DeepCopyInto(out *HostPathMount)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IPPool ¶
type IPPool struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec IPPoolSpec `json:"spec,omitempty"` Status IPPoolStatus `json:"status,omitempty"` }
IPPool is the Schema for the ippools API
func (*IPPool) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPPool.
func (*IPPool) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*IPPool) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type IPPoolList ¶
type IPPoolList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []IPPool `json:"items"` }
IPPoolList contains a list of IPPool
func (*IPPoolList) DeepCopy ¶
func (in *IPPoolList) DeepCopy() *IPPoolList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPPoolList.
func (*IPPoolList) DeepCopyInto ¶
func (in *IPPoolList) DeepCopyInto(out *IPPoolList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*IPPoolList) DeepCopyObject ¶
func (in *IPPoolList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type IPPoolSpec ¶
type IPPoolSpec struct { // Foo is an example field of IPPool. Edit ippool_types.go to remove/update PodCIDR string `json:"podCIDR"` VlanCIDR string `json:"vlanCIDR"` NetAttachDefName string `json:"netAttachDef"` HostName string `json:"hostName"` InterfaceName string `json:"interfaceName"` Excludes []string `json:"excludes"` Allocations []Allocation `json:"allocations"` }
IPPoolSpec defines the desired state of IPPool
func (*IPPoolSpec) DeepCopy ¶
func (in *IPPoolSpec) DeepCopy() *IPPoolSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPPoolSpec.
func (*IPPoolSpec) DeepCopyInto ¶
func (in *IPPoolSpec) DeepCopyInto(out *IPPoolSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IPPoolStatus ¶
type IPPoolStatus struct { }
IPPoolStatus defines the observed state of IPPool
func (*IPPoolStatus) DeepCopy ¶
func (in *IPPoolStatus) DeepCopy() *IPPoolStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPPoolStatus.
func (*IPPoolStatus) DeepCopyInto ¶
func (in *IPPoolStatus) DeepCopyInto(out *IPPoolStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type InterfaceInfoType ¶
type InterfaceInfoType struct { InterfaceName string `json:"interfaceName"` NetAddress string `json:"netAddress"` HostIP string `json:"hostIP"` Vendor string `json:"vendor"` Product string `json:"product"` PciAddress string `json:"pciAddress"` }
func (*InterfaceInfoType) DeepCopy ¶
func (in *InterfaceInfoType) DeepCopy() *InterfaceInfoType
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InterfaceInfoType.
func (*InterfaceInfoType) DeepCopyInto ¶
func (in *InterfaceInfoType) DeepCopyInto(out *InterfaceInfoType)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (InterfaceInfoType) Equal ¶
func (i InterfaceInfoType) Equal(cmp InterfaceInfoType) bool
type LinkStat ¶
type LinkStat struct { InterfaceName string `json:"interfaceName"` TxRate int `json:"txRate"` RxRate int `json:"rxRate"` TxDropRate int `json:"txDropRate"` RxDropRate int `json:"rxDropRate"` LastTx int `json:"lastTx"` LastRx int `json:"lastRx"` LastTxDrop int `json:"lastTxDrop"` LastRxDrop int `json:"lastRxDrop"` LastTimeStamp int64 `json:"lastTimestamp"` UsedCount int `json:"count"` }
func (*LinkStat) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LinkStat.
func (*LinkStat) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MultiNicNetwork ¶
type MultiNicNetwork struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec MultiNicNetworkSpec `json:"spec,omitempty"` Status MultiNicNetworkStatus `json:"status,omitempty"` }
MultiNicNetwork is the Schema for the multinicnetworks API
func (*MultiNicNetwork) DeepCopy ¶
func (in *MultiNicNetwork) DeepCopy() *MultiNicNetwork
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MultiNicNetwork.
func (*MultiNicNetwork) DeepCopyInto ¶
func (in *MultiNicNetwork) DeepCopyInto(out *MultiNicNetwork)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MultiNicNetwork) DeepCopyObject ¶
func (in *MultiNicNetwork) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MultiNicNetworkList ¶
type MultiNicNetworkList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []MultiNicNetwork `json:"items"` }
MultiNicNetworkList contains a list of MultiNicNetwork
func (*MultiNicNetworkList) DeepCopy ¶
func (in *MultiNicNetworkList) DeepCopy() *MultiNicNetworkList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MultiNicNetworkList.
func (*MultiNicNetworkList) DeepCopyInto ¶
func (in *MultiNicNetworkList) DeepCopyInto(out *MultiNicNetworkList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MultiNicNetworkList) DeepCopyObject ¶
func (in *MultiNicNetworkList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MultiNicNetworkSpec ¶
type MultiNicNetworkSpec struct { MasterNetAddrs []string `json:"masterNets,omitempty"` Subnet string `json:"subnet,omitempty"` IPAM string `json:"ipam"` IsMultiNICIPAM bool `json:"multiNICIPAM,omitempty"` MainPlugin PluginSpec `json:"plugin"` Policy AttachmentPolicy `json:"attachPolicy,omitempty"` Namespaces []string `json:"namespaces,omitempty"` }
MultiNicNetworkSpec defines the desired state of MultiNicNetwork MasterNetAddrs is network addresses of NIC members in the pool Subnet is global subnet, default: 172.30.0.0/16 IPAM is ipam specification MainPlugin is plugin specification Policy is general policy of the pool
func (*MultiNicNetworkSpec) DeepCopy ¶
func (in *MultiNicNetworkSpec) DeepCopy() *MultiNicNetworkSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MultiNicNetworkSpec.
func (*MultiNicNetworkSpec) DeepCopyInto ¶
func (in *MultiNicNetworkSpec) DeepCopyInto(out *MultiNicNetworkSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MultiNicNetworkStatus ¶
type MultiNicNetworkStatus struct { ComputeResults []NicNetworkResult `json:"computeResults"` DiscoverStatus `json:"discovery"` NetConfigStatus `json:"configStatus"` RouteStatus `json:"routeStatus"` Message string `json:"message"` LastSyncTime metav1.Time `json:"lastSyncTime"` }
MultiNicNetworkStatus defines the observed state of MultiNicNetwork
func (*MultiNicNetworkStatus) DeepCopy ¶
func (in *MultiNicNetworkStatus) DeepCopy() *MultiNicNetworkStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MultiNicNetworkStatus.
func (*MultiNicNetworkStatus) DeepCopyInto ¶
func (in *MultiNicNetworkStatus) DeepCopyInto(out *MultiNicNetworkStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NetConfigStatus ¶
type NetConfigStatus string
+enum
const ( // ApplyingRoute indicates that plugin configuration has not completed yet WaitForConfig NetConfigStatus = "WaitForConfig" // ConfigComplete indicates that network plugin has been configured ConfigComplete NetConfigStatus = "Success" // SomeRouteFailed indicates that failed to configure network plugin ConfigFailed NetConfigStatus = "Failed" )
type NicNetworkResult ¶
type NicNetworkResult struct { NetAddress string `json:"netAddress"` NumOfHost int `json:"numOfHosts"` }
func (*NicNetworkResult) DeepCopy ¶
func (in *NicNetworkResult) DeepCopy() *NicNetworkResult
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NicNetworkResult.
func (*NicNetworkResult) DeepCopyInto ¶
func (in *NicNetworkResult) DeepCopyInto(out *NicNetworkResult)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PluginConfig ¶
type PluginConfig struct { Name string `json:"name"` Type string `json:"type"` Subnet string `json:"subnet"` MasterNetAddrs []string `json:"masterNets"` HostBlock int `json:"hostBlock"` InterfaceBlock int `json:"interfaceBlock"` ExcludeCIDRs []string `json:"excludeCIDRs,omitempty"` VlanMode string `json:"vlanMode,omitempty"` }
func (*PluginConfig) DeepCopy ¶
func (in *PluginConfig) DeepCopy() *PluginConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PluginConfig.
func (*PluginConfig) DeepCopyInto ¶
func (in *PluginConfig) DeepCopyInto(out *PluginConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PluginSpec ¶
type PluginSpec struct { CNIVersion string `json:"cniVersion"` Type string `json:"type"` Capabilities map[string]bool `json:"capabilities,omitempty"` DNS DNS `json:"dns,omitempty"` CNIArgs map[string]string `json:"args,omitempty"` }
reference: github.com/containernetworking/cni/pkg/types
func (*PluginSpec) DeepCopy ¶
func (in *PluginSpec) DeepCopy() *PluginSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PluginSpec.
func (*PluginSpec) DeepCopyInto ¶
func (in *PluginSpec) DeepCopyInto(out *PluginSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RouteStatus ¶
type RouteStatus string
+enum
const ( // RouteNoApplied indicates that there is no L3 configuration applied RouteNoApplied RouteStatus = "N/A" // ApplyingRoute indicates that the new cidr is just recomputed and waiting for route update ApplyingRoute RouteStatus = "WaitForRoutes" // RouteUnknown indicates that some daemon cannot be connected RouteUnknown RouteStatus = "Unknown" // AllRouteApplied indicates that all routes are applied AllRouteApplied RouteStatus = "Success" // SomeRouteFailed indicates that some route cannot be applied, need attention SomeRouteFailed RouteStatus = "Failed" )