v1

package
v0.0.0-...-e683930 Latest Latest
Warning

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

Go to latest
Published: May 21, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

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

Constants

This section is empty.

Variables

View Source
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
)
View Source
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",
	},
}
View Source
var SriovPfVfMap = map[string](string){
	"1583": "154c",
}

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

func StringInArray

func StringInArray(val string, array []string) bool

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

func (in *Interface) DeepCopy() *Interface

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Interface.

func (*Interface) DeepCopyInto

func (in *Interface) DeepCopyInto(out *Interface)

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

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

Apply policy to SriovNetworkNodeState CR

func (*SriovNetworkNodePolicy) DeepCopy

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.

func (*SriovNetworkNodePolicy) Selected

func (p *SriovNetworkNodePolicy) Selected(node *corev1.Node) bool

Match check if node is selected by NodeSelector

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

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SriovNetworkNodePolicyList.

func (*SriovNetworkNodePolicyList) DeepCopyInto

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

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SriovNetworkNodePolicySpec.

func (*SriovNetworkNodePolicySpec) DeepCopyInto

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

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SriovNetworkNodePolicyStatus.

func (*SriovNetworkNodePolicyStatus) DeepCopyInto

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

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

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SriovNetworkNodeStateList.

func (*SriovNetworkNodeStateList) DeepCopyInto

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

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SriovNetworkNodeStateSpec.

func (*SriovNetworkNodeStateSpec) DeepCopyInto

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

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SriovNetworkNodeStateStatus.

func (*SriovNetworkNodeStateStatus) DeepCopyInto

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.

Jump to

Keyboard shortcuts

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