v1alpha1

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1alpha1 is the v1alpha1 version of the API.

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeBuilder initializes a scheme builder
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	// AddToScheme is a global function that registers this API group & version to a scheme
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: egpuController.GroupName, Version: "v1alpha1"}

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 EGPU

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

	Spec   EGPUSpec   `json:"spec"`
	Status EGPUStatus `json:"status"`
}

EGPU is a specification for a EGPU resource

func (*EGPU) DeepCopy

func (in *EGPU) DeepCopy() *EGPU

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

func (*EGPU) DeepCopyInto

func (in *EGPU) DeepCopyInto(out *EGPU)

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

func (*EGPU) DeepCopyObject

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

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

type EGPUCapacity

type EGPUCapacity struct {
	QGPUCore   string `json:"QGPUCore"`
	QGPUMemory string `json:"QGPUMemory"`
}

func (*EGPUCapacity) DeepCopy

func (in *EGPUCapacity) DeepCopy() *EGPUCapacity

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

func (*EGPUCapacity) DeepCopyInto

func (in *EGPUCapacity) DeepCopyInto(out *EGPUCapacity)

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

type EGPUList

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

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

EGPUList is a list of EGPU resources

func (*EGPUList) DeepCopy

func (in *EGPUList) DeepCopy() *EGPUList

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

func (*EGPUList) DeepCopyInto

func (in *EGPUList) DeepCopyInto(out *EGPUList)

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

func (*EGPUList) DeepCopyObject

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

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

type EGPUResource

type EGPUResource struct {
	Capacity EGPUCapacity `json:"capacity"`
}

func (*EGPUResource) DeepCopy

func (in *EGPUResource) DeepCopy() *EGPUResource

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

func (*EGPUResource) DeepCopyInto

func (in *EGPUResource) DeepCopyInto(out *EGPUResource)

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

type EGPUSpec

type EGPUSpec struct {
	NodeName  string       `json:"nodeName"`
	GPU       []string     `json:"gpu"`
	Resources EGPUResource `json:"resources"`
}

EGPUSpec is the spec for a EGPU resource

func (*EGPUSpec) DeepCopy

func (in *EGPUSpec) DeepCopy() *EGPUSpec

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

func (*EGPUSpec) DeepCopyInto

func (in *EGPUSpec) DeepCopyInto(out *EGPUSpec)

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

type EGPUStatus

type EGPUStatus struct {
	AvailableReplicas int32 `json:"availableReplicas"`
}

EGPUStatus is the status for a EGPU resource

func (*EGPUStatus) DeepCopy

func (in *EGPUStatus) DeepCopy() *EGPUStatus

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

func (*EGPUStatus) DeepCopyInto

func (in *EGPUStatus) DeepCopyInto(out *EGPUStatus)

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