bcs

package
v1.20.11 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2021 License: MIT Imports: 22 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCluster

func NewCluster(clusterID string, hosts []string) (discovery.Cluster, error)

NewCluster create cluster for bk-bcs scheduler

func ServiceObjectKeyFn

func ServiceObjectKeyFn(obj interface{}) (string, error)

ServiceObjectKeyFn create key for ServiceObject

func ServiceObjectNewFn

func ServiceObjectNewFn() meta.Object

ServiceObjectNewFn create new Service Object

func TaskGroupObjectKeyFn

func TaskGroupObjectKeyFn(obj interface{}) (string, error)

TaskGroupObjectKeyFn create key for taskgroup

func TaskGroupObjectNewFn

func TaskGroupObjectNewFn() meta.Object

TaskGroupObjectNewFn create new Service Object

Types

type TaskGroup

type TaskGroup struct {
	schetypes.TaskGroup `json:",inline"`
}

TaskGroup adaptor for bcs-scheduler TaskGroup to object data

func (*TaskGroup) GetAnnotations

func (om *TaskGroup) GetAnnotations() map[string]string

GetAnnotations for ObjectMeta

func (*TaskGroup) GetClusterName

func (om *TaskGroup) GetClusterName() string

GetClusterName get cluster name

func (*TaskGroup) GetCreationTimestamp

func (om *TaskGroup) GetCreationTimestamp() time.Time

GetCreationTimestamp get create timestamp

func (*TaskGroup) GetLabels

func (om *TaskGroup) GetLabels() map[string]string

GetLabels for ObjectMeta

func (*TaskGroup) GetName

func (om *TaskGroup) GetName() string

GetName for ObjectMeta

func (*TaskGroup) GetNamespace

func (om *TaskGroup) GetNamespace() string

GetNamespace for ObjectMeta

func (*TaskGroup) SetAnnotations

func (om *TaskGroup) SetAnnotations(annotation map[string]string)

SetAnnotations get annotation name

func (*TaskGroup) SetClusterName

func (om *TaskGroup) SetClusterName(clusterName string)

SetClusterName set cluster name

func (*TaskGroup) SetCreationTimestamp

func (om *TaskGroup) SetCreationTimestamp(timestamp time.Time)

SetCreationTimestamp set creat timestamp

func (*TaskGroup) SetLabels

func (om *TaskGroup) SetLabels(labels map[string]string)

SetLabels set objec labels

func (*TaskGroup) SetName

func (om *TaskGroup) SetName(name string)

SetName set object name

func (*TaskGroup) SetNamespace

func (om *TaskGroup) SetNamespace(ns string)

SetNamespace set object namespace

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL