v1beta1

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2021 License: Apache-2.0 Imports: 6 Imported by: 15

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

View Source
const KeyDefaultNIC = "defaultPhysicalNIC"

Variables

View Source
var (
	NodeNetworkReady   condition.Cond = "Ready"
	NodeNetworkRemoved condition.Cond = "Removed"
)
View Source
var (
	ClusterNetworkResourceName = "clusternetworks"
	NodeNetworkResourceName    = "nodenetworks"
)
View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
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 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

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 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 NIC added in v0.1.7

type NIC 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"`
}

func (*NIC) DeepCopy added in v0.1.7

func (in *NIC) DeepCopy() *NIC

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

func (*NIC) DeepCopyInto added in v0.1.7

func (in *NIC) DeepCopyInto(out *NIC)

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

type NetworkID

type NetworkID int

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
	NIC 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
	NICs []NIC `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.

Jump to

Keyboard shortcuts

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