scheduler

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Overview

TODO: refactor me, 把这个文件中的所有逻辑都去掉,只有 http 处理和 检查 参数合法性

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDCOSTokenAuthPeriodically

func GetDCOSTokenAuthPeriodically()

call this in form of goroutine

Types

type HTTPResponse

type HTTPResponse = httpserver.HTTPResponse

type Responser

type Responser = httpserver.Responser

type Scheduler

type Scheduler struct {
	Httpendpoints *endpoints.HTTPEndpoints
	// contains filtered or unexported fields
}

func NewScheduler

func NewScheduler(instanceinfoImpl instanceinfo.InstanceInfo, clusterSvc clusterpb.ClusterServiceServer) *Scheduler

NewSched, p.ClusterSvc, p.ClusterSvculer creates a scheduler instance, it be used to handle servicegroup create/update/delete actions.

func (*Scheduler) CancelServiceGroup

func (s *Scheduler) CancelServiceGroup(namespace, name string) (interface{}, error)

func (*Scheduler) EpGetRuntimeStatus

func (s *Scheduler) EpGetRuntimeStatus(ctx context.Context, vars map[string]string) (*apistructs.MultiLevelStatus, error)

Directories

Path Synopsis
plugins/k8s
Package k8s implements managing the servicegroup by k8s cluster
Package k8s implements managing the servicegroup by k8s cluster
plugins/k8s/addon/canal/v1
Package v1 contains API Schema definitions for the database v1 API group +kubebuilder:object:generate=true +groupName=database.erda.cloud
Package v1 contains API Schema definitions for the database v1 API group +kubebuilder:object:generate=true +groupName=database.erda.cloud
plugins/k8s/addon/mysql/v1
Package v1 contains API Schema definitions for the database v1 API group +kubebuilder:object:generate=true +groupName=database.erda.cloud
Package v1 contains API Schema definitions for the database v1 API group +kubebuilder:object:generate=true +groupName=database.erda.cloud
plugins/k8s/addon/sourcecov/mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
plugins/k8s/configmap
Package configmap manipulates the k8s api of configmap object
Package configmap manipulates the k8s api of configmap object
plugins/k8s/deployment
Package deployment manipulates the k8s api of deployment object
Package deployment manipulates the k8s api of deployment object
plugins/k8s/event
Package event manipulates the k8s api of event object
Package event manipulates the k8s api of event object
plugins/k8s/job
Package deployment manipulates the k8s api of deployment object
Package deployment manipulates the k8s api of deployment object
plugins/k8s/k8sapi
Package k8sapi contains necessary k8s types and objects
Package k8sapi contains necessary k8s types and objects
plugins/k8s/k8serror
Package k8serror encapsulates error of k8s object
Package k8serror encapsulates error of k8s object
plugins/k8s/k8sservice
Package k8sservice manipulates the k8s api of service object
Package k8sservice manipulates the k8s api of service object
plugins/k8s/namespace
Package namespace manipulates the k8s api of namespace object
Package namespace manipulates the k8s api of namespace object
plugins/k8s/persistentvolume
Package persistentvolume manipulates the k8s api of persistentvolume object
Package persistentvolume manipulates the k8s api of persistentvolume object
plugins/k8s/persistentvolumeclaim
Package persistentvolumeclaim manipulates the k8s api of persistentvolumeclaim object
Package persistentvolumeclaim manipulates the k8s api of persistentvolumeclaim object
plugins/k8s/pod
Package pod manipulates the k8s api of pod object
Package pod manipulates the k8s api of pod object
plugins/k8s/secret
Package secret manipulates the k8s api of secret object
Package secret manipulates the k8s api of secret object
plugins/k8s/serviceaccount
Package serviceaccount manipulates the k8s api of serviceaccount object
Package serviceaccount manipulates the k8s api of serviceaccount object
plugins/k8s/statefulset
Package statefulset manipulates the k8s api of statefulset object
Package statefulset manipulates the k8s api of statefulset object
impl
cap
cluster
Package cluster impl cluster API
Package cluster impl cluster API
cluster/clusterutil
Package clusterutil cluster utils
Package clusterutil cluster utils
job

Jump to

Keyboard shortcuts

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