v1

package
v0.0.0-...-3baa139 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1 contains API Schema definitions for the network v1 API group +kubebuilder:object:generate=true +groupName=network.alibabacloud.com

Index

Constants

View Source
const (
	DeviceStatusPending = "Pending"
	DeviceStatusReady   = "Ready"
	DeviceStatusFailed  = "Failed"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "network.alibabacloud.com", Version: "v1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type DeviceInfo

type DeviceInfo struct {
	InstanceID       string `json:"instanceID,omitempty"`
	MAC              string `json:"mac,omitempty"`
	IsPrimaryENI     bool   `json:"isPrimaryENI,omitempty"`
	ID               string `json:"id,omitempty"`
	NetworkCardIndex int    `json:"networkCardIndex,omitempty"`
	QueuePair        int    `json:"queuePair,omitempty"`
}

type DeviceStatus

type DeviceStatus struct {
	ID      string `json:"id,omitempty"`
	Status  string `json:"status,omitempty"`
	Message string `json:"message,omitempty"`
}

type ERdmaDevice

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

	Spec   ERdmaDeviceSpec   `json:"spec,omitempty"`
	Status ERdmaDeviceStatus `json:"status,omitempty"`
}

ERdmaDevice is the Schema for the erdmadevices API

func (*ERdmaDevice) DeepCopy

func (in *ERdmaDevice) DeepCopy() *ERdmaDevice

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

func (*ERdmaDevice) DeepCopyInto

func (in *ERdmaDevice) DeepCopyInto(out *ERdmaDevice)

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

func (*ERdmaDevice) DeepCopyObject

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

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

type ERdmaDeviceList

type ERdmaDeviceList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ERdmaDevice `json:"items"`
}

ERdmaDeviceList contains a list of ERdmaDevice

func (*ERdmaDeviceList) DeepCopy

func (in *ERdmaDeviceList) DeepCopy() *ERdmaDeviceList

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

func (*ERdmaDeviceList) DeepCopyInto

func (in *ERdmaDeviceList) DeepCopyInto(out *ERdmaDeviceList)

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

func (*ERdmaDeviceList) DeepCopyObject

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

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

type ERdmaDeviceSpec

type ERdmaDeviceSpec struct {

	// Foo is an example field of ERdmaDevice. Edit erdmadevice_types.go to remove/update
	Devices []DeviceInfo `json:"devices"`
}

ERdmaDeviceSpec defines the desired state of ERdmaDevice

func (*ERdmaDeviceSpec) DeepCopy

func (in *ERdmaDeviceSpec) DeepCopy() *ERdmaDeviceSpec

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

func (*ERdmaDeviceSpec) DeepCopyInto

func (in *ERdmaDeviceSpec) DeepCopyInto(out *ERdmaDeviceSpec)

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

type ERdmaDeviceStatus

type ERdmaDeviceStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	Devices []DeviceStatus `json:"devices,omitempty"`
}

ERdmaDeviceStatus defines the observed state of ERdmaDevice

func (*ERdmaDeviceStatus) DeepCopy

func (in *ERdmaDeviceStatus) DeepCopy() *ERdmaDeviceStatus

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

func (*ERdmaDeviceStatus) DeepCopyInto

func (in *ERdmaDeviceStatus) DeepCopyInto(out *ERdmaDeviceStatus)

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