v1beta1

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: Apache-2.0 Imports: 7 Imported by: 8

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

This section is empty.

Variables

View Source
var (
	ClusterNetworkResourceName = "clusternetworks"
	LinkMonitorResourceName    = "linkmonitors"
	VlanConfigResourceName     = "vlanconfigs"
	VlanStatusResourceName     = "vlanstatuses"
)
View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var (
	Ready condition.Cond = "ready"
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: network.GroupName, Version: "v1beta1"}

SchemeGroupVersion is group version used to register these objects

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

Types

type BondMode added in v0.3.0

type BondMode string
const (
	BondModeBalanceRr    BondMode = "balance-rr"
	BondMoDeActiveBackup BondMode = "active-backup"
	BondModeBalanceXor   BondMode = "balance-xor"
	BondModeBroadcast    BondMode = "broadcast"
	BondMode8023AD       BondMode = "802.3ad"
	BondModeBalanceTlb   BondMode = "balance-tlb"
	BondModeBalanceAlb   BondMode = "balance-alb"
)

type BondOptions added in v0.3.0

type BondOptions struct {
	// +optional
	// +kubebuilder:default:="active-backup"
	Mode BondMode `json:"mode,omitempty"`
	// +optional
	// +kubebuilder:validation:Minimum:=-1
	// +kubebuilder:default:=-1
	Miimon int `json:"miimon,omitempty"`
}

reference: https://www.kernel.org/doc/Documentation/networking/bonding.txt

func (*BondOptions) DeepCopy added in v0.3.0

func (in *BondOptions) DeepCopy() *BondOptions

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

func (*BondOptions) DeepCopyInto added in v0.3.0

func (in *BondOptions) DeepCopyInto(out *BondOptions)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ClusterNetwork

type ClusterNetwork struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// +optional
	Status ClusterNetworkStatus `json:"status"`
}

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 ClusterNetworkStatus added in v0.3.0

type ClusterNetworkStatus struct {
	// +optional
	Conditions []Condition `json:"conditions,omitempty"`
}

func (*ClusterNetworkStatus) DeepCopy added in v0.3.0

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

func (*ClusterNetworkStatus) DeepCopyInto added in v0.3.0

func (in *ClusterNetworkStatus) DeepCopyInto(out *ClusterNetworkStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

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

func (in *Condition) DeepCopy() *Condition

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

func (*Condition) DeepCopyInto

func (in *Condition) DeepCopyInto(out *Condition)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type LinkAttrs added in v0.3.0

type LinkAttrs struct {
	// +optional
	// +kubebuilder:validation:Minimum:=0
	MTU int `json:"mtu,omitempty"`
	// +optional
	// +kubebuilder:validation:Minimum:=-1
	// +kubebuilder:default:=-1
	TxQLen int `json:"txQLen,omitempty"`
	// +optional
	HardwareAddr net.HardwareAddr `json:"hardwareAddr,omitempty"`
}

func (*LinkAttrs) DeepCopy added in v0.3.0

func (in *LinkAttrs) DeepCopy() *LinkAttrs

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

func (*LinkAttrs) DeepCopyInto added in v0.3.0

func (in *LinkAttrs) DeepCopyInto(out *LinkAttrs)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type LinkMonitor added in v0.3.0

type LinkMonitor struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              LinkMonitorSpec `json:"spec"`
	// +optional
	Status LinkMonitorStatus `json:"status"`
}

func NewLinkMonitor added in v0.3.0

func NewLinkMonitor(namespace, name string, obj LinkMonitor) *LinkMonitor

func (*LinkMonitor) DeepCopy added in v0.3.0

func (in *LinkMonitor) DeepCopy() *LinkMonitor

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

func (*LinkMonitor) DeepCopyInto added in v0.3.0

func (in *LinkMonitor) DeepCopyInto(out *LinkMonitor)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*LinkMonitor) DeepCopyObject added in v0.3.0

func (in *LinkMonitor) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type LinkMonitorList added in v0.3.0

type LinkMonitorList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []LinkMonitor `json:"items"`
}

LinkMonitorList is a list of LinkMonitor resources

func (*LinkMonitorList) DeepCopy added in v0.3.0

func (in *LinkMonitorList) DeepCopy() *LinkMonitorList

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

func (*LinkMonitorList) DeepCopyInto added in v0.3.0

func (in *LinkMonitorList) DeepCopyInto(out *LinkMonitorList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*LinkMonitorList) DeepCopyObject added in v0.3.0

func (in *LinkMonitorList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type LinkMonitorSpec added in v0.3.0

type LinkMonitorSpec struct {
	NodeSelector map[string]string `json:"nodeSelector,omitempty"`
	// +optional
	TargetLinkRule TargetLinkRule `json:"targetLinkRule,omitempty"`
}

func (*LinkMonitorSpec) DeepCopy added in v0.3.0

func (in *LinkMonitorSpec) DeepCopy() *LinkMonitorSpec

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

func (*LinkMonitorSpec) DeepCopyInto added in v0.3.0

func (in *LinkMonitorSpec) DeepCopyInto(out *LinkMonitorSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type LinkMonitorStatus added in v0.3.0

type LinkMonitorStatus struct {
	// +optional
	Conditions []Condition `json:"conditions,omitempty"`
	// +optional
	LinkStatus map[string][]LinkStatus `json:"linkStatus,omitempty"`
}

func (*LinkMonitorStatus) DeepCopy added in v0.3.0

func (in *LinkMonitorStatus) DeepCopy() *LinkMonitorStatus

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

func (*LinkMonitorStatus) DeepCopyInto added in v0.3.0

func (in *LinkMonitorStatus) DeepCopyInto(out *LinkMonitorStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type LinkState added in v0.3.0

type LinkState string

+kubebuilder:validation:Enum=up;down

const (
	LinkUp   LinkState = "up"
	LinkDown LinkState = "down"
)

type LinkStatus

type LinkStatus struct {
	Name string `json:"name"`
	// +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 LinkState `json:"state,omitempty"`
	// +optional
	MasterIndex int `json:"masterIndex,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 LocalArea added in v0.3.0

type LocalArea struct {
	VID  uint16 `json:"vlanID"`
	CIDR string `json:"cidr,omitempty"`
}

func (*LocalArea) DeepCopy added in v0.3.0

func (in *LocalArea) DeepCopy() *LocalArea

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

func (*LocalArea) DeepCopyInto added in v0.3.0

func (in *LocalArea) DeepCopyInto(out *LocalArea)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TargetLinkRule added in v0.3.0

type TargetLinkRule struct {
	// +optional
	// Support regular expression and empty value means matching all
	TypeRule string `json:"typeRule,omitempty"`
	// +optional
	// Support regular expression and empty value means matching all
	NameRule string `json:"nameRule,omitempty"`
}

func (*TargetLinkRule) DeepCopy added in v0.3.0

func (in *TargetLinkRule) DeepCopy() *TargetLinkRule

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

func (*TargetLinkRule) DeepCopyInto added in v0.3.0

func (in *TargetLinkRule) DeepCopyInto(out *TargetLinkRule)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Uplink struct {
	NICs []string `json:"nics,omitempty"`
	// +optional
	LinkAttrs *LinkAttrs `json:"linkAttributes,omitempty"`
	// +optional
	BondOptions *BondOptions `json:"bondOptions,omitempty"`
}

func (*Uplink) DeepCopy added in v0.3.0

func (in *Uplink) DeepCopy() *Uplink

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

func (*Uplink) DeepCopyInto added in v0.3.0

func (in *Uplink) DeepCopyInto(out *Uplink)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type VlStatus added in v0.3.0

type VlStatus struct {
	ClusterNetwork string `json:"clusterNetwork"`

	VlanConfig string `json:"vlanConfig"`

	LinkMonitor string `json:"linkMonitor"`

	Node string `json:"node"`
	// +optional
	LocalAreas []LocalArea `json:"localAreas,omitempty"`
	// +optional
	Conditions []Condition `json:"conditions,omitempty"`
}

func (*VlStatus) DeepCopy added in v0.3.0

func (in *VlStatus) DeepCopy() *VlStatus

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

func (*VlStatus) DeepCopyInto added in v0.3.0

func (in *VlStatus) DeepCopyInto(out *VlStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type VlanConfig added in v0.3.0

type VlanConfig struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              VlanConfigSpec `json:"spec"`
}

func NewVlanConfig added in v0.3.0

func NewVlanConfig(namespace, name string, obj VlanConfig) *VlanConfig

func (*VlanConfig) DeepCopy added in v0.3.0

func (in *VlanConfig) DeepCopy() *VlanConfig

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

func (*VlanConfig) DeepCopyInto added in v0.3.0

func (in *VlanConfig) DeepCopyInto(out *VlanConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*VlanConfig) DeepCopyObject added in v0.3.0

func (in *VlanConfig) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type VlanConfigList added in v0.3.0

type VlanConfigList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []VlanConfig `json:"items"`
}

VlanConfigList is a list of VlanConfig resources

func (*VlanConfigList) DeepCopy added in v0.3.0

func (in *VlanConfigList) DeepCopy() *VlanConfigList

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

func (*VlanConfigList) DeepCopyInto added in v0.3.0

func (in *VlanConfigList) DeepCopyInto(out *VlanConfigList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*VlanConfigList) DeepCopyObject added in v0.3.0

func (in *VlanConfigList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type VlanConfigSpec added in v0.3.0

type VlanConfigSpec struct {
	// +optional
	Description    string            `json:"description,omitempty"`
	ClusterNetwork string            `json:"clusterNetwork"`
	NodeSelector   map[string]string `json:"nodeSelector,omitempty"`
	Uplink         Uplink            `json:"uplink"`
}

func (*VlanConfigSpec) DeepCopy added in v0.3.0

func (in *VlanConfigSpec) DeepCopy() *VlanConfigSpec

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

func (*VlanConfigSpec) DeepCopyInto added in v0.3.0

func (in *VlanConfigSpec) DeepCopyInto(out *VlanConfigSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type VlanStatus added in v0.3.0

type VlanStatus struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Status VlStatus `json:"status"`
}

func NewVlanStatus added in v0.3.0

func NewVlanStatus(namespace, name string, obj VlanStatus) *VlanStatus

func (*VlanStatus) DeepCopy added in v0.3.0

func (in *VlanStatus) DeepCopy() *VlanStatus

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

func (*VlanStatus) DeepCopyInto added in v0.3.0

func (in *VlanStatus) DeepCopyInto(out *VlanStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*VlanStatus) DeepCopyObject added in v0.3.0

func (in *VlanStatus) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type VlanStatusList added in v0.3.0

type VlanStatusList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []VlanStatus `json:"items"`
}

VlanStatusList is a list of VlanStatus resources

func (*VlanStatusList) DeepCopy added in v0.3.0

func (in *VlanStatusList) DeepCopy() *VlanStatusList

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

func (*VlanStatusList) DeepCopyInto added in v0.3.0

func (in *VlanStatusList) DeepCopyInto(out *VlanStatusList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*VlanStatusList) DeepCopyObject added in v0.3.0

func (in *VlanStatusList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

Jump to

Keyboard shortcuts

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