Crate inapi [−] [src]
Intecture API
The Intecture API is the interface between your code and your managed hosts. The library is organised into a set of primitives, which are the building blocks used to configure your systems.
Communication
The API communicates with the Agent service on your managed hosts via several ZeroMQ sockets. If the service is not running on your host when you run you code, the program will hang while it attempts to connect to a non-existent socket.
Modules
command_ffi |
FFI interface for Command |
directory_ffi |
FFI interface for Directory |
file_ffi |
FFI interface for File |
host_ffi |
FFI interface for Host |
package_ffi |
FFI interface for Package |
payload_ffi |
FFI interface for Payload |
service_ffi |
FFI interface for Service |
template_ffi |
FFI interface for Template |
Macros
needarray |
Helper that returns a |
needbool |
Helper that returns a |
needf64 |
Helper that returns a |
needi64 |
Helper that returns a |
neednull |
Helper that returns a |
needobj |
Helper that returns a |
needstr |
Helper that returns a |
needu64 |
Helper that returns a |
wantarray |
Helper that returns an |
wantbool |
Helper that returns an |
wantf64 |
Helper that returns an |
wanti64 |
Helper that returns an |
wantnull |
Helper that returns an |
wantobj |
Helper that returns an |
wantstr |
Helper that returns an |
wantu64 |
Helper that returns an |
Structs
Command |
Primitive for running shell commands. |
CommandResult |
Result attributes returned from the managed host. |
Directory |
Primitive for managing directories. |
File |
Primitive for managing files. |
FileOwner |
Owner's user and group for a file. |
Host |
Primitive for communicating with a managed host. |
MapBuilder |
|
Package |
Primitive for installing and managing software packages. |
Payload |
Payloads are self-contained projects that encapsulate a specific feature or system function. |
ProviderFactory | |
Service |
Primitive for controlling service daemons. |
Template |
Primitive for rendering templates into uploadable files. |
VecBuilder |
Enums
DirectoryOpts |
Options for controlling directory operations. |
Error |
Global error type. |
FileOptions | |
Providers |
Supported package providers. |
ServiceRunnable |
Runnables are the executable items that a Service calls actions on. |
Value |
Represents any valid JSON value. |
Functions
geterr |