Documentation ¶
Index ¶
- type DeleteAppOpeParam
- type DeleteTaskGroupOpeParam
- type DeleteTaskGroupsOpeParam
- type FetchVersionOpeParam
- type OperateItem
- type RollbackOpeParam
- type ScaleOpeParam
- type Scheduler
- func (s *Scheduler) Actions() []*httpserver.Action
- func (s *Scheduler) CreateAdmissionWebhook(body []byte) (string, error)
- func (s *Scheduler) CreateAdmissionwebhookHandler(req *restful.Request, resp *restful.Response)
- func (s *Scheduler) CreateApplication(body []byte) (string, error)
- func (s *Scheduler) CreateApplicationHandler(req *restful.Request, resp *restful.Response)
- func (s *Scheduler) CreateConfigMap(body []byte) (string, error)
- func (s *Scheduler) CreateConfigMapHandler(req *restful.Request, resp *restful.Response)
- func (s *Scheduler) CreateCustomResource(ns, kind string, body []byte) (string, error)
- func (s *Scheduler) CreateDaemonset(body []byte) (string, error)
- func (s *Scheduler) CreateDeployment(body []byte) (string, error)
- func (s *Scheduler) CreateProcessHandler(req *restful.Request, resp *restful.Response)
- func (s *Scheduler) CreateSecret(body []byte) (string, error)
- func (s *Scheduler) CreateSecretHandler(req *restful.Request, resp *restful.Response)
- func (s *Scheduler) CreateService(body []byte) (string, error)
- func (s *Scheduler) CreateServiceHandler(req *restful.Request, resp *restful.Response)
- func (s *Scheduler) DeleteAdmissionWebhook(ns string, name string) (string, error)
- func (s *Scheduler) DeleteAdmissionwebhookHandler(req *restful.Request, resp *restful.Response)
- func (s *Scheduler) DeleteApplication(ns, name, enforce string, kind bcstype.BcsDataType) (string, error)
- func (s *Scheduler) DeleteApplicationHandler(req *restful.Request, resp *restful.Response)
- func (s *Scheduler) DeleteApplicationTaskGroup(body []byte) (string, error)
- func (s *Scheduler) DeleteApplicationTaskGroupHandler(req *restful.Request, resp *restful.Response)
- func (s *Scheduler) DeleteApplicationTaskGroups(body []byte) (string, error)
- func (s *Scheduler) DeleteApplicationTaskGroupsHandler(req *restful.Request, resp *restful.Response)
- func (s *Scheduler) DeleteConfigMap(ns string, name string) (string, error)
- func (s *Scheduler) DeleteConfigMapHandler(req *restful.Request, resp *restful.Response)
- func (s *Scheduler) DeleteCustomResource(ns, kind, name string) (string, error)
- func (s *Scheduler) DeleteProcessHandler(req *restful.Request, resp *restful.Response)
- func (s *Scheduler) DeleteSecret(ns string, name string) (string, error)
- func (s *Scheduler) DeleteSecretHandler(req *restful.Request, resp *restful.Response)
- func (s *Scheduler) DeleteService(ns string, name string) (string, error)
- func (s *Scheduler) DeleteServiceHandler(req *restful.Request, resp *restful.Response)
- func (s *Scheduler) FetchAdmissionWebhook(ns string, name string) (string, error)
- func (s *Scheduler) FetchAdmissionwebhookHandler(req *restful.Request, resp *restful.Response)
- func (s *Scheduler) FetchAllAdmissionWebhooks() (string, error)
- func (s *Scheduler) FetchAllAdmissionwebhooksHandler(req *restful.Request, resp *restful.Response)
- func (s *Scheduler) FetchApplication(ns, name string, kind bcstype.BcsDataType) (string, error)
- func (s *Scheduler) FetchApplicationHandler(req *restful.Request, resp *restful.Response)
- func (s *Scheduler) FetchApplicationVersion(ns, name, versionID string) (string, error)
- func (s *Scheduler) FetchApplicationVersionHandler(req *restful.Request, resp *restful.Response)
- func (s *Scheduler) FetchProcessHandler(req *restful.Request, resp *restful.Response)
- func (s *Scheduler) GetClusterCurrentOffersHandler(req *restful.Request, resp *restful.Response)
- func (s *Scheduler) GetClusterEndpointsHandler(req *restful.Request, resp *restful.Response)
- func (s *Scheduler) GetClusterResourcesHandler(req *restful.Request, resp *restful.Response)
- func (s *Scheduler) GetCustomResource(ns, kind, name string) (string, error)
- func (s *Scheduler) GetHost() string
- func (s *Scheduler) GetHttpClient() *httpclient.HttpClient
- func (s *Scheduler) InitConfig(conf *config.MesosDriverConfig)
- func (s *Scheduler) ListAllCustomResource(kind string) (string, error)
- func (s *Scheduler) ListApplicationTaskGroups(ns, name string) (string, error)
- func (s *Scheduler) ListApplicationTaskGroupsHandler(req *restful.Request, resp *restful.Response)
- func (s *Scheduler) ListApplicationTasks(ns, name string) (string, error)
- func (s *Scheduler) ListApplicationTasksHandler(req *restful.Request, resp *restful.Response)
- func (s *Scheduler) ListApplicationVersions(ns, name string) (string, error)
- func (s *Scheduler) ListApplicationVersionsHandler(req *restful.Request, resp *restful.Response)
- func (s *Scheduler) ListApplications(ns string, kind bcstype.BcsDataType) (string, error)
- func (s *Scheduler) ListApplicationsHandler(req *restful.Request, resp *restful.Response)
- func (s *Scheduler) ListCustomResource(ns, kind string) (string, error)
- func (s *Scheduler) ListProcessesHandler(req *restful.Request, resp *restful.Response)
- func (s *Scheduler) RegisterCustomResource(body []byte) (string, error)
- func (s *Scheduler) ReloadTaskGroup(taskGroupID string) (string, error)
- func (s *Scheduler) RescheduleTaskgroup(taskgroupId, hostRetainTime string) (string, error)
- func (s *Scheduler) RestartTaskGroup(taskGroupID string) (string, error)
- func (s *Scheduler) RollbackApplication(body []byte, kind bcstype.BcsDataType) (string, error)
- func (s *Scheduler) RollbackApplicationHandler(req *restful.Request, resp *restful.Response)
- func (s *Scheduler) RollbackProcessHandler(req *restful.Request, resp *restful.Response)
- func (s *Scheduler) ScaleApplication(ns, name, instances string, kind bcstype.BcsDataType) (string, error)
- func (s *Scheduler) ScaleApplicationHandler(req *restful.Request, resp *restful.Response)
- func (s *Scheduler) ScaleProcessHandler(req *restful.Request, resp *restful.Response)
- func (s *Scheduler) SendMessageApplication(ns, name, taskgroupId string, body []byte) (string, error)
- func (s *Scheduler) SendMessageApplicationHandler(req *restful.Request, resp *restful.Response)
- func (s *Scheduler) SendMessageTaskgroupHandler(req *restful.Request, resp *restful.Response)
- func (s *Scheduler) SetHost(hosts []string)
- func (s *Scheduler) UpdateAdmissionWebhook(body []byte) (string, error)
- func (s *Scheduler) UpdateAdmissionwebhookHandler(req *restful.Request, resp *restful.Response)
- func (s *Scheduler) UpdateApplication(body []byte, instances, args string) (string, error)
- func (s *Scheduler) UpdateApplicationHandler(req *restful.Request, resp *restful.Response)
- func (s *Scheduler) UpdateConfigMap(body []byte) (string, error)
- func (s *Scheduler) UpdateConfigMapHandler(req *restful.Request, resp *restful.Response)
- func (s *Scheduler) UpdateCustomResource(ns, kind string, body []byte) (string, error)
- func (s *Scheduler) UpdateDeployment(body []byte, args string) (string, error)
- func (s *Scheduler) UpdateProcessHandler(req *restful.Request, resp *restful.Response)
- func (s *Scheduler) UpdateSecret(body []byte) (string, error)
- func (s *Scheduler) UpdateSecretHandler(req *restful.Request, resp *restful.Response)
- func (s *Scheduler) UpdateService(body []byte) (string, error)
- func (s *Scheduler) UpdateServiceHandler(req *restful.Request, resp *restful.Response)
- type SendMsgOpeParam
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeleteTaskGroupOpeParam ¶
type DeleteTaskGroupOpeParam struct { OperateItem TaskGroupId string `json:"taskgroupid"` }
DeleteTaskGroupOpeParam xxx
type DeleteTaskGroupsOpeParam ¶
type DeleteTaskGroupsOpeParam struct {
OperateItem
}
DeleteTaskGroupsOpeParam xxx
type FetchVersionOpeParam ¶
type FetchVersionOpeParam struct { OperateItem VersionId string `json:"versionid"` }
FetchVersionOpeParam xxx
type OperateItem ¶
type OperateItem struct { Name string `json:"name"` RunAs string `json:"namespace"` SetId string `json:"setid"` ModuleId string `json:"moduleid"` }
OperateItem xxx
type ScaleOpeParam ¶
type ScaleOpeParam struct { OperateItem Instance uint64 `json:"instance"` }
ScaleOpeParam xxx
type Scheduler ¶
type Scheduler struct {
// contains filtered or unexported fields
}
Scheduler is data struct of mesos scheduler
func (*Scheduler) Actions ¶
func (s *Scheduler) Actions() []*httpserver.Action
Actions all http action implementation
func (*Scheduler) CreateAdmissionWebhook ¶
CreateAdmissionWebhook xxx
func (*Scheduler) CreateAdmissionwebhookHandler ¶
CreateAdmissionwebhookHandler create Admissionwebhook implementation
func (*Scheduler) CreateApplication ¶
CreateApplication create application implementation
func (*Scheduler) CreateApplicationHandler ¶
CreateApplicationHandler xxx
func (*Scheduler) CreateConfigMap ¶
CreateConfigMap xxx
func (*Scheduler) CreateConfigMapHandler ¶
CreateConfigMapHandler xxx
func (*Scheduler) CreateCustomResource ¶
CreateCustomResource xxx
func (*Scheduler) CreateDaemonset ¶
CreateDaemonset xxx
func (*Scheduler) CreateDeployment ¶
CreateDeployment create deployment, call scheduler create deployment api
func (*Scheduler) CreateProcessHandler ¶
CreateProcessHandler xxx
func (*Scheduler) CreateSecret ¶
CreateSecret xxx
func (*Scheduler) CreateSecretHandler ¶
CreateSecretHandler xxx
func (*Scheduler) CreateService ¶
CreateService create service request forwarding
func (*Scheduler) CreateServiceHandler ¶
CreateServiceHandler xxx
func (*Scheduler) DeleteAdmissionWebhook ¶
DeleteAdmissionWebhook xxx
func (*Scheduler) DeleteAdmissionwebhookHandler ¶
DeleteAdmissionwebhookHandler delete Admissionwebhook implementation
func (*Scheduler) DeleteApplication ¶
func (s *Scheduler) DeleteApplication(ns, name, enforce string, kind bcstype.BcsDataType) (string, error)
DeleteApplication xxx
func (*Scheduler) DeleteApplicationHandler ¶
DeleteApplicationHandler xxx
func (*Scheduler) DeleteApplicationTaskGroup ¶
DeleteApplicationTaskGroup xxx
func (*Scheduler) DeleteApplicationTaskGroupHandler ¶
DeleteApplicationTaskGroupHandler xxx
func (*Scheduler) DeleteApplicationTaskGroups ¶
DeleteApplicationTaskGroups xxx
func (*Scheduler) DeleteApplicationTaskGroupsHandler ¶
func (s *Scheduler) DeleteApplicationTaskGroupsHandler(req *restful.Request, resp *restful.Response)
DeleteApplicationTaskGroupsHandler xxx
func (*Scheduler) DeleteConfigMap ¶
DeleteConfigMap xxx
func (*Scheduler) DeleteConfigMapHandler ¶
DeleteConfigMapHandler xxx
func (*Scheduler) DeleteCustomResource ¶
DeleteCustomResource xxx
func (*Scheduler) DeleteProcessHandler ¶
DeleteProcessHandler xxx
func (*Scheduler) DeleteSecret ¶
DeleteSecret xxx
func (*Scheduler) DeleteSecretHandler ¶
DeleteSecretHandler xxx
func (*Scheduler) DeleteService ¶
DeleteService delete service request forwarding
func (*Scheduler) DeleteServiceHandler ¶
DeleteServiceHandler xxx
func (*Scheduler) FetchAdmissionWebhook ¶
FetchAdmissionWebhook xxx
func (*Scheduler) FetchAdmissionwebhookHandler ¶
FetchAdmissionwebhookHandler get specified admission webhook
func (*Scheduler) FetchAllAdmissionWebhooks ¶
FetchAllAdmissionWebhooks xxx
func (*Scheduler) FetchAllAdmissionwebhooksHandler ¶
FetchAllAdmissionwebhooksHandler get all admission webhook request
func (*Scheduler) FetchApplication ¶
FetchApplication xxx
func (*Scheduler) FetchApplicationHandler ¶
FetchApplicationHandler xxx
func (*Scheduler) FetchApplicationVersion ¶
FetchApplicationVersion xxx
func (*Scheduler) FetchApplicationVersionHandler ¶
FetchApplicationVersionHandler get Application information
func (*Scheduler) FetchProcessHandler ¶
FetchProcessHandler xxx
func (*Scheduler) GetClusterCurrentOffersHandler ¶
GetClusterCurrentOffersHandler xxx
func (*Scheduler) GetClusterEndpointsHandler ¶
GetClusterEndpointsHandler xxx
func (*Scheduler) GetClusterResourcesHandler ¶
GetClusterResourcesHandler xxx
func (*Scheduler) GetCustomResource ¶
GetCustomResource xxx
func (*Scheduler) GetHttpClient ¶
func (s *Scheduler) GetHttpClient() *httpclient.HttpClient
GetHttpClient get scheudler specified http client implementation
func (*Scheduler) InitConfig ¶
func (s *Scheduler) InitConfig(conf *config.MesosDriverConfig)
InitConfig scheduler init configuration
func (*Scheduler) ListAllCustomResource ¶
ListAllCustomResource xxx
func (*Scheduler) ListApplicationTaskGroups ¶
ListApplicationTaskGroups list all taskgroup under application
func (*Scheduler) ListApplicationTaskGroupsHandler ¶
ListApplicationTaskGroupsHandler xxx
func (*Scheduler) ListApplicationTasks ¶
ListApplicationTasks xxx
func (*Scheduler) ListApplicationTasksHandler ¶
ListApplicationTasksHandler xxx
func (*Scheduler) ListApplicationVersions ¶
ListApplicationVersions list application inner definition
func (*Scheduler) ListApplicationVersionsHandler ¶
ListApplicationVersionsHandler xxx
func (*Scheduler) ListApplications ¶
ListApplications list all apps
func (*Scheduler) ListApplicationsHandler ¶
ListApplicationsHandler xxx
func (*Scheduler) ListCustomResource ¶
ListCustomResource xxx
func (*Scheduler) ListProcessesHandler ¶
ListProcessesHandler xxx
func (*Scheduler) RegisterCustomResource ¶
RegisterCustomResource xxx
func (*Scheduler) ReloadTaskGroup ¶
ReloadTaskGroup xxx
func (*Scheduler) RescheduleTaskgroup ¶
RescheduleTaskgroup xxx
func (*Scheduler) RestartTaskGroup ¶
RestartTaskGroup xxx
func (*Scheduler) RollbackApplication ¶
RollbackApplication application rollback implementation
func (*Scheduler) RollbackApplicationHandler ¶
RollbackApplicationHandler xxx
func (*Scheduler) RollbackProcessHandler ¶
RollbackProcessHandler xxx
func (*Scheduler) ScaleApplication ¶
func (s *Scheduler) ScaleApplication(ns, name, instances string, kind bcstype.BcsDataType) (string, error)
ScaleApplication scale application transparent forwarding
func (*Scheduler) ScaleApplicationHandler ¶
ScaleApplicationHandler xxx
func (*Scheduler) ScaleProcessHandler ¶
ScaleProcessHandler xxx
func (*Scheduler) SendMessageApplication ¶
func (s *Scheduler) SendMessageApplication(ns, name, taskgroupId string, body []byte) (string, error)
SendMessageApplication xxx
func (*Scheduler) SendMessageApplicationHandler ¶
SendMessageApplicationHandler xxx
func (*Scheduler) SendMessageTaskgroupHandler ¶
SendMessageTaskgroupHandler xxx
func (*Scheduler) UpdateAdmissionWebhook ¶
UpdateAdmissionWebhook xxx
func (*Scheduler) UpdateAdmissionwebhookHandler ¶
UpdateAdmissionwebhookHandler update Admissionwebhook
func (*Scheduler) UpdateApplication ¶
UpdateApplication update application forwarding
func (*Scheduler) UpdateApplicationHandler ¶
UpdateApplicationHandler xxx
func (*Scheduler) UpdateConfigMap ¶
UpdateConfigMap xxx
func (*Scheduler) UpdateConfigMapHandler ¶
UpdateConfigMapHandler xxx
func (*Scheduler) UpdateCustomResource ¶
UpdateCustomResource xxx
func (*Scheduler) UpdateDeployment ¶
UpdateDeployment do update deployment, call scheduler update deployment api
func (*Scheduler) UpdateProcessHandler ¶
UpdateProcessHandler xxx
func (*Scheduler) UpdateSecret ¶
UpdateSecret xxx
func (*Scheduler) UpdateSecretHandler ¶
UpdateSecretHandler xxx
func (*Scheduler) UpdateService ¶
UpdateService update service request forwarding
type SendMsgOpeParam ¶
type SendMsgOpeParam struct { OperateItem MsgType string `json:"msgtype"` MsgData interface{} `json:"msgdata"` TaskGroupId string `json:"taskgroupid"` }
SendMsgOpeParam xxx