...

Package faas_containers

import "scheduler/faas_containers"
Overview
Index

Overview ▾

Package faas_containers implements a faas execution logic based on simple containerized FaaS

Constants

const DefaultFunctionsListeningPort = 8080

func FunctionExecute

func FunctionExecute(functionName string, payload []byte, contentType string) (*types.FaasApiResponse, error)

FunctionExecute executes the passed function name

func GenFunctionExecute

func GenFunctionExecute(functionName string, payload []byte, contentType string) (*types.FaasApiResponse, error)

func GetApiFunctionUrl

func GetApiFunctionUrl(functionName string) string

GetApiFunctionUrl returns the API url for the given function

type ErrorFunctionNotFound

type ErrorFunctionNotFound struct{}

func (ErrorFunctionNotFound) Error

func (ErrorFunctionNotFound) Error() string

type ErrorGeneric

type ErrorGeneric struct {
    ResponseBody string
}

func (ErrorGeneric) Error

func (e ErrorGeneric) Error() string

type ErrorImpossibleToScaleFunction

type ErrorImpossibleToScaleFunction struct{}

func (ErrorImpossibleToScaleFunction) Error

func (e ErrorImpossibleToScaleFunction) Error() string

type ErrorInternal

type ErrorInternal struct {
    ResponseBody string
}

func (ErrorInternal) Error

func (e ErrorInternal) Error() string