console

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(log *slog.Logger, spec *Specification, client metalgo.Client) (*consoleServer, error)

Types

type Specification

type Specification struct {
	BindAddress            string `default:"localhost"`
	MetalAPIURL            string `default:"http://localhost:8080" envconfig:"metal_api_url"`
	Port                   int    `default:"2222"`
	HMACKey                string `default:"" envconfig:"hmac_key"`
	PublicKey              string `default:"" split_words:"true"`
	BmcReverseProxyAddress string `default:"" split_words:"true"`
	AdminGroupName         string `default:"maas-all-all-admin" envconfig:"admin_group_name" split_words:"true"`
}

Specification configures the application via environment.

func (*Specification) DevMode

func (s *Specification) DevMode() bool

Jump to

Keyboard shortcuts

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