endpoints

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: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RetainNamespace = "RETAIN_NAMESPACE"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPEndpoints

type HTTPEndpoints struct {
	ServiceGroupImpl servicegroup.ServiceGroup

	Job job.Job

	ClusterinfoImpl clusterinfo.ClusterInfo

	Cap cap.Cap
	// contains filtered or unexported fields
}

func NewHTTPEndpoints

func NewHTTPEndpoints(
	volume volume.Volume,
	servicegroup servicegroup.ServiceGroup,
	cluster cluster.Cluster,
	job job.Job,
	labelManager labelmanager.LabelManager,
	instanceinfo instanceinfo.InstanceInfo,
	clusterinfo clusterinfo.ClusterInfo,
	componentinfo instanceinfo.ComponentInfo,
	resourceinfo resourceinfo.ResourceInfo,
	cap cap.Cap,
	clusterSvc clusterpb.ClusterServiceServer) *HTTPEndpoints

func (*HTTPEndpoints) CapacityInfo

func (h *HTTPEndpoints) CapacityInfo(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

func (*HTTPEndpoints) ClusterHook

func (h *HTTPEndpoints) ClusterHook(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

func (*HTTPEndpoints) ClusterInfo

func (h *HTTPEndpoints) ClusterInfo(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

ClusterInfo 获取集群信息

func (*HTTPEndpoints) DeleteJobs

func (h *HTTPEndpoints) DeleteJobs(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

batch Delete Jobs will set retainNamespace is false so that the namespace will be deleted when the job count is zero

func (*HTTPEndpoints) InstanceInfo

func (h *HTTPEndpoints) InstanceInfo(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

func (*HTTPEndpoints) JobCreate

func (h *HTTPEndpoints) JobCreate(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

func (*HTTPEndpoints) JobDelete

func (h *HTTPEndpoints) JobDelete(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

func (*HTTPEndpoints) JobInspect

func (h *HTTPEndpoints) JobInspect(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

func (*HTTPEndpoints) JobStart

func (h *HTTPEndpoints) JobStart(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

func (*HTTPEndpoints) JobStop

func (h *HTTPEndpoints) JobStop(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

func (*HTTPEndpoints) LabelList

func (h *HTTPEndpoints) LabelList(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

func (*HTTPEndpoints) ResourceInfo

func (h *HTTPEndpoints) ResourceInfo(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

func (*HTTPEndpoints) ServiceGroupConfigUpdate

func (h *HTTPEndpoints) ServiceGroupConfigUpdate(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

func (*HTTPEndpoints) ServiceGroupCreate

func (h *HTTPEndpoints) ServiceGroupCreate(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

func (*HTTPEndpoints) ServiceGroupDelete

func (h *HTTPEndpoints) ServiceGroupDelete(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

func (*HTTPEndpoints) ServiceGroupInfo

func (h *HTTPEndpoints) ServiceGroupInfo(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

func (*HTTPEndpoints) ServiceGroupKillPod

func (h *HTTPEndpoints) ServiceGroupKillPod(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

func (*HTTPEndpoints) ServiceGroupPrecheck

func (h *HTTPEndpoints) ServiceGroupPrecheck(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

func (*HTTPEndpoints) SetNodeLabels

func (h *HTTPEndpoints) SetNodeLabels(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

{"force":false,"tag":"any,workspace-dev,workspace-test,workspace-staging,workspace-prod,job,service-stateful,org-terminus","hosts":["10.168.0.100"]}

func (*HTTPEndpoints) Terminal

func (h *HTTPEndpoints) Terminal(ctx context.Context, w http.ResponseWriter, r *http.Request, vars map[string]string) error

Jump to

Keyboard shortcuts

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