Struct inapi::Host [] [src]

pub struct Host {
    pub hostname: String,
    // some fields omitted
}

Primitive for communicating with a managed host.

Examples

let mut host = Host::connect("hosts/myhost.json").unwrap();

let cmd = Command::new("whoami");
let result = cmd.exec(&mut host).unwrap();

Fields

Hostname or IP of managed host

Methods

impl Host
[src]

[src]

Create a new Host connected to the endpoint specified in the data file.

This function expects to find the following keys in the root namespace: "hostname", "api_port", "file_port".

[src]

Create a new Host connected to the specified endpoint. Note that this function does not load any user data.

[src]

Create a new Host specifically for use inside a payload.

[src]

Get data for Host.

[src]

Get a reference counted version of data for Host.