Documentation ¶
Index ¶
Constants ¶
const ( // kubeshare constants ResourceNVIDIAGPU = "nvidia.com/gpu" )
Variables ¶
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 )
var SchemeGroupVersion = schema.GroupVersion{Group: "kubeshare.nthu", Version: "v1"}
Functions ¶
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.ObjectMeta `json:"metadata,omitempty"` Status SharePodStatus `json:"status,omitempty"` Spec corev1.PodSpec `json:"spec,omitempty"` }
func (*SharePod) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SharePod.
func (*SharePod) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SharePod) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SharePodList ¶
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*/ Replicas uint64 `json:"replicas, omitempty"` }
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.
type SharepodUsage ¶
type SharepodUsage struct {}