v1

package
v0.0.0-...-0490a85 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2021 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "fpga.intel.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 FortvilleMAC

type FortvilleMAC struct {
	// +kubebuilder:validation:Pattern=`^[a-f0-9]{2}:[a-f0-9]{2}:[a-f0-9]{2}:[a-f0-9]{2}:[a-f0-9]{2}:[a-f0-9]{2}$`
	MAC string `json:"MAC"`
}

func (*FortvilleMAC) DeepCopy

func (in *FortvilleMAC) DeepCopy() *FortvilleMAC

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

func (*FortvilleMAC) DeepCopyInto

func (in *FortvilleMAC) DeepCopyInto(out *FortvilleMAC)

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

type FortvilleStatus

type FortvilleStatus struct {
	Name    string `json:"name,omitempty"`
	PciAddr string `json:"PCIAddr,omitempty"`
	Version string `json:"NVMVersion,omitempty"`
	MAC     string `json:"MAC,omitempty"`
}

func (*FortvilleStatus) DeepCopy

func (in *FortvilleStatus) DeepCopy() *FortvilleStatus

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

func (*FortvilleStatus) DeepCopyInto

func (in *FortvilleStatus) DeepCopyInto(out *FortvilleStatus)

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

type N3000Cluster

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

	Spec   N3000ClusterSpec   `json:"spec,omitempty"`
	Status N3000ClusterStatus `json:"status,omitempty"`
}

N3000Cluster is the Schema for the n3000clusters API +operator-sdk:csv:customresourcedefinitions:displayName="N3000Cluster",resources={{N3000Node,v1,node}}

func (*N3000Cluster) DeepCopy

func (in *N3000Cluster) DeepCopy() *N3000Cluster

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

func (*N3000Cluster) DeepCopyInto

func (in *N3000Cluster) DeepCopyInto(out *N3000Cluster)

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

func (*N3000Cluster) DeepCopyObject

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

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

type N3000ClusterList

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

N3000ClusterList contains a list of N3000Cluster

func (*N3000ClusterList) DeepCopy

func (in *N3000ClusterList) DeepCopy() *N3000ClusterList

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

func (*N3000ClusterList) DeepCopyInto

func (in *N3000ClusterList) DeepCopyInto(out *N3000ClusterList)

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

func (*N3000ClusterList) DeepCopyObject

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

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

type N3000ClusterNode

type N3000ClusterNode struct {
	// +kubebuilder:validation:Pattern=[a-z0-9\.\-]+
	NodeName  string          `json:"nodeName"`
	FPGA      []N3000Fpga     `json:"fpga,omitempty"`
	Fortville *N3000Fortville `json:"fortville,omitempty"`
}

func (*N3000ClusterNode) DeepCopy

func (in *N3000ClusterNode) DeepCopy() *N3000ClusterNode

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

func (*N3000ClusterNode) DeepCopyInto

func (in *N3000ClusterNode) DeepCopyInto(out *N3000ClusterNode)

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

type N3000ClusterSpec

type N3000ClusterSpec struct {
	// List of the nodes with their devices to be updated
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	Nodes     []N3000ClusterNode `json:"nodes"`
	DryRun    bool               `json:"dryrun,omitempty"`
	DrainSkip bool               `json:"drainSkip,omitempty"`
}

N3000ClusterSpec defines the desired state of N3000Cluster

func (*N3000ClusterSpec) DeepCopy

func (in *N3000ClusterSpec) DeepCopy() *N3000ClusterSpec

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

func (*N3000ClusterSpec) DeepCopyInto

func (in *N3000ClusterSpec) DeepCopyInto(out *N3000ClusterSpec)

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

type N3000ClusterStatus

type N3000ClusterStatus struct {
	// Indicates the synchronization status of the CR
	// +operator-sdk:csv:customresourcedefinitions:type=status
	SyncStatus    SyncStatus `json:"syncStatus,omitempty"`
	LastSyncError string     `json:"lastSyncError,omitempty"`
}

N3000ClusterStatus defines the observed state of N3000Cluster

func (*N3000ClusterStatus) DeepCopy

func (in *N3000ClusterStatus) DeepCopy() *N3000ClusterStatus

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

func (*N3000ClusterStatus) DeepCopyInto

func (in *N3000ClusterStatus) DeepCopyInto(out *N3000ClusterStatus)

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

type N3000Fortville

type N3000Fortville struct {
	// +kubebuilder:validation:Pattern=[a-zA-Z0-9\.\-\/]+
	FirmwareURL string         `json:"firmwareURL"`
	MACs        []FortvilleMAC `json:"MACs"`
	// MD5 checksum verified against calculated one from downloaded nvmupdate package. Optional.
	// +kubebuilder:validation:Pattern=`^[a-fA-F0-9]{32}$`
	CheckSum string `json:"checksum,omitempty"`
}

func (*N3000Fortville) DeepCopy

func (in *N3000Fortville) DeepCopy() *N3000Fortville

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

func (*N3000Fortville) DeepCopyInto

func (in *N3000Fortville) DeepCopyInto(out *N3000Fortville)

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

type N3000FortvilleStatus

type N3000FortvilleStatus struct {
	N3000PCI string            `json:"N3000PCI,omitempty"`
	NICs     []FortvilleStatus `json:"NICs,omitempty"`
}

func (*N3000FortvilleStatus) DeepCopy

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

func (*N3000FortvilleStatus) DeepCopyInto

func (in *N3000FortvilleStatus) DeepCopyInto(out *N3000FortvilleStatus)

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

type N3000FortvilleStatusModules

type N3000FortvilleStatusModules struct {
	Type    string `json:"type,omitempty"`
	Version string `json:"version,omitempty"`
}

func (*N3000FortvilleStatusModules) DeepCopy

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

func (*N3000FortvilleStatusModules) DeepCopyInto

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

type N3000Fpga

type N3000Fpga struct {
	// +kubebuilder:validation:Pattern=[a-zA-Z0-9\.\-\/]+
	UserImageURL string `json:"userImageURL"`
	// +kubebuilder:validation:Pattern=`^[a-fA-F0-9]{4}:[a-fA-F0-9]{2}:[01][a-fA-F0-9]\.[0-7]$`
	PCIAddr string `json:"PCIAddr"`
	// MD5 checksum verified against calculated one from downloaded user image. Optional.
	// +kubebuilder:validation:Pattern=`^[a-fA-F0-9]{32}$`
	CheckSum string `json:"checksum,omitempty"`
}

func (*N3000Fpga) DeepCopy

func (in *N3000Fpga) DeepCopy() *N3000Fpga

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

func (*N3000Fpga) DeepCopyInto

func (in *N3000Fpga) DeepCopyInto(out *N3000Fpga)

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

type N3000FpgaStatus

type N3000FpgaStatus struct {
	PciAddr          string `json:"PCIAddr,omitempty"`
	DeviceID         string `json:"deviceId,omitempty"`
	BitstreamID      string `json:"bitstreamId,omitempty"`
	BitstreamVersion string `json:"bitstreamVersion,omitempty"`
	BootPage         string `json:"bootPage,omitempty"`
	NumaNode         int    `json:"numaNode,omitempty"`
}

func (*N3000FpgaStatus) DeepCopy

func (in *N3000FpgaStatus) DeepCopy() *N3000FpgaStatus

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

func (*N3000FpgaStatus) DeepCopyInto

func (in *N3000FpgaStatus) DeepCopyInto(out *N3000FpgaStatus)

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

type N3000Node

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

	Spec   N3000NodeSpec   `json:"spec,omitempty"`
	Status N3000NodeStatus `json:"status,omitempty"`
}

N3000Node is the Schema for the n3000nodes API +operator-sdk:csv:customresourcedefinitions:displayName="N3000Node",resources={{N3000Node,v1,node}}

func (*N3000Node) DeepCopy

func (in *N3000Node) DeepCopy() *N3000Node

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

func (*N3000Node) DeepCopyInto

func (in *N3000Node) DeepCopyInto(out *N3000Node)

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

func (*N3000Node) DeepCopyObject

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

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

type N3000NodeList

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

N3000NodeList contains a list of N3000Node

func (*N3000NodeList) DeepCopy

func (in *N3000NodeList) DeepCopy() *N3000NodeList

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

func (*N3000NodeList) DeepCopyInto

func (in *N3000NodeList) DeepCopyInto(out *N3000NodeList)

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

func (*N3000NodeList) DeepCopyObject

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

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

type N3000NodeSpec

type N3000NodeSpec struct {
	// FPGA devices to be updated
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	FPGA []N3000Fpga `json:"fpga,omitempty"`
	// Fortville devices to be updated
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	Fortville *N3000Fortville `json:"fortville,omitempty"`
	DryRun    bool            `json:"dryRun,omitempty"`
	// Allows for updating devices without draining the node
	DrainSkip bool `json:"drainSkip,omitempty"`
}

N3000NodeSpec defines the desired state of N3000Node

func (*N3000NodeSpec) DeepCopy

func (in *N3000NodeSpec) DeepCopy() *N3000NodeSpec

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

func (*N3000NodeSpec) DeepCopyInto

func (in *N3000NodeSpec) DeepCopyInto(out *N3000NodeSpec)

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

type N3000NodeStatus

type N3000NodeStatus struct {
	// Provides information about device update status
	Conditions []metav1.Condition `json:"conditions,omitempty"`
	// Provides information about FPGA inventory on the node
	// +operator-sdk:csv:customresourcedefinitions:type=status
	FPGA []N3000FpgaStatus `json:"fpga,omitempty"`
	// Provides information about N3000 Fortville invetory on the node
	// +operator-sdk:csv:customresourcedefinitions:type=status
	Fortville []N3000FortvilleStatus `json:"fortville,omitempty"`
}

N3000NodeStatus defines the observed state of N3000Node

func (*N3000NodeStatus) DeepCopy

func (in *N3000NodeStatus) DeepCopy() *N3000NodeStatus

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

func (*N3000NodeStatus) DeepCopyInto

func (in *N3000NodeStatus) DeepCopyInto(out *N3000NodeStatus)

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

type SyncStatus

type SyncStatus string
var (
	// InProgressSync indicates that the synchronization of the CR is in progress
	InProgressSync SyncStatus = "InProgress"
	// SucceededSync indicates that the synchronization of the CR succeeded
	SucceededSync SyncStatus = "Succeeded"
	// FailedSync indicates that the synchronization of the CR failed
	FailedSync SyncStatus = "Failed"
	// IgnoredSync indicates that the CR is ignored
	IgnoredSync SyncStatus = "Ignored"
)

Jump to

Keyboard shortcuts

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