server

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NAME = "pve-api-wrapper"
	// TODO: read and implement this https://akrabat.com/setting-the-version-of-a-go-application-when-building/
	VERSION = "v0.6.1"
)

Variables

This section is empty.

Functions

func New

func New(cfg serverConfig) *server

Types

type App

type App struct {
	Version    *bool  `arg:"--version" help:"display the program version"`
	PVEHost    string `arg:"--pve-host,env:PVE_HOST" help:"Proxmox virtual environment host" default:"localhost"`
	PVEPort    int    `arg:"--pve-port,env:PVE_PORT" help:"Proxmox virtual environment port" default:"8006"`
	Host       string `arg:"--host,env:WRAPPER_HOST" help:"API wrapper host" default:"localhost"`
	Port       int    `arg:"--port,env:WRAPPER_PORT" help:"API wrapper port" default:"8443"`
	TLSCrtPath string `arg:"--crt" help:"API wrapper tls crt path" default:"/etc/pve/local/pve-ssl.pem"`
	TLSKeyPath string `arg:"--key" help:"API wrapper tls key path" default:"/etc/pve/local/pve-ssl.key"`
}

func (App) Start

func (a App) Start()

Jump to

Keyboard shortcuts

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