\App\ApiModule\Version0\ControllersServicesController

Service manager controller

Summary

Methods
Properties
Constants
__construct()
listServices()
getService()
enableService()
disableService()
startService()
stopService()
restartService()
No public properties found
WHITELISTED_SERVICES
No protected methods found
No protected properties found
N/A
No private methods found
$manager
N/A

Constants

WHITELISTED_SERVICES

WHITELISTED_SERVICES = ['iqrf-gateway-daemon', 'unattended-upgrades', 'ssh'] : 

Whitelisted services

Properties

$manager

$manager : \App\ServiceModule\Models\ServiceManager

Type

normal — Service manager

Methods

__construct()

__construct(\App\ServiceModule\Models\ServiceManager  $manager) : mixed

Constructor

Parameters

\App\ServiceModule\Models\ServiceManager $manager

Service manager

Returns

mixed

listServices()

listServices(\Apitte\Core\Http\ApiRequest  $request, \Apitte\Core\Http\ApiResponse  $response) : \Apitte\Core\Http\ApiResponse

Parameters

\Apitte\Core\Http\ApiRequest $request

API request

\Apitte\Core\Http\ApiResponse $response

API response

Returns

\Apitte\Core\Http\ApiResponse —

API response

getService()

getService(\Apitte\Core\Http\ApiRequest  $request, \Apitte\Core\Http\ApiResponse  $response) : \Apitte\Core\Http\ApiResponse

Parameters

\Apitte\Core\Http\ApiRequest $request

API request

\Apitte\Core\Http\ApiResponse $response

API response

Returns

\Apitte\Core\Http\ApiResponse —

API response

enableService()

enableService(\Apitte\Core\Http\ApiRequest  $request, \Apitte\Core\Http\ApiResponse  $response) : \Apitte\Core\Http\ApiResponse

Parameters

\Apitte\Core\Http\ApiRequest $request

API request

\Apitte\Core\Http\ApiResponse $response

API response

Returns

\Apitte\Core\Http\ApiResponse —

API response

disableService()

disableService(\Apitte\Core\Http\ApiRequest  $request, \Apitte\Core\Http\ApiResponse  $response) : \Apitte\Core\Http\ApiResponse

Parameters

\Apitte\Core\Http\ApiRequest $request

API request

\Apitte\Core\Http\ApiResponse $response

API response

Returns

\Apitte\Core\Http\ApiResponse —

API response

startService()

startService(\Apitte\Core\Http\ApiRequest  $request, \Apitte\Core\Http\ApiResponse  $response) : \Apitte\Core\Http\ApiResponse

Parameters

\Apitte\Core\Http\ApiRequest $request

API request

\Apitte\Core\Http\ApiResponse $response

API response

Returns

\Apitte\Core\Http\ApiResponse —

API response

stopService()

stopService(\Apitte\Core\Http\ApiRequest  $request, \Apitte\Core\Http\ApiResponse  $response) : \Apitte\Core\Http\ApiResponse

Parameters

\Apitte\Core\Http\ApiRequest $request

API request

\Apitte\Core\Http\ApiResponse $response

API response

Returns

\Apitte\Core\Http\ApiResponse —

API response

restartService()

restartService(\Apitte\Core\Http\ApiRequest  $request, \Apitte\Core\Http\ApiResponse  $response) : \Apitte\Core\Http\ApiResponse

Parameters

\Apitte\Core\Http\ApiRequest $request

API request

\Apitte\Core\Http\ApiResponse $response

API response

Returns

\Apitte\Core\Http\ApiResponse —

API response