v1

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package v1 contains API Schema definitions for the resources.scheduler v1 API group +kubebuilder:object:generate=true +groupName=resources.scheduler.caden2016.github.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "resources.scheduler.caden2016.github.io", 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
)
View Source
var SchemeGroupVersion = GroupVersion

Functions

func Kind

func Kind(kind string) schema.GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Types

type ContainerResourcesDetail

type ContainerResourcesDetail struct {
	Name       string                `json:"container_name,omitempty"`
	DeviceInfo []*jsonstruct.GpuInfo `json:"device_info,omitempty"`
}

func (*ContainerResourcesDetail) DeepCopy

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

func (*ContainerResourcesDetail) DeepCopyInto

func (in *ContainerResourcesDetail) DeepCopyInto(out *ContainerResourcesDetail)

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

type GpuPod

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

	Spec   GpuPodSpec   `json:"spec,omitempty"`
	Status GpuPodStatus `json:"status,omitempty"`
}

GpuPod is the Schema for the gpupods API

func (*GpuPod) DeepCopy

func (in *GpuPod) DeepCopy() *GpuPod

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

func (*GpuPod) DeepCopyInto

func (in *GpuPod) DeepCopyInto(out *GpuPod)

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

func (*GpuPod) DeepCopyObject

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

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

type GpuPodList

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

GpuPodList contains a list of GpuPod

func (*GpuPodList) DeepCopy

func (in *GpuPodList) DeepCopy() *GpuPodList

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

func (*GpuPodList) DeepCopyInto

func (in *GpuPodList) DeepCopyInto(out *GpuPodList)

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

func (*GpuPodList) DeepCopyObject

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

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

type GpuPodSpec

type GpuPodSpec struct {
	Name      string `json:"pod_name,omitempty"`
	Namespace string `json:"pod_namespace,omitempty"`
	NodeName  string `json:"node_name,omitempty"`
	// ContainerDevices is list of container name and gpu devices in each container.
	ContainerDevices []ContainerResourcesDetail `json:"containers_device,omitempty"`
}

GpuPodSpec defines the desired state of GpuPod

func (*GpuPodSpec) DeepCopy

func (in *GpuPodSpec) DeepCopy() *GpuPodSpec

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

func (*GpuPodSpec) DeepCopyInto

func (in *GpuPodSpec) DeepCopyInto(out *GpuPodSpec)

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

type GpuPodStatus

type GpuPodStatus struct {
	LastChangedTime string `json:"last_changed_time,omitempty"`
}

GpuPodStatus defines the observed state of GpuPod

func (*GpuPodStatus) DeepCopy

func (in *GpuPodStatus) DeepCopy() *GpuPodStatus

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

func (*GpuPodStatus) DeepCopyInto

func (in *GpuPodStatus) DeepCopyInto(out *GpuPodStatus)

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