mesosdriver

package
v1.29.0-alpha.134 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: MIT Imports: 29 Imported by: 0

Documentation

Overview

Package mesosdriver xxx

Index

Constants

View Source
const (
	// Module tunnel module
	Module = "BCS-API-Tunnel-Module"
	// RegisterToken token information key
	RegisterToken = "BCS-API-Tunnel-Token"
	// Params for ws tunnel
	Params = "BCS-API-Tunnel-Params"
	// Cluster ID for ws tunnel
	Cluster = "BCS-API-Tunnel-ClusterId"
	// ModuleName definition
	ModuleName = "mesosdriver"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MesosDriver

type MesosDriver struct {
	CurrScheduler string
	// contains filtered or unexported fields
}

MesosDriver is data struct of mesos driver

func NewMesosDriverServer

func NewMesosDriverServer(conf *config.MesosDriverConfig) (*MesosDriver, error)

NewMesosDriverServer create mesosdriver according config

func (*MesosDriver) DiscvScheduler

func (m *MesosDriver) DiscvScheduler()

DiscvScheduler discovery scheduler master

func (*MesosDriver) Filter

func (m *MesosDriver) Filter(req *restful.Request, resp *restful.Response, filterChain *restful.FilterChain)

Filter filte request not belong to local cluster

func (*MesosDriver) IsHealthy

func (m *MesosDriver) IsHealthy() (bool, string)

IsHealthy healthy interface for bcs-health(deprecated)

func (*MesosDriver) RegDiscover

func (m *MesosDriver) RegDiscover()

RegDiscover register local service information

func (*MesosDriver) RunMetric

func (m *MesosDriver) RunMetric()

RunMetric run metric feaature deprecated, change to promethus collector

func (*MesosDriver) Start

func (m *MesosDriver) Start() error

Start start mesosdriver

func (*MesosDriver) Stop

func (m *MesosDriver) Stop() error

Stop driver stop

Directories

Path Synopsis
webconsole
Package webconsole xxx
Package webconsole xxx
Package config xxx
Package config xxx
Package filter xxx
Package filter xxx

Jump to

Keyboard shortcuts

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