v1alpha1

package
v0.0.0-...-65ce120 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GroupName = "gpu.resource.example.com"
	Version   = "v1alpha1"

	GpuClaimParametersKind = "GpuClaimParameters"
)

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:   GroupName,
	Version: Version,
}

SchemeGroupVersion is group version used to register these objects..

Functions

func Resource

func Resource(resource string) schema.GroupResource

Types

type DeviceClassParameters

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

	Spec DeviceClassParametersSpec `json:"spec,omitempty"`
}

DeviceClassParameters holds the set of parameters provided when creating a resource class for this driver.

func (*DeviceClassParameters) DeepCopy

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

func (*DeviceClassParameters) DeepCopyInto

func (in *DeviceClassParameters) DeepCopyInto(out *DeviceClassParameters)

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

func (*DeviceClassParameters) DeepCopyObject

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

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

type DeviceClassParametersList

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

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

DeviceClassParametersList represents the "plural" of a DeviceClassParameters CRD object.

func (*DeviceClassParametersList) DeepCopy

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

func (*DeviceClassParametersList) DeepCopyInto

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

func (*DeviceClassParametersList) DeepCopyObject

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

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

type DeviceClassParametersSpec

type DeviceClassParametersSpec struct {
	DeviceSelector []DeviceSelector `json:"deviceSelector,omitempty"`
}

DeviceClassParametersSpec is the spec for the DeviceClassParametersSpec CRD.

func DefaultDeviceClassParametersSpec

func DefaultDeviceClassParametersSpec() *DeviceClassParametersSpec

func (*DeviceClassParametersSpec) DeepCopy

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

func (*DeviceClassParametersSpec) DeepCopyInto

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

type DeviceSelector

type DeviceSelector struct {
	Type string `json:"type"`
	Name string `json:"name"`
}

DeviceSelector allows one to match on a specific type of Device as part of the class.

func (*DeviceSelector) DeepCopy

func (in *DeviceSelector) DeepCopy() *DeviceSelector

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

func (*DeviceSelector) DeepCopyInto

func (in *DeviceSelector) DeepCopyInto(out *DeviceSelector)

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

type GpuClaimParameters

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

	Spec GpuClaimParametersSpec `json:"spec,omitempty"`
}

GpuClaimParameters holds the set of parameters provided when creating a resource claim for a GPU.

func (*GpuClaimParameters) DeepCopy

func (in *GpuClaimParameters) DeepCopy() *GpuClaimParameters

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

func (*GpuClaimParameters) DeepCopyInto

func (in *GpuClaimParameters) DeepCopyInto(out *GpuClaimParameters)

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

func (*GpuClaimParameters) DeepCopyObject

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

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

type GpuClaimParametersList

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

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

GpuClaimParametersList represents the "plural" of a GpuClaimParameters CRD object.

func (*GpuClaimParametersList) DeepCopy

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

func (*GpuClaimParametersList) DeepCopyInto

func (in *GpuClaimParametersList) DeepCopyInto(out *GpuClaimParametersList)

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

func (*GpuClaimParametersList) DeepCopyObject

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

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

type GpuClaimParametersSpec

type GpuClaimParametersSpec struct {
	Count int `json:"count,omitempty"`
}

GpuClaimParametersSpec is the spec for the GpuClaimParameters CRD.

func DefaultGpuClaimParametersSpec

func DefaultGpuClaimParametersSpec() *GpuClaimParametersSpec

func (*GpuClaimParametersSpec) DeepCopy

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

func (*GpuClaimParametersSpec) DeepCopyInto

func (in *GpuClaimParametersSpec) DeepCopyInto(out *GpuClaimParametersSpec)

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