Documentation
¶
Overview ¶
+k8s:deepcopy-gen=package +groupName=network.harvesterhci.io
+k8s:deepcopy-gen=package +groupName=network.harvesterhci.io
+k8s:deepcopy-gen=package +groupName=network.harvesterhci.io
Index ¶
- Constants
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type ClusterNetwork
- type ClusterNetworkList
- type Condition
- type LinkStatus
- type NetworkID
- type NetworkInterface
- type NetworkType
- type NodeNetwork
- type NodeNetworkList
- type NodeNetworkSpec
- type NodeNetworkStatus
Constants ¶
const GroupName = "network.harvesterhci.io"
const KeyDefaultInterface = "defaultPhysicalNIC"
Variables ¶
var ( ClusterNetworkResourceName = "clusternetworks" NodeNetworkResourceName = "nodenetworks" )
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var (
NodeNetworkReady condition.Cond = "Ready"
)
var SchemeGroupVersion = schema.GroupVersion{Group: network.GroupName, Version: "v1beta1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type ClusterNetwork ¶
type ClusterNetwork struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` // +optional Description string `json:"description,omitempty"` Enable bool `json:"enable"` // +optional Config map[string]string `json:"config,omitempty"` }
func NewClusterNetwork ¶
func NewClusterNetwork(namespace, name string, obj ClusterNetwork) *ClusterNetwork
func (*ClusterNetwork) DeepCopy ¶
func (in *ClusterNetwork) DeepCopy() *ClusterNetwork
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterNetwork.
func (*ClusterNetwork) DeepCopyInto ¶
func (in *ClusterNetwork) DeepCopyInto(out *ClusterNetwork)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterNetwork) DeepCopyObject ¶
func (in *ClusterNetwork) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterNetworkList ¶
type ClusterNetworkList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []ClusterNetwork `json:"items"` }
ClusterNetworkList is a list of ClusterNetwork resources
func (*ClusterNetworkList) DeepCopy ¶
func (in *ClusterNetworkList) DeepCopy() *ClusterNetworkList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterNetworkList.
func (*ClusterNetworkList) DeepCopyInto ¶
func (in *ClusterNetworkList) DeepCopyInto(out *ClusterNetworkList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterNetworkList) DeepCopyObject ¶
func (in *ClusterNetworkList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type Condition ¶
type Condition struct { // Type of the condition. Type condition.Cond `json:"type"` // Status of the condition, one of True, False, Unknown. Status corev1.ConditionStatus `json:"status"` // The last time this condition was updated. LastUpdateTime string `json:"lastUpdateTime,omitempty"` // Last time the condition transitioned from one status to another. LastTransitionTime string `json:"lastTransitionTime,omitempty"` // The reason for the condition's last transition. Reason string `json:"reason,omitempty"` // Human-readable message indicating details about last transition Message string `json:"message,omitempty"` }
func (*Condition) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Condition.
func (*Condition) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LinkStatus ¶
type LinkStatus struct { // +optional Index int `json:"index,omitempty"` // +optional Type string `json:"type,omitempty"` // +optional MAC string `json:"mac,omitempty"` // +optional Promiscuous bool `json:"promiscuous,omitempty"` // +optional State string `json:"state,omitempty"` // +optional IPV4Address []string `json:"ipv4Address,omitempty"` // +optional MasterIndex int `json:"masterIndex,omitempty"` // +optional Routes []string `json:"routes,omitempty"` // +optional Conditions []Condition `json:"conditions,omitempty"` }
func (*LinkStatus) DeepCopy ¶
func (in *LinkStatus) DeepCopy() *LinkStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LinkStatus.
func (*LinkStatus) DeepCopyInto ¶
func (in *LinkStatus) DeepCopyInto(out *LinkStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NetworkInterface ¶ added in v0.2.2
type NetworkInterface struct { // Index of the NIC Index int `json:"index"` // Index of the NIC's master MasterIndex int `json:"masterIndex,omitempty"` // Name of the NIC Name string `json:"name"` // Interface type of the NIC Type string `json:"type"` // State of the NIC, up/down/unknown State string `json:"state"` // Specify whether used by management network or not UsedByMgmtNetwork bool `json:"usedByManagementNetwork,omitempty"` // Specify whether used by VLAN network or not UsedByVlanNetwork bool `json:"usedByVlanNetwork,omitempty"` }
func (*NetworkInterface) DeepCopy ¶ added in v0.2.2
func (in *NetworkInterface) DeepCopy() *NetworkInterface
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkInterface.
func (*NetworkInterface) DeepCopyInto ¶ added in v0.2.2
func (in *NetworkInterface) DeepCopyInto(out *NetworkInterface)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NetworkType ¶
type NetworkType string
+kubebuilder:validation:Enum=vlan
const (
NetworkTypeVLAN NetworkType = "vlan"
)
type NodeNetwork ¶
type NodeNetwork struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec NodeNetworkSpec `json:"spec,omitempty"` Status NodeNetworkStatus `json:"status,omitempty"` }
func NewNodeNetwork ¶
func NewNodeNetwork(namespace, name string, obj NodeNetwork) *NodeNetwork
func (*NodeNetwork) DeepCopy ¶
func (in *NodeNetwork) DeepCopy() *NodeNetwork
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeNetwork.
func (*NodeNetwork) DeepCopyInto ¶
func (in *NodeNetwork) DeepCopyInto(out *NodeNetwork)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NodeNetwork) DeepCopyObject ¶
func (in *NodeNetwork) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NodeNetworkList ¶
type NodeNetworkList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []NodeNetwork `json:"items"` }
NodeNetworkList is a list of NodeNetwork resources
func (*NodeNetworkList) DeepCopy ¶
func (in *NodeNetworkList) DeepCopy() *NodeNetworkList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeNetworkList.
func (*NodeNetworkList) DeepCopyInto ¶
func (in *NodeNetworkList) DeepCopyInto(out *NodeNetworkList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NodeNetworkList) DeepCopyObject ¶
func (in *NodeNetworkList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NodeNetworkSpec ¶
type NodeNetworkSpec struct { // +optional Description string `json:"description,omitempty"` NodeName string `json:"nodeName"` // +kubebuilder:validation:Required Type NetworkType `json:"type,omitempty"` // +optional NetworkInterface string `json:"nic,omitempty"` }
func (*NodeNetworkSpec) DeepCopy ¶
func (in *NodeNetworkSpec) DeepCopy() *NodeNetworkSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeNetworkSpec.
func (*NodeNetworkSpec) DeepCopyInto ¶
func (in *NodeNetworkSpec) DeepCopyInto(out *NodeNetworkSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NodeNetworkStatus ¶
type NodeNetworkStatus struct { // +optional NetworkIDs []NetworkID `json:"networkIDs,omitempty"` // +optional NetworkLinkStatus map[string]*LinkStatus `json:"networkLinkStatus,omitempty"` // +optional NetworkInterfaces []NetworkInterface `json:"nics,omitempty"` // +optional Conditions []Condition `json:"conditions,omitempty"` }
func (*NodeNetworkStatus) DeepCopy ¶
func (in *NodeNetworkStatus) DeepCopy() *NodeNetworkStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeNetworkStatus.
func (*NodeNetworkStatus) DeepCopyInto ¶
func (in *NodeNetworkStatus) DeepCopyInto(out *NodeNetworkStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.