shiva-dto

Crates.ioshiva-dto
lib.rsshiva-dto
version0.7.0
sourcesrc
created_at2016-09-14 12:55:40.843267
updated_at2018-03-19 13:27:52.501703
descriptionDTO for Shiva
homepage
repository
max_upload_size
id6488
size8,617
Marc-Antoine Perennou (Keruspe)

documentation

README

Instruction syntax

Each Instruction is a json with two fields

action

The action field is one of:

  • ENABLE_SSH
  • DSABLE_SSH

keys

The keys field is an array of ssh Keys to (un)authorize

Key

A Key is composed of two String fields:

  • user which is the user id
  • key which is the actual public key

Example

{
    "action": "ENABLE_SSH",
    "keys"  : [
        {
            "user": "user_foobar",
            "key":  "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO16Z2PGX5UzhQLlKCxhJ4c+4+WQRPZAZtoL9oekpm keruspe@Lou"
        }
    ]
}

Answer syntax

Each Answer is a json with one field

status

The status field is one of

  • SUCCESS
  • FAILURE

Destination syntax

Each Destination is a json with two fileds

host

The host field is a String

port

The port field is a u32

Commit count: 0

cargo fmt