Documentation ¶
Index ¶
- func FilterTasksFromApp(app *state.App) []*types.Task
- func FormApp(app *state.App) *types.App
- func FormAppRetWithVersions(app *state.App) *types.App
- func FormAppRetWithVersionsAndTasks(app *state.App) *types.App
- func FormTask(slot *state.Slot) *types.Task
- func FormTaskHistory(v *state.Task) *types.TaskHistory
- func GetTaskFromApp(app *state.App, task_index int) (*types.Task, error)
- type AppService
- func (api *AppService) CancelUpdate(request *restful.Request, response *restful.Response)
- func (api *AppService) CreateApp(request *restful.Request, response *restful.Response)
- func (api *AppService) DeleteApp(request *restful.Request, response *restful.Response)
- func (api *AppService) GetAllServiceDiscoveries(request *restful.Request, response *restful.Response)
- func (api *AppService) GetAllServiceDiscoveriesMD5(request *restful.Request, response *restful.Response)
- func (api *AppService) GetApp(request *restful.Request, response *restful.Response)
- func (api *AppService) GetAppServiceDiscoveries(request *restful.Request, response *restful.Response)
- func (api *AppService) GetAppServiceDiscoveriesMD5(request *restful.Request, response *restful.Response)
- func (api *AppService) GetAppTask(request *restful.Request, response *restful.Response)
- func (api *AppService) GetAppVersion(request *restful.Request, response *restful.Response)
- func (api *AppService) GetAppVersions(request *restful.Request, response *restful.Response)
- func (api *AppService) ListApp(request *restful.Request, response *restful.Response)
- func (api *AppService) ProceedUpdate(request *restful.Request, response *restful.Response)
- func (api *AppService) Register(container *restful.Container)
- func (api *AppService) ScaleDown(request *restful.Request, response *restful.Response)
- func (api *AppService) ScaleUp(request *restful.Request, response *restful.Response)
- func (api *AppService) UpdateApp(request *restful.Request, response *restful.Response)
- type Cmd
- type EventsService
- type FrameworkService
- type HealthyService
- type StatsService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormTaskHistory ¶ added in v0.1.3
func FormTaskHistory(v *state.Task) *types.TaskHistory
Types ¶
type AppService ¶
type AppService struct { Scheduler *scheduler.Scheduler apiserver.ApiRegister // contains filtered or unexported fields }
func NewAndInstallAppService ¶
func NewAndInstallAppService(apiServer *apiserver.ApiServer, eng *scheduler.Scheduler) *AppService
func (*AppService) CancelUpdate ¶
func (api *AppService) CancelUpdate(request *restful.Request, response *restful.Response)
func (*AppService) CreateApp ¶
func (api *AppService) CreateApp(request *restful.Request, response *restful.Response)
func (*AppService) DeleteApp ¶
func (api *AppService) DeleteApp(request *restful.Request, response *restful.Response)
func (*AppService) GetAllServiceDiscoveries ¶ added in v0.1.3
func (api *AppService) GetAllServiceDiscoveries(request *restful.Request, response *restful.Response)
func (*AppService) GetAllServiceDiscoveriesMD5 ¶ added in v0.1.3
func (api *AppService) GetAllServiceDiscoveriesMD5(request *restful.Request, response *restful.Response)
func (*AppService) GetApp ¶
func (api *AppService) GetApp(request *restful.Request, response *restful.Response)
func (*AppService) GetAppServiceDiscoveries ¶ added in v0.1.3
func (api *AppService) GetAppServiceDiscoveries(request *restful.Request, response *restful.Response)
func (*AppService) GetAppServiceDiscoveriesMD5 ¶ added in v0.1.3
func (api *AppService) GetAppServiceDiscoveriesMD5(request *restful.Request, response *restful.Response)
func (*AppService) GetAppTask ¶
func (api *AppService) GetAppTask(request *restful.Request, response *restful.Response)
func (*AppService) GetAppVersion ¶
func (api *AppService) GetAppVersion(request *restful.Request, response *restful.Response)
func (*AppService) GetAppVersions ¶
func (api *AppService) GetAppVersions(request *restful.Request, response *restful.Response)
func (*AppService) ListApp ¶
func (api *AppService) ListApp(request *restful.Request, response *restful.Response)
func (*AppService) ProceedUpdate ¶
func (api *AppService) ProceedUpdate(request *restful.Request, response *restful.Response)
func (*AppService) Register ¶
func (api *AppService) Register(container *restful.Container)
NOTE(xychu): Every service need to registed to ApiServer need to impl
a `Register` interface so that it can be added to ApiServer.Start
func (*AppService) ScaleDown ¶
func (api *AppService) ScaleDown(request *restful.Request, response *restful.Response)
func (*AppService) ScaleUp ¶
func (api *AppService) ScaleUp(request *restful.Request, response *restful.Response)
func (*AppService) UpdateApp ¶
func (api *AppService) UpdateApp(request *restful.Request, response *restful.Response)
type EventsService ¶
type EventsService struct { Scheduler *scheduler.Scheduler apiserver.ApiRegister }
func NewAndInstallEventsService ¶
func NewAndInstallEventsService(apiServer *apiserver.ApiServer, eng *scheduler.Scheduler) *EventsService
func (*EventsService) Events ¶
func (api *EventsService) Events(request *restful.Request, response *restful.Response)
func (*EventsService) Register ¶
func (api *EventsService) Register(container *restful.Container)
type FrameworkService ¶ added in v0.1.7
type FrameworkService struct { apiserver.ApiRegister // contains filtered or unexported fields }
func NewAndInstallFrameworkService ¶ added in v0.1.7
func NewAndInstallFrameworkService(apiServer *apiserver.ApiServer, sched *scheduler.Scheduler) *FrameworkService
func (*FrameworkService) Info ¶ added in v0.1.7
func (fs *FrameworkService) Info(req *restful.Request, resp *restful.Response)
func (*FrameworkService) Register ¶ added in v0.1.7
func (fs *FrameworkService) Register(container *restful.Container)
type HealthyService ¶
type HealthyService struct { Scheduler *scheduler.Scheduler apiserver.ApiRegister }
func NewAndInstallHealthyService ¶
func NewAndInstallHealthyService(apiServer *apiserver.ApiServer, eng *scheduler.Scheduler) *HealthyService
func (*HealthyService) Ping ¶
func (api *HealthyService) Ping(request *restful.Request, response *restful.Response)
func (*HealthyService) Register ¶
func (api *HealthyService) Register(container *restful.Container)
type StatsService ¶
type StatsService struct { Scheduler *scheduler.Scheduler apiserver.ApiRegister }
func NewAndInstallStatsService ¶
func NewAndInstallStatsService(apiServer *apiserver.ApiServer, eng *scheduler.Scheduler) *StatsService
func (*StatsService) Register ¶
func (api *StatsService) Register(container *restful.Container)
func (*StatsService) Stats ¶
func (api *StatsService) Stats(request *restful.Request, response *restful.Response)
Click to show internal directories.
Click to hide internal directories.