config

package
v0.0.0-...-6e861bb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Kubernetes Kubernetes `hcl:"kubernetes,block"`
	Proxmox    Proxmox    `hcl:"proxmox,block"`
}

func FromFile

func FromFile(filename string) (*Config, error)

type Kubernetes

type Kubernetes struct {
	Dashboard KubernetesDashboard `hcl:"dashboard,block"`
	Node      Node                `hcl:"node,block"`
}

type KubernetesDashboard

type KubernetesDashboard struct {
	Namespace string `hcl:"namespace"`
	User      string `hcl:"user"`
	URL       string `hcl:"url"`
}

type Node

type Node struct {
	Name     string `hcl:"name,label"`
	Addr     string `hcl:"addr"`
	Username string `hcl:"username"`

	// Password is required if private key is not set.
	Password string `hcl:"password,optional"`

	// PrivateKeyFile is required if password is not set.
	PrivateKeyFile string `hcl:"private_key_file,optional"`

	// HostKey is required if password is not set.
	HostKey string `hcl:"host_key,optional"`
}

type Proxmox

type Proxmox struct {
	TimeoutRaw string `hcl:"timeout"`
	Timeout    time.Duration
	Nodes      []Node `hcl:"node,block"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL