Documentation ¶
Overview ¶
Package v1 contains API Schema definitions for the sriovnetwork v1 API group +k8s:deepcopy-gen=package,register +groupName=sriovnetwork.openshift.io
Package v1 contains API Schema definitions for the sriovnetwork v1 API group +k8s:deepcopy-gen=package,register +groupName=sriovnetwork.openshift.io
Index ¶
- Variables
- func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- func StringInArray(val string, array []string) bool
- type ByPriority
- type Interface
- type InterfaceExt
- type SriovNetwork
- type SriovNetworkList
- type SriovNetworkNicSelector
- type SriovNetworkNodePolicy
- func (p *SriovNetworkNodePolicy) Apply(state *SriovNetworkNodeState)
- func (in *SriovNetworkNodePolicy) DeepCopy() *SriovNetworkNodePolicy
- func (in *SriovNetworkNodePolicy) DeepCopyInto(out *SriovNetworkNodePolicy)
- func (in *SriovNetworkNodePolicy) DeepCopyObject() runtime.Object
- func (p *SriovNetworkNodePolicy) Selected(node *corev1.Node) bool
- type SriovNetworkNodePolicyList
- type SriovNetworkNodePolicySpec
- type SriovNetworkNodePolicyStatus
- type SriovNetworkNodeState
- type SriovNetworkNodeStateList
- type SriovNetworkNodeStateSpec
- type SriovNetworkNodeStateStatus
- type SriovNetworkSpec
- type SriovNetworkStatus
- type VirutalFunction
Constants ¶
This section is empty.
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: "sriovnetwork.openshift.io", Version: "v1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} // AddToScheme is a global function that registers this API group & version to a scheme AddToScheme = SchemeBuilder.AddToScheme )
var DeviceDriverMap = map[string](map[string]string){
"PF": {
"1572": "i40e",
"1583": "i40e",
"158b": "i40e",
"37d2": "i40e",
},
"VF": {
"1572": "iavf",
"1583": "iavf",
"158b": "iavf",
"37d2": "iavf",
"154c": "iavf",
},
}
var SriovPfVfMap = map[string](string){
"1583": "154c",
}
Functions ¶
func GetOpenAPIDefinitions ¶
func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
func StringInArray ¶
Types ¶
type ByPriority ¶
type ByPriority []SriovNetworkNodePolicy
func (ByPriority) DeepCopy ¶
func (in ByPriority) DeepCopy() ByPriority
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ByPriority.
func (ByPriority) DeepCopyInto ¶
func (in ByPriority) DeepCopyInto(out *ByPriority)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (ByPriority) Len ¶
func (a ByPriority) Len() int
func (ByPriority) Less ¶
func (a ByPriority) Less(i, j int) bool
func (ByPriority) Swap ¶
func (a ByPriority) Swap(i, j int)
type Interface ¶
type Interface struct { PciAddress string `json:"pciAddress"` NumVfs int `json:"numVfs,omitempty"` Mtu int `json:"mtu,omitempty"` DeviceType string `json:"deviceType,omitempty"` }
func (*Interface) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Interface.
func (*Interface) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type InterfaceExt ¶
type InterfaceExt struct { Name string `json:"name,omitempty"` NumVfs int `json:"numVfs,omitempty"` Mtu int `json:"mtu,omitempty"` Vendor string `json:"vendor,omitempty"` DeviceID string `json:"deviceID,omitempty"` LinkSpeed string `json:"linkSpeed,omitempty"` PciAddress string `json:"pciAddress"` Driver string `json:"driver,omitempty"` TotalVfs int `json:"totalvfs,omitempty"` VFs []VirutalFunction `json:"Vfs,omitempty"` }
func (*InterfaceExt) DeepCopy ¶
func (in *InterfaceExt) DeepCopy() *InterfaceExt
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InterfaceExt.
func (*InterfaceExt) DeepCopyInto ¶
func (in *InterfaceExt) DeepCopyInto(out *InterfaceExt)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SriovNetwork ¶
type SriovNetwork struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec SriovNetworkSpec `json:"spec,omitempty"` Status SriovNetworkStatus `json:"status,omitempty"` }
SriovNetwork is the Schema for the sriovnetworks API +k8s:openapi-gen=true
func (*SriovNetwork) DeepCopy ¶
func (in *SriovNetwork) DeepCopy() *SriovNetwork
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SriovNetwork.
func (*SriovNetwork) DeepCopyInto ¶
func (in *SriovNetwork) DeepCopyInto(out *SriovNetwork)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SriovNetwork) DeepCopyObject ¶
func (in *SriovNetwork) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SriovNetworkList ¶
type SriovNetworkList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []SriovNetwork `json:"items"` }
SriovNetworkList contains a list of SriovNetwork
func (*SriovNetworkList) DeepCopy ¶
func (in *SriovNetworkList) DeepCopy() *SriovNetworkList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SriovNetworkList.
func (*SriovNetworkList) DeepCopyInto ¶
func (in *SriovNetworkList) DeepCopyInto(out *SriovNetworkList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SriovNetworkList) DeepCopyObject ¶
func (in *SriovNetworkList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SriovNetworkNicSelector ¶
type SriovNetworkNicSelector struct { Vendor string `json:"vendor,omitempty"` DeviceID string `json:"deviceID,omitempty"` RootDevices []string `json:"rootDevices,omitempty"` }
func (*SriovNetworkNicSelector) DeepCopy ¶
func (in *SriovNetworkNicSelector) DeepCopy() *SriovNetworkNicSelector
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SriovNetworkNicSelector.
func (*SriovNetworkNicSelector) DeepCopyInto ¶
func (in *SriovNetworkNicSelector) DeepCopyInto(out *SriovNetworkNicSelector)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SriovNetworkNicSelector) Selected ¶
func (s *SriovNetworkNicSelector) Selected(iface *InterfaceExt) bool
type SriovNetworkNodePolicy ¶
type SriovNetworkNodePolicy struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec SriovNetworkNodePolicySpec `json:"spec,omitempty"` Status SriovNetworkNodePolicyStatus `json:"status,omitempty"` }
SriovNetworkNodePolicy is the Schema for the sriovnetworknodepolicies API +k8s:openapi-gen=true
func (*SriovNetworkNodePolicy) Apply ¶
func (p *SriovNetworkNodePolicy) Apply(state *SriovNetworkNodeState)
Apply policy to SriovNetworkNodeState CR
func (*SriovNetworkNodePolicy) DeepCopy ¶
func (in *SriovNetworkNodePolicy) DeepCopy() *SriovNetworkNodePolicy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SriovNetworkNodePolicy.
func (*SriovNetworkNodePolicy) DeepCopyInto ¶
func (in *SriovNetworkNodePolicy) DeepCopyInto(out *SriovNetworkNodePolicy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SriovNetworkNodePolicy) DeepCopyObject ¶
func (in *SriovNetworkNodePolicy) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SriovNetworkNodePolicyList ¶
type SriovNetworkNodePolicyList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []SriovNetworkNodePolicy `json:"items"` }
SriovNetworkNodePolicyList contains a list of SriovNetworkNodePolicy
func (*SriovNetworkNodePolicyList) DeepCopy ¶
func (in *SriovNetworkNodePolicyList) DeepCopy() *SriovNetworkNodePolicyList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SriovNetworkNodePolicyList.
func (*SriovNetworkNodePolicyList) DeepCopyInto ¶
func (in *SriovNetworkNodePolicyList) DeepCopyInto(out *SriovNetworkNodePolicyList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SriovNetworkNodePolicyList) DeepCopyObject ¶
func (in *SriovNetworkNodePolicyList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SriovNetworkNodePolicySpec ¶
type SriovNetworkNodePolicySpec struct { // INSERT ADDITIONAL SPEC FIELDS - desired state of cluster // Important: Run "operator-sdk generate k8s" to regenerate code after modifying this file // Add custom validation using kubebuilder tags: https://book.kubebuilder.io/beyond_basics/generating_crd.html ResourceName string `json:"resourceName"` NodeSelector map[string]string `json:"nodeSelector,omitempty"` Priority int `json:"priority,omitempty"` Mtu int `json:"mtu,omitempty"` NumVfs int `json:"numVfs"` NicSelector SriovNetworkNicSelector `json:"nicSelector"` DeviceType string `json:"deviceType,omitempty"` }
SriovNetworkNodePolicySpec defines the desired state of SriovNetworkNodePolicy +k8s:openapi-gen=true
func (*SriovNetworkNodePolicySpec) DeepCopy ¶
func (in *SriovNetworkNodePolicySpec) DeepCopy() *SriovNetworkNodePolicySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SriovNetworkNodePolicySpec.
func (*SriovNetworkNodePolicySpec) DeepCopyInto ¶
func (in *SriovNetworkNodePolicySpec) DeepCopyInto(out *SriovNetworkNodePolicySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SriovNetworkNodePolicyStatus ¶
type SriovNetworkNodePolicyStatus struct { }
SriovNetworkNodePolicyStatus defines the observed state of SriovNetworkNodePolicy +k8s:openapi-gen=true
func (*SriovNetworkNodePolicyStatus) DeepCopy ¶
func (in *SriovNetworkNodePolicyStatus) DeepCopy() *SriovNetworkNodePolicyStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SriovNetworkNodePolicyStatus.
func (*SriovNetworkNodePolicyStatus) DeepCopyInto ¶
func (in *SriovNetworkNodePolicyStatus) DeepCopyInto(out *SriovNetworkNodePolicyStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SriovNetworkNodeState ¶
type SriovNetworkNodeState struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec SriovNetworkNodeStateSpec `json:"spec,omitempty"` Status SriovNetworkNodeStateStatus `json:"status,omitempty"` }
SriovNetworkNodeState is the Schema for the sriovnetworknodestates API +k8s:openapi-gen=true
func (*SriovNetworkNodeState) DeepCopy ¶
func (in *SriovNetworkNodeState) DeepCopy() *SriovNetworkNodeState
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SriovNetworkNodeState.
func (*SriovNetworkNodeState) DeepCopyInto ¶
func (in *SriovNetworkNodeState) DeepCopyInto(out *SriovNetworkNodeState)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SriovNetworkNodeState) DeepCopyObject ¶
func (in *SriovNetworkNodeState) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*SriovNetworkNodeState) GetInterfaceStateByPciAddress ¶
func (s *SriovNetworkNodeState) GetInterfaceStateByPciAddress(addr string) *InterfaceExt
type SriovNetworkNodeStateList ¶
type SriovNetworkNodeStateList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []SriovNetworkNodeState `json:"items"` }
SriovNetworkNodeStateList contains a list of SriovNetworkNodeState
func (*SriovNetworkNodeStateList) DeepCopy ¶
func (in *SriovNetworkNodeStateList) DeepCopy() *SriovNetworkNodeStateList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SriovNetworkNodeStateList.
func (*SriovNetworkNodeStateList) DeepCopyInto ¶
func (in *SriovNetworkNodeStateList) DeepCopyInto(out *SriovNetworkNodeStateList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SriovNetworkNodeStateList) DeepCopyObject ¶
func (in *SriovNetworkNodeStateList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SriovNetworkNodeStateSpec ¶
type SriovNetworkNodeStateSpec struct {
Interfaces []Interface `json:"interfaces,omitempty"`
}
SriovNetworkNodeStateSpec defines the desired state of SriovNetworkNodeState +k8s:openapi-gen=true
func (*SriovNetworkNodeStateSpec) DeepCopy ¶
func (in *SriovNetworkNodeStateSpec) DeepCopy() *SriovNetworkNodeStateSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SriovNetworkNodeStateSpec.
func (*SriovNetworkNodeStateSpec) DeepCopyInto ¶
func (in *SriovNetworkNodeStateSpec) DeepCopyInto(out *SriovNetworkNodeStateSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SriovNetworkNodeStateStatus ¶
type SriovNetworkNodeStateStatus struct {
Interfaces []InterfaceExt `json:"interfaces,omitempty"`
}
SriovNetworkNodeStateStatus defines the observed state of SriovNetworkNodeState +k8s:openapi-gen=true
func (*SriovNetworkNodeStateStatus) DeepCopy ¶
func (in *SriovNetworkNodeStateStatus) DeepCopy() *SriovNetworkNodeStateStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SriovNetworkNodeStateStatus.
func (*SriovNetworkNodeStateStatus) DeepCopyInto ¶
func (in *SriovNetworkNodeStateStatus) DeepCopyInto(out *SriovNetworkNodeStateStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SriovNetworkSpec ¶
type SriovNetworkSpec struct { // INSERT ADDITIONAL SPEC FIELDS - desired state of cluster // Important: Run "operator-sdk generate k8s" to regenerate code after modifying this file // Add custom validation using kubebuilder tags: https://book.kubebuilder.io/beyond_basics/generating_crd.html ResourceName string `json:"resourceName"` IPAM string `json:"ipam,omitempty"` Vlan int `json:"vlan,omitempty"` }
SriovNetworkSpec defines the desired state of SriovNetwork +k8s:openapi-gen=true
func (*SriovNetworkSpec) DeepCopy ¶
func (in *SriovNetworkSpec) DeepCopy() *SriovNetworkSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SriovNetworkSpec.
func (*SriovNetworkSpec) DeepCopyInto ¶
func (in *SriovNetworkSpec) DeepCopyInto(out *SriovNetworkSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SriovNetworkStatus ¶
type SriovNetworkStatus struct { }
SriovNetworkStatus defines the observed state of SriovNetwork +k8s:openapi-gen=true
func (*SriovNetworkStatus) DeepCopy ¶
func (in *SriovNetworkStatus) DeepCopy() *SriovNetworkStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SriovNetworkStatus.
func (*SriovNetworkStatus) DeepCopyInto ¶
func (in *SriovNetworkStatus) DeepCopyInto(out *SriovNetworkStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VirutalFunction ¶
type VirutalFunction struct { No int `json:"no,omitempty"` Mac string `json:"mac,omitempty"` Assigned string `json:"assigned,omitempty"` Driver string `json:"driver,omitempty"` PciAddress string `json:"pciAddress,omitempty"` Vendor string `json:"vendor,omitempty"` DeviceID string `json:"deviceID,omitempty"` Vlan int `json:"Vlan,omitempty"` Mtu int `json:"mtu,omitempty"` }
func (*VirutalFunction) DeepCopy ¶
func (in *VirutalFunction) DeepCopy() *VirutalFunction
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirutalFunction.
func (*VirutalFunction) DeepCopyInto ¶
func (in *VirutalFunction) DeepCopyInto(out *VirutalFunction)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.