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 DeleteAppOpeParam ¶
type DeleteAppOpeParam struct {
OperateItem
}
type DeleteTaskGroupOpeParam ¶
type DeleteTaskGroupOpeParam struct { OperateItem TaskGroupId string `json:"taskgroupid"` }
type DeleteTaskGroupsOpeParam ¶
type DeleteTaskGroupsOpeParam struct {
OperateItem
}
type FetchVersionOpeParam ¶
type FetchVersionOpeParam struct { OperateItem VersionId string `json:"versionid"` }
type OperateItem ¶
type RollbackOpeParam ¶
type RollbackOpeParam struct {
OperateItem
}
type ScaleOpeParam ¶
type ScaleOpeParam struct { OperateItem Instance uint64 `json:"instance"` }
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 ¶
func (*Scheduler) CreateAdmissionwebhookHandler ¶
CreateAdmissionwebhookHandler create Admissionwebhook implementation
func (*Scheduler) CreateApplication ¶
CreateApplication create application implementation
func (*Scheduler) CreateApplicationHandler ¶
func (*Scheduler) CreateConfigMap ¶
func (*Scheduler) CreateConfigMapHandler ¶
func (*Scheduler) CreateCustomResource ¶
func (*Scheduler) CreateDaemonset ¶
func (*Scheduler) CreateDeployment ¶
CreateDeployment create deployment, call scheduler create deployment api
func (*Scheduler) CreateProcessHandler ¶
func (*Scheduler) CreateSecretHandler ¶
func (*Scheduler) CreateService ¶
CreateService create service request forwarding
func (*Scheduler) CreateServiceHandler ¶
func (*Scheduler) DeleteAdmissionWebhook ¶
func (*Scheduler) DeleteAdmissionwebhookHandler ¶
DeleteAdmissionwebhookHandler delete Admissionwebhook implementation
func (*Scheduler) DeleteApplication ¶
func (*Scheduler) DeleteApplicationHandler ¶
func (*Scheduler) DeleteApplicationTaskGroup ¶
func (*Scheduler) DeleteApplicationTaskGroupHandler ¶
func (*Scheduler) DeleteApplicationTaskGroups ¶
func (*Scheduler) DeleteApplicationTaskGroupsHandler ¶
func (*Scheduler) DeleteConfigMap ¶
func (*Scheduler) DeleteConfigMapHandler ¶
func (*Scheduler) DeleteCustomResource ¶
func (*Scheduler) DeleteProcessHandler ¶
func (*Scheduler) DeleteSecret ¶
func (*Scheduler) DeleteSecretHandler ¶
func (*Scheduler) DeleteService ¶
DeleteService delete service request forwarding
func (*Scheduler) DeleteServiceHandler ¶
func (*Scheduler) FetchAdmissionWebhook ¶
func (*Scheduler) FetchAdmissionwebhookHandler ¶
FetchAdmissionwebhookHandler get specified admission webhook
func (*Scheduler) FetchAllAdmissionWebhooks ¶
func (*Scheduler) FetchAllAdmissionwebhooksHandler ¶
FetchAllAdmissionwebhooksHandler get all admission webhook request
func (*Scheduler) FetchApplication ¶
func (*Scheduler) FetchApplicationHandler ¶
func (*Scheduler) FetchApplicationVersion ¶
func (*Scheduler) FetchApplicationVersionHandler ¶
FetchApplicationVersionHandler get Application information
func (*Scheduler) FetchProcessHandler ¶
func (*Scheduler) GetClusterCurrentOffersHandler ¶
func (*Scheduler) GetClusterEndpointsHandler ¶
func (*Scheduler) GetClusterResourcesHandler ¶
func (*Scheduler) GetCustomResource ¶
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 ¶
func (*Scheduler) ListApplicationTaskGroups ¶
ListApplicationTaskGroups list all taskgroup under application
func (*Scheduler) ListApplicationTaskGroupsHandler ¶
func (*Scheduler) ListApplicationTasks ¶
func (*Scheduler) ListApplicationTasksHandler ¶
func (*Scheduler) ListApplicationVersions ¶
ListApplicationVersions list application inner definition
func (*Scheduler) ListApplicationVersionsHandler ¶
func (*Scheduler) ListApplications ¶
ListApplications list all apps
func (*Scheduler) ListApplicationsHandler ¶
func (*Scheduler) ListCustomResource ¶
func (*Scheduler) ListProcessesHandler ¶
func (*Scheduler) RegisterCustomResource ¶
func (*Scheduler) ReloadTaskGroup ¶
func (*Scheduler) RescheduleTaskgroup ¶
func (*Scheduler) RestartTaskGroup ¶
func (*Scheduler) RollbackApplication ¶
RollbackApplication application rollback implementation
func (*Scheduler) RollbackApplicationHandler ¶
func (*Scheduler) RollbackProcessHandler ¶
func (*Scheduler) ScaleApplication ¶
func (s *Scheduler) ScaleApplication(ns, name, instances string, kind bcstype.BcsDataType) (string, error)
ScaleApplication scale application transparent forwarding
func (*Scheduler) ScaleApplicationHandler ¶
func (*Scheduler) ScaleProcessHandler ¶
func (*Scheduler) SendMessageApplication ¶
func (*Scheduler) SendMessageApplicationHandler ¶
func (*Scheduler) SendMessageTaskgroupHandler ¶
func (*Scheduler) UpdateAdmissionWebhook ¶
func (*Scheduler) UpdateAdmissionwebhookHandler ¶
UpdateAdmissionwebhookHandler update Admissionwebhook
func (*Scheduler) UpdateApplication ¶
UpdateApplication update application forwarding
func (*Scheduler) UpdateApplicationHandler ¶
func (*Scheduler) UpdateConfigMap ¶
func (*Scheduler) UpdateConfigMapHandler ¶
func (*Scheduler) UpdateCustomResource ¶
func (*Scheduler) UpdateDeployment ¶
UpdateDeployment do update deployment, call scheduler update deployment api
func (*Scheduler) UpdateProcessHandler ¶
func (*Scheduler) UpdateSecretHandler ¶
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"` }