Documentation ¶
Index ¶
- type CachesLevelResource
- type CachesResource
- func (cache CachesResource) CacheGet(request *restful.Request, response *restful.Response)
- func (cache CachesResource) CachesGet(request *restful.Request, response *restful.Response)
- func (cache CachesResource) CachesLevelGet(request *restful.Request, response *restful.Response)
- func (cache CachesResource) Register(container *restful.Container)
- type HospitalityResource
- type PolicyResource
- type WorkLoadResource
- func (w WorkLoadResource) Register(container *restful.Container)
- func (w WorkLoadResource) WorkLoadDeleteByID(request *restful.Request, response *restful.Response)
- func (w WorkLoadResource) WorkLoadGet(request *restful.Request, response *restful.Response)
- func (w WorkLoadResource) WorkLoadGetByID(request *restful.Request, response *restful.Response)
- func (w *WorkLoadResource) WorkLoadNew(request *restful.Request, response *restful.Response)
- func (w WorkLoadResource) WorkLoadPatch(request *restful.Request, response *restful.Response)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CachesLevelResource ¶
type CachesLevelResource struct { }
CachesLevelResource is Cache Level Info This should merge into CachesResource
type CachesResource ¶
type CachesResource struct { }
CachesResource represents Cache Info api resource
func (CachesResource) CacheGet ¶
func (cache CachesResource) CacheGet(request *restful.Request, response *restful.Response)
CacheGet handles GET /v1/cache/l[2, 3]/{id}
func (CachesResource) CachesGet ¶
func (cache CachesResource) CachesGet(request *restful.Request, response *restful.Response)
CachesGet handles GET /v1/cache
func (CachesResource) CachesLevelGet ¶
func (cache CachesResource) CachesLevelGet(request *restful.Request, response *restful.Response)
CachesLevelGet handles GET /v1/cache/l[2|3|lc]
func (CachesResource) Register ¶
func (cache CachesResource) Register(container *restful.Container)
Register handlers
type HospitalityResource ¶
type HospitalityResource struct{}
HospitalityResource is the API resource
func (HospitalityResource) HospitalityGetByRequest ¶
func (h HospitalityResource) HospitalityGetByRequest(request *restful.Request, response *restful.Response)
HospitalityGetByRequest returns hospitality score by request
func (HospitalityResource) Register ¶
func (h HospitalityResource) Register(container *restful.Container)
Register routers
type PolicyResource ¶
type PolicyResource struct { }
PolicyResource represents policy API resource
func (PolicyResource) PolicyGet ¶
func (c PolicyResource) PolicyGet(request *restful.Request, response *restful.Response)
PolicyGet is handler to for GET
func (PolicyResource) Register ¶
func (c PolicyResource) Register(container *restful.Container)
Register handlers
type WorkLoadResource ¶
WorkLoadResource is workload api resource
func (WorkLoadResource) Register ¶
func (w WorkLoadResource) Register(container *restful.Container)
Register handlers
func (WorkLoadResource) WorkLoadDeleteByID ¶
func (w WorkLoadResource) WorkLoadDeleteByID(request *restful.Request, response *restful.Response)
WorkLoadDeleteByID handles DELETE /v1/workloads/{id}
func (WorkLoadResource) WorkLoadGet ¶
func (w WorkLoadResource) WorkLoadGet(request *restful.Request, response *restful.Response)
WorkLoadGet handles GET /v1/workloads
func (WorkLoadResource) WorkLoadGetByID ¶
func (w WorkLoadResource) WorkLoadGetByID(request *restful.Request, response *restful.Response)
WorkLoadGetByID handle GET /v1/workloads/{id}
func (*WorkLoadResource) WorkLoadNew ¶
func (w *WorkLoadResource) WorkLoadNew(request *restful.Request, response *restful.Response)
WorkLoadNew handle POST /v1/workloads body : '{"core_ids":["1","2"], "task_ids":["123","456"], "policys": ["foo"], "algorithms": ["bar"], "group": ["infra"]}'
func (WorkLoadResource) WorkLoadPatch ¶
func (w WorkLoadResource) WorkLoadPatch(request *restful.Request, response *restful.Response)
WorkLoadPatch handles PATCH /v1/workloads/{id}