Documentation ¶
Index ¶
Constants ¶
const ( GroupName = "gpu.resource.example.com" Version = "v1alpha1" GpuClaimParametersKind = "GpuClaimParameters" )
Variables ¶
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 )
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 ¶
func (in *DeviceClassParameters) DeepCopy() *DeviceClassParameters
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 ¶
func (in *DeviceClassParametersList) DeepCopy() *DeviceClassParametersList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceClassParametersList.
func (*DeviceClassParametersList) DeepCopyInto ¶
func (in *DeviceClassParametersList) DeepCopyInto(out *DeviceClassParametersList)
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 ¶
func (in *DeviceClassParametersSpec) DeepCopy() *DeviceClassParametersSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceClassParametersSpec.
func (*DeviceClassParametersSpec) DeepCopyInto ¶
func (in *DeviceClassParametersSpec) DeepCopyInto(out *DeviceClassParametersSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DeviceSelector ¶
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 ¶
func (in *GpuClaimParametersList) DeepCopy() *GpuClaimParametersList
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 ¶
func (in *GpuClaimParametersSpec) DeepCopy() *GpuClaimParametersSpec
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.