api

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2017 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterTasksFromApp

func FilterTasksFromApp(app *state.App) []*types.Task

func FormApp added in v0.1.3

func FormApp(app *state.App) *types.App

func FormAppRetWithVersions

func FormAppRetWithVersions(app *state.App) *types.App

func FormAppRetWithVersionsAndTasks

func FormAppRetWithVersionsAndTasks(app *state.App) *types.App

func FormTask added in v0.1.3

func FormTask(slot *state.Slot) *types.Task

func FormTaskHistory added in v0.1.3

func FormTaskHistory(v *state.Task) *types.TaskHistory

func GetTaskFromApp

func GetTaskFromApp(app *state.App, task_index int) (*types.Task, error)

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 Cmd

type Cmd struct {
}

func NewCmd

func NewCmd() *Cmd

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)

Jump to

Keyboard shortcuts

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