Documentation
¶
Index ¶
- type Config
- type MesosDriverClient
- func (m *MesosDriverClient) CeateDeployment(clusterid string, deploy []byte) error
- func (m *MesosDriverClient) FetchDeployment(deploy *types.DeployDetection) (interface{}, error)
- func (m *MesosDriverClient) FetchPods(clusterid, ns, name string) ([]byte, error)
- func (m *MesosDriverClient) GetNodes(clusterid string) ([]*types.NodeInfo, error)
- func (m *MesosDriverClient) UpdateAgentExtendedResources(clusterID string, er *commtypes.ExtendedResource) error
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
Click to show internal directories.
Click to hide internal directories.