config

package
v0.0.0-...-37e2758 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: MIT Imports: 3 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 {
	Debug             bool            `yaml:"debug"`
	SSH               SSH             `yaml:"ssh"`
	DB                DB              `yaml:"db"`
	AllowRegistration bool            `yaml:"allow_registration"`
	Users             map[string]User `yaml:"users"`
}

func LoadConfig

func LoadConfig(configs ...string) (*Config, error)

type DB

type DB struct {
	StorePath string `yaml:"store_path"`
}

type SSH

type SSH struct {
	Addr     string   `yaml:"addr"`
	HostKeys []string `yaml:"host_keys"`
}

type User

type User struct {
	Role       string   `yaml:"role"`
	SHA256Keys []string `yaml:"sha256_keys"`
}

Jump to

Keyboard shortcuts

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