mesosdriver

package
v1.19.1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ZkAddr string
	//http client cert config
	ClientCert *types.CertConfig
}

Config client configuration

type MesosDriverClient

type MesosDriverClient struct {
	// contains filtered or unexported fields
}

MesosDriverClient client for mesosdriver

func NewMesosDriverClient

func NewMesosDriverClient(conf *Config) (*MesosDriverClient, error)

NewMesosDriverClient new MesosDriverClient object

func (*MesosDriverClient) CeateDeployment

func (m *MesosDriverClient) CeateDeployment(clusterid string, deploy []byte) error

CeateDeployment deploy application

func (*MesosDriverClient) FetchDeployment

func (m *MesosDriverClient) FetchDeployment(deploy *types.DeployDetection) (interface{}, error)

FetchDeployment fetch application

func (*MesosDriverClient) FetchPods

func (m *MesosDriverClient) FetchPods(clusterid, ns, name string) ([]byte, error)

FetchPods fetch application't pods

func (*MesosDriverClient) GetNodes

func (m *MesosDriverClient) GetNodes(clusterid string) ([]*types.NodeInfo, error)

GetNodes get cluster all nodes

func (*MesosDriverClient) UpdateAgentExtendedResources

func (m *MesosDriverClient) UpdateAgentExtendedResources(clusterID string, er *commtypes.ExtendedResource) error

UpdateAgentExtendedResources update agent external resources

Jump to

Keyboard shortcuts

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