Documentation ¶
Index ¶
- func NewCluster(clusterID string, hosts []string) (discovery.Cluster, error)
- func ServiceObjectKeyFn(obj interface{}) (string, error)
- func ServiceObjectNewFn() meta.Object
- func TaskGroupObjectKeyFn(obj interface{}) (string, error)
- func TaskGroupObjectNewFn() meta.Object
- type TaskGroup
- func (om *TaskGroup) GetAnnotations() map[string]string
- func (om *TaskGroup) GetClusterName() string
- func (om *TaskGroup) GetCreationTimestamp() time.Time
- func (om *TaskGroup) GetLabels() map[string]string
- func (om *TaskGroup) GetName() string
- func (om *TaskGroup) GetNamespace() string
- func (om *TaskGroup) SetAnnotations(annotation map[string]string)
- func (om *TaskGroup) SetClusterName(clusterName string)
- func (om *TaskGroup) SetCreationTimestamp(timestamp time.Time)
- func (om *TaskGroup) SetLabels(labels map[string]string)
- func (om *TaskGroup) SetName(name string)
- func (om *TaskGroup) SetNamespace(ns string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCluster ¶
NewCluster create cluster for bk-bcs scheduler
func ServiceObjectKeyFn ¶
ServiceObjectKeyFn create key for ServiceObject
func ServiceObjectNewFn ¶
ServiceObjectNewFn create new Service Object
func TaskGroupObjectKeyFn ¶
TaskGroupObjectKeyFn create key for taskgroup
func TaskGroupObjectNewFn ¶
TaskGroupObjectNewFn create new Service Object
Types ¶
type TaskGroup ¶
TaskGroup adaptor for bcs-scheduler TaskGroup to object data
func (*TaskGroup) GetAnnotations ¶
GetAnnotations for ObjectMeta
func (*TaskGroup) GetClusterName ¶
GetClusterName get cluster name
func (*TaskGroup) GetCreationTimestamp ¶
GetCreationTimestamp get create timestamp
func (*TaskGroup) GetNamespace ¶
GetNamespace for ObjectMeta
func (*TaskGroup) SetAnnotations ¶
SetAnnotations get annotation name
func (*TaskGroup) SetClusterName ¶
SetClusterName set cluster name
func (*TaskGroup) SetCreationTimestamp ¶
SetCreationTimestamp set creat timestamp
func (*TaskGroup) SetNamespace ¶
SetNamespace set object namespace
Click to show internal directories.
Click to hide internal directories.