Crates.io | shiva-dto |
lib.rs | shiva-dto |
version | 0.7.0 |
source | src |
created_at | 2016-09-14 12:55:40.843267 |
updated_at | 2018-03-19 13:27:52.501703 |
description | DTO for Shiva |
homepage | |
repository | |
max_upload_size | |
id | 6488 |
size | 8,617 |
Instruction
syntaxInstruction
is a json with two fieldsaction
The action
field is one of:
ENABLE_SSH
DSABLE_SSH
keys
The keys
field is an array of ssh Key
s to (un)authorize
Key
A 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 fieldstatus
The status
field is one of
SUCCESS
FAILURE
Destination
syntaxDestination
is a json with two filedshost
The host
field is a String
port
The port
field is a u32