hub

package
v0.0.0-...-a0e2ce6 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2025 License: MIT Imports: 34 Imported by: 0

Documentation

Overview

Package hub handles updating systems and serving the web UI.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEnv

func GetEnv(key string) (value string, exists bool)

GetEnv retrieves an environment variable with a "BESZEL_HUB_" prefix, or falls back to the unprefixed key.

func Update

func Update(_ *cobra.Command, _ []string)

Update updates beszel to the latest version

Types

type Config

type Config struct {
	Systems []SystemConfig `yaml:"systems"`
}

type Hub

type Hub struct {
	// contains filtered or unexported fields
}

func NewHub

func NewHub(app *pocketbase.PocketBase) *Hub

func (*Hub) Run

func (h *Hub) Run()

type SystemConfig

type SystemConfig struct {
	Name  string   `yaml:"name"`
	Host  string   `yaml:"host"`
	Port  uint16   `yaml:"port"`
	Users []string `yaml:"users"`
}

Jump to

Keyboard shortcuts

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