aboutsummaryrefslogtreecommitdiffstats
path: root/src/c_lhosts.go
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-02-01 20:20:20 +0100
committerJoe <rbo@gmx.us>2024-02-01 20:20:20 +0100
commit80f8e7ecc663ca85e7dab7d4e60c8c6113bc4e9d (patch)
tree998a6f700c1088ae1f5c137bdd89765ab2f37b04 /src/c_lhosts.go
parentok (diff)
downloadhardflip-80f8e7ecc663ca85e7dab7d4e60c8c6113bc4e9d.tar.gz
hardflip-80f8e7ecc663ca85e7dab7d4e60c8c6113bc4e9d.tar.bz2
hardflip-80f8e7ecc663ca85e7dab7d4e60c8c6113bc4e9d.tar.xz
hardflip-80f8e7ecc663ca85e7dab7d4e60c8c6113bc4e9d.tar.zst
hardflip-80f8e7ecc663ca85e7dab7d4e60c8c6113bc4e9d.zip
stackin
Diffstat (limited to 'src/c_lhosts.go')
-rw-r--r--src/c_lhosts.go18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/c_lhosts.go b/src/c_lhosts.go
index 626e7b3..39800f6 100644
--- a/src/c_lhosts.go
+++ b/src/c_lhosts.go
@@ -51,6 +51,19 @@
package main
+
+type StackSettings struct {
+ UserDomainId string `yaml:"user_domain_id"`
+ ProjectId string `yaml:"project_id"`
+ IdentityAPI string `yaml:"identity_api_version"`
+ ImageAPI string `yaml:"image_api_version"`
+ NetworkAPI string `yaml:"network_api_version"`
+ VolumeAPI string `yaml:"volume_api_version"`
+ RegionName string `yaml:"region_name"`
+ EndpointType string `yaml:"endpoint_type"`
+ Interface string `yaml:"interface"`
+}
+
type JumpSettings struct {
Host string `yaml:"host"`
Port uint16 `yaml:"port"`
@@ -61,6 +74,8 @@ type JumpSettings struct {
// 0: ssh
// 1: rdp
+// 2: single cmd
+// 3: openstack
type HostNode struct {
Protocol int8 `yaml:"type"`
Name string `yaml:"name"`
@@ -77,6 +92,7 @@ type HostNode struct {
Dynamic bool `yaml:"dynamic"`
Note string `yaml:"note"`
Drive map[string]string `yaml:"drive"`
+ Stack StackSettings `yaml:"openstack"`
Filename string
Parent *DirsNode
next *HostNode
@@ -144,6 +160,8 @@ func (host *HostNode) protocol_str() string {
switch host.Protocol {
case 0: return "SSH"
case 1: return "RDP"
+ case 2: return "Single command"
+ case 3: return "OpenStack"
default: return ""
}
}