Documentation
¶
Index ¶
- type MgrService
- func (mgrService *MgrService) DELETE(path string, payload interface{}, header map[string]string) (*ResponseMessage, *types.ErrorResponse)
- func (mgrService *MgrService) EventBoxInfo() (*types.ManagerComponent, *types.ErrorResponse)
- func (mgrService *MgrService) EventBoxStart() (*types.ManagerComponent, *types.ErrorResponse)
- func (mgrService *MgrService) EventGetALL() (*[]types.Event, *types.ErrorResponse)
- func (mgrService *MgrService) FunctionCreate(functionDTO *types.FunctionDTO) *types.ErrorResponse
- func (mgrService *MgrService) FunctionDelete(function *types.Function) *types.ErrorResponse
- func (mgrService *MgrService) FunctionDeploy(function *types.Function) *types.ErrorResponse
- func (mgrService *MgrService) FunctionScale(function *types.Function) *types.ErrorResponse
- func (mgrService *MgrService) FunctionTest(functionTest *types.FunctionTest) (*types.FunctionTestResponse, *types.ErrorResponse)
- func (mgrService *MgrService) FunctionUpdate(functionDTO *types.FunctionDTO) *types.ErrorResponse
- func (mgrService *MgrService) FunctionsGetALL() ([]types.Function, *types.ErrorResponse)
- func (mgrService *MgrService) FunctionsGetByName(name string) (*types.Function, *types.ErrorResponse)
- func (mgrService *MgrService) GET(path string, payload interface{}, header map[string]string) (*ResponseMessage, *types.ErrorResponse)
- func (mgrService *MgrService) ManagerComponentGetALL() ([]types.ManagerComponent, *types.ErrorResponse)
- func (mgrService *MgrService) POST(path string, payload interface{}, header map[string]string) (*ResponseMessage, *types.ErrorResponse)
- func (mgrService *MgrService) PUT(path string, payload interface{}, header map[string]string) (*ResponseMessage, *types.ErrorResponse)
- func (mgrService *MgrService) RequestTrackerGetALL() ([]types.RequestTracker, *types.ErrorResponse)
- func (mgrService *MgrService) RequestTrackerGetByID(requestID string) (*types.RequestTracker, *types.ErrorResponse)
- func (mgrService *MgrService) RouteCreate(route *types.Resource) *types.ErrorResponse
- func (mgrService *MgrService) RouteGetALL() ([]types.Resource, *types.ErrorResponse)
- func (mgrService *MgrService) RouteGetByName(name string) (*types.Resource, *types.ErrorResponse)
- func (mgrService *MgrService) RouteUpdate(route *types.Resource) *types.ErrorResponse
- type ResponseMessage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MgrService ¶
type MgrService struct {
MgrServerConfig quebicFaas.ServerConfig
Auth config.AuthConfig
}
MgrService mgr-service
func (*MgrService) DELETE ¶
func (mgrService *MgrService) DELETE(path string, payload interface{}, header map[string]string) (*ResponseMessage, *types.ErrorResponse)
DELETE request
func (*MgrService) EventBoxInfo ¶ added in v0.1.2
func (mgrService *MgrService) EventBoxInfo() (*types.ManagerComponent, *types.ErrorResponse)
EventBoxInfo eventbox info
func (*MgrService) EventBoxStart ¶ added in v0.1.2
func (mgrService *MgrService) EventBoxStart() (*types.ManagerComponent, *types.ErrorResponse)
EventBoxStart eventbox start
func (*MgrService) EventGetALL ¶
func (mgrService *MgrService) EventGetALL() (*[]types.Event, *types.ErrorResponse)
EventGetALL get all events
func (*MgrService) FunctionCreate ¶
func (mgrService *MgrService) FunctionCreate(functionDTO *types.FunctionDTO) *types.ErrorResponse
FunctionCreate create function
func (*MgrService) FunctionDelete ¶
func (mgrService *MgrService) FunctionDelete(function *types.Function) *types.ErrorResponse
FunctionDelete function delete
func (*MgrService) FunctionDeploy ¶
func (mgrService *MgrService) FunctionDeploy(function *types.Function) *types.ErrorResponse
FunctionDeploy deploy function
func (*MgrService) FunctionScale ¶ added in v0.1.2
func (mgrService *MgrService) FunctionScale(function *types.Function) *types.ErrorResponse
FunctionScale scale function
func (*MgrService) FunctionTest ¶ added in v0.1.2
func (mgrService *MgrService) FunctionTest(functionTest *types.FunctionTest) (*types.FunctionTestResponse, *types.ErrorResponse)
FunctionTest test function
func (*MgrService) FunctionUpdate ¶
func (mgrService *MgrService) FunctionUpdate(functionDTO *types.FunctionDTO) *types.ErrorResponse
FunctionUpdate update function
func (*MgrService) FunctionsGetALL ¶
func (mgrService *MgrService) FunctionsGetALL() ([]types.Function, *types.ErrorResponse)
FunctionsGetALL get all functions
func (*MgrService) FunctionsGetByName ¶
func (mgrService *MgrService) FunctionsGetByName(name string) (*types.Function, *types.ErrorResponse)
FunctionsGetByName get by name
func (*MgrService) GET ¶
func (mgrService *MgrService) GET(path string, payload interface{}, header map[string]string) (*ResponseMessage, *types.ErrorResponse)
GET request
func (*MgrService) ManagerComponentGetALL ¶
func (mgrService *MgrService) ManagerComponentGetALL() ([]types.ManagerComponent, *types.ErrorResponse)
ManagerComponentGetALL get all
func (*MgrService) POST ¶
func (mgrService *MgrService) POST(path string, payload interface{}, header map[string]string) (*ResponseMessage, *types.ErrorResponse)
POST request
func (*MgrService) PUT ¶
func (mgrService *MgrService) PUT(path string, payload interface{}, header map[string]string) (*ResponseMessage, *types.ErrorResponse)
PUT request
func (*MgrService) RequestTrackerGetALL ¶
func (mgrService *MgrService) RequestTrackerGetALL() ([]types.RequestTracker, *types.ErrorResponse)
RequestTrackerGetALL get all
func (*MgrService) RequestTrackerGetByID ¶
func (mgrService *MgrService) RequestTrackerGetByID(requestID string) (*types.RequestTracker, *types.ErrorResponse)
RequestTrackerGetByID get logs by requestID
func (*MgrService) RouteCreate ¶
func (mgrService *MgrService) RouteCreate(route *types.Resource) *types.ErrorResponse
RouteCreate create route
func (*MgrService) RouteGetALL ¶
func (mgrService *MgrService) RouteGetALL() ([]types.Resource, *types.ErrorResponse)
RouteGetALL get all route
func (*MgrService) RouteGetByName ¶
func (mgrService *MgrService) RouteGetByName(name string) (*types.Resource, *types.ErrorResponse)
RouteGetByName get route by name
func (*MgrService) RouteUpdate ¶
func (mgrService *MgrService) RouteUpdate(route *types.Resource) *types.ErrorResponse
RouteUpdate update route
type ResponseMessage ¶
ResponseMessage response