...

Package api

import "scheduler/api"
Overview
Index
Subdirectories

Overview ▾

Package api implements all the handlers of all the apis available in this system.

Index ▾

func FunctionGet(w http.ResponseWriter, r *http.Request)
func FunctionPost(w http.ResponseWriter, r *http.Request)
func GetConfiguration(w http.ResponseWriter, r *http.Request)
func GetScheduler(w http.ResponseWriter, r *http.Request)
func HeadersGetRequestTracingId(req *http.Request) string
func Hello(w http.ResponseWriter, r *http.Request)
func HttpDevGet(w http.ResponseWriter, r *http.Request)
func HttpDevPost(w http.ResponseWriter, r *http.Request)
func HttpGetHeadersFromFramework() map[string]string
func HttpGetHeadersFromJobResult(result *scheduler.JobResult) map[string]string
func HttpGetHeadersFunctionExecution(jobResult *scheduler.JobResult) map[string]string
func HttpGetHeadersXFromResponse(apiResponse *types.APIResponse) map[string]string
func LearningDevTestAct(w http.ResponseWriter, r *http.Request)
func LearningDevTestActWs(w http.ResponseWriter, r *http.Request)
func LearningDevTestTrain(w http.ResponseWriter, r *http.Request)
func ReplyWithBodyFromJobResult(serviceRequest *types.ServiceRequest, w *http.ResponseWriter, jobResult *scheduler.JobResult)
func ReplyWithErrorFromJobResult(w *http.ResponseWriter, errorCode int, jobResult *scheduler.JobResult, message string)
func SetConfiguration(w http.ResponseWriter, r *http.Request)
func SetScheduler(w http.ResponseWriter, r *http.Request)
func SystemFunctionGet(w http.ResponseWriter, r *http.Request)
func SystemFunctionsDelete(w http.ResponseWriter, r *http.Request)
func SystemFunctionsGet(w http.ResponseWriter, r *http.Request)
func SystemFunctionsPost(w http.ResponseWriter, r *http.Request)
func SystemFunctionsPut(w http.ResponseWriter, r *http.Request)
func SystemScaleFunctionPost(w http.ResponseWriter, r *http.Request)
func TestDevParallelRequests(w http.ResponseWriter, r *http.Request)
type HelloResponse

Package files

api.go configuration.go function.go function_scale_function.go hello.go http.go learning.go system_function.go system_functions.go test.go utils.go

func FunctionGet

func FunctionGet(w http.ResponseWriter, r *http.Request)

func FunctionPost

func FunctionPost(w http.ResponseWriter, r *http.Request)

func GetConfiguration

func GetConfiguration(w http.ResponseWriter, r *http.Request)

GetConfiguration Retrieve the current configuration of the system.

func GetScheduler

func GetScheduler(w http.ResponseWriter, r *http.Request)

GetScheduler Retrieves the scheduler information.

func HeadersGetRequestTracingId

func HeadersGetRequestTracingId(req *http.Request) string

func Hello

func Hello(w http.ResponseWriter, r *http.Request)

func HttpDevGet

func HttpDevGet(w http.ResponseWriter, r *http.Request)

func HttpDevPost

func HttpDevPost(w http.ResponseWriter, r *http.Request)

func HttpGetHeadersFromFramework

func HttpGetHeadersFromFramework() map[string]string

func HttpGetHeadersFromJobResult

func HttpGetHeadersFromJobResult(result *scheduler.JobResult) map[string]string

func HttpGetHeadersFunctionExecution

func HttpGetHeadersFunctionExecution(jobResult *scheduler.JobResult) map[string]string

func HttpGetHeadersXFromResponse

func HttpGetHeadersXFromResponse(apiResponse *types.APIResponse) map[string]string

func LearningDevTestAct

func LearningDevTestAct(w http.ResponseWriter, r *http.Request)

func LearningDevTestActWs

func LearningDevTestActWs(w http.ResponseWriter, r *http.Request)

func LearningDevTestTrain

func LearningDevTestTrain(w http.ResponseWriter, r *http.Request)

func ReplyWithBodyFromJobResult

func ReplyWithBodyFromJobResult(serviceRequest *types.ServiceRequest, w *http.ResponseWriter, jobResult *scheduler.JobResult)

func ReplyWithErrorFromJobResult

func ReplyWithErrorFromJobResult(w *http.ResponseWriter, errorCode int, jobResult *scheduler.JobResult, message string)

func SetConfiguration

func SetConfiguration(w http.ResponseWriter, r *http.Request)

SetConfiguration Set the configuration of the system (conform to config.ConfigurationSetExp) and save it to a file, in such a way it is load at the startup. This configuration does not include the scheduler information.

func SetScheduler

func SetScheduler(w http.ResponseWriter, r *http.Request)

SetScheduler Sets the scheduler information and save the configuration to file in such a way it is loaded automatically at startup.

func SystemFunctionGet

func SystemFunctionGet(w http.ResponseWriter, r *http.Request)

func SystemFunctionsDelete

func SystemFunctionsDelete(w http.ResponseWriter, r *http.Request)

func SystemFunctionsGet

func SystemFunctionsGet(w http.ResponseWriter, r *http.Request)

func SystemFunctionsPost

func SystemFunctionsPost(w http.ResponseWriter, r *http.Request)

func SystemFunctionsPut

func SystemFunctionsPut(w http.ResponseWriter, r *http.Request)

func SystemScaleFunctionPost

func SystemScaleFunctionPost(w http.ResponseWriter, r *http.Request)

func TestDevParallelRequests

func TestDevParallelRequests(w http.ResponseWriter, r *http.Request)

type HelloResponse

type HelloResponse struct {
    Name          string `json:"name"`
    Version       string `json:"version"`
    VersionCommit string `json:"version_commit"`
}

Subdirectories

Name Synopsis
..
api_monitoring Package api_monitoring implements all the handlers of all the apis called for monitoring the nodes, like for example probing.
api_peer Package api_peer implements all the handlers of all the apis called by other nodes.