# Module cloudi_service_shell

- Description
- Data Types
- Function Index
- Function Details

### CloudI Shell Service

.

Copyright © 2019-2021 Michael Truog

Version: 2.0.3 Dec 4 2021 00:12:53 ------------------------------------------------------------------------

Behaviours: `cloudi_service`.

Authors: Michael Truog (`mjtruog at protonmail dot com`).

## Description

### CloudI Shell Service

## Data Types

### agent()

`agent() = cloudi:agent()`

### module_response()

`module_response(Result) = {{ok, Result}, AgentNew::agent()} | {{error, cloudi:error_reason()}, AgentNew::agent()}`

### service_name()

`service_name() = cloudi:service_name()`

### timeout_milliseconds()

`timeout_milliseconds() = cloudi:timeout_milliseconds()`

## Function Index

cloudi_service_handle_request/11 |
cloudi_service_init/4 |
cloudi_service_terminate/3 |
exec/3 |
exec/4 |
validate_response/2 |

## Function Details

### cloudi_service_handle_request/11

`cloudi_service_handle_request(RequestType, Name, Pattern, RequestInfo, Request, Timeout, Priority, TransId, Pid, State, Dispatcher) -> any()`

### cloudi_service_init/4

`cloudi_service_init(Args, Prefix, Timeout, Dispatcher) -> any()`

### cloudi_service_terminate/3

`cloudi_service_terminate(Reason, Timeout, State) -> any()`

### exec/3

`exec(Agent::agent(), Prefix::service_name(), Command::nonempty_string() | binary()) -> module_response(binary())`

### exec/4

`exec(Agent::agent(), Prefix::service_name(), Command::nonempty_string() | binary(), Timeout::timeout_milliseconds()) -> module_response(binary())`

### validate_response/2

`validate_response(X1::cloudi_service:response_info(), Response::cloudi_service:response()) -> boolean()`

Generated by EDoc