| Crates.io | shiva-dto |
| lib.rs | shiva-dto |
| version | 0.7.0 |
| created_at | 2016-09-14 12:55:40.843267+00 |
| updated_at | 2018-03-19 13:27:52.501703+00 |
| description | DTO for Shiva |
| homepage | |
| repository | |
| max_upload_size | |
| id | 6488 |
| size | 8,617 |
Instruction syntaxInstruction is a json with two fieldsactionThe action field is one of:
ENABLE_SSHDSABLE_SSHkeysThe keys field is an array of ssh Keys to (un)authorize
KeyA Key is composed of two String fields:
user which is the user idkey which is the actual public key{
"action": "ENABLE_SSH",
"keys" : [
{
"user": "user_foobar",
"key": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO16Z2PGX5UzhQLlKCxhJ4c+4+WQRPZAZtoL9oekpm keruspe@Lou"
}
]
}
Answer syntaxAnswer is a json with one fieldstatusThe status field is one of
SUCCESSFAILUREDestination syntaxDestination is a json with two filedshostThe host field is a String
portThe port field is a u32