v1

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 26, 2021 License: Apache-2.0 Imports: 9 Imported by: 9

Documentation

Index

Constants

View Source
const (

	// kubeshare constants
	KubeShareResourceGPURequest = "kubeshare/gpu_request"
	KubeShareResourceGPULimit   = "kubeshare/gpu_limit"
	KubeShareResourceGPUMemory  = "kubeshare/gpu_mem"
	KubeShareResourceGPUID      = "kubeshare/GPUID"
	KubeShareDummyPodName       = "kubeshare-vgpu"
	KubeShareNodeName           = "kubeshare/nodeName"
	KubeShareRole               = "kubeshare/role"
	KubeShareNodeGPUInfo        = "kubeshare/gpu_info"
	ResourceNVIDIAGPU           = "nvidia.com/gpu"
)

Variables

View Source
var (
	// TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api.
	// localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes.
	SchemeBuilder runtime.SchemeBuilder

	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: "kubeshare.nthu", Version: "v1"}

Functions

func NewGPUID

func NewGPUID(n int) string

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type SharePod

type SharePod struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// +optional
	Status SharePodStatus `json:"status,omitempty"`
	// +optional
	Spec corev1.PodSpec `json:"spec,omitempty"`
}

func (*SharePod) DeepCopy

func (in *SharePod) DeepCopy() *SharePod

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

func (*SharePod) DeepCopyInto

func (in *SharePod) DeepCopyInto(out *SharePod)

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

func (*SharePod) DeepCopyObject

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

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

func (SharePod) Print

func (this SharePod) Print()

type SharePodList

type SharePodList struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ListMeta `json:"metadata,omitempty"`

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

TestTypeList is a top-level list type. The client methods for lists are automatically created. You are not supposed to create a separated client for this one.

func (*SharePodList) DeepCopy

func (in *SharePodList) DeepCopy() *SharePodList

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

func (*SharePodList) DeepCopyInto

func (in *SharePodList) DeepCopyInto(out *SharePodList)

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

func (*SharePodList) DeepCopyObject

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

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

type SharePodStatus

type SharePodStatus struct {
	/*PodPhase          corev1.PodPhase
	ConfigFilePhase   ConfigFilePhase
	BoundDeviceID     string
	StartTime         *metav1.Time
	ContainerStatuses []corev1.ContainerStatus*/
	PodStatus      *corev1.PodStatus
	PodObjectMeta  *metav1.ObjectMeta
	BoundDeviceID  string
	PodManagerPort int
}

func (*SharePodStatus) DeepCopy

func (in *SharePodStatus) DeepCopy() *SharePodStatus

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

func (*SharePodStatus) DeepCopyInto

func (in *SharePodStatus) DeepCopyInto(out *SharePodStatus)

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