Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Codecs = serializer.NewCodecFactory(Scheme)
View Source
var ParameterCodec = runtime.NewParameterCodec(Scheme)
View Source
var Scheme = runtime.NewScheme()
Scheme the schme
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: "carbon.taobao.com", Version: "v1"}
SchemeGroupVersion the group & version
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type HealthCondition ¶
type HealthCondition struct { Success bool `json:"success"` Metas map[string]string `json:"metas" until:"1.0.0"` }
HealthCondition holds the health checking result.
type WorkerNode ¶
type WorkerNode struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Nick string `json:"nick"` Age int `json:"age"` Kvs map[string]string `json:"kvs,omitempty"` Status WorkerNodeStatus `json:"status"` }
WorkerNode sample object spec.
func (*WorkerNode) DeepCopyObject ¶
func (in *WorkerNode) DeepCopyObject() runtime.Object
DeepCopyObject deep copy
type WorkerNodeList ¶
type WorkerNodeList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []WorkerNode `json:"items"` }
WorkerNodeList list object for WorkerNode.
func (*WorkerNodeList) DeepCopyObject ¶
func (in *WorkerNodeList) DeepCopyObject() runtime.Object
DeepCopyObject deep copy
type WorkerNodeStatus ¶
type WorkerNodeStatus struct { Health HealthCondition `json:"health"` EntityName string `json:"entityName"` }
WorkerNodeStatus the status for the worker.
Click to show internal directories.
Click to hide internal directories.