Crates.io | lunanode |
lib.rs | lunanode |
version | 0.1.4 |
source | src |
created_at | 2022-10-09 14:59:24.515606 |
updated_at | 2022-12-04 23:48:59.892229 |
description | Tired of using a web interface for your VPS, Email, and domain provider? Check out this tool! It's a CLI tool for Lunanode: A Canadian VPS hosting company. |
homepage | |
repository | https://git.tait.tech/tait/lunanode/ |
max_upload_size | |
id | 684040 |
size | 142,560 |
lunanode
This is an API to work with the LunaNode's OpenStack-compatible [citation needed] API. This crate currently covers only the most basic functionality from the Lunanode API. Currently 43/98 (44%) API calls. If you'd like to contribute additional functionality, please feel free to make an MR.
cargo install lunanode
Add the LUNANODE_API_KEY
, LUNANODE_KEY_ID
and LUNANODE_API_PARTIALKEY
(the first 64 chars of LUNANODE_API_KEY
) to your environment variables.
Without these variables set, the tool will not run. You can also specify the keys manually through command-line arguments.
See lunanode help
screen.
Available subcommands:
billing
dns
dyn
floating
(for LunaNode's floating IP system)image
network
record
(DNS)ssh-key
vm
volume
zone
Note that right now, only getting data through the list/
endpoints is supported.
See section help for more details, i.e.: lunanode image help
#[deny(missing_docs)]
is on, but some of the decisions in the code aren't explained very well.enum
. Make every non-String type some kind of enum.email user add tait@tait.tech
should automatically fetch the domain ID required to make this call normally: email user add DOMAIN_ID tait@tait.tech
.vm shutdown my_webserver
would automatically exapnd to find the VM with the name my_webserver and have it shutdown expanding the name into the UUID: vm shutdown ffff-ffff-ffff-ffffffffffffffff
.