config

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AuthTypeUntrusted = AuthType("untrusted")
	AuthTypeTLS       = AuthType("tls")
	AuthTypeOIDC      = AuthType("oidc")
)
View Source
const (
	// Name of the application, also determines the directory names for e.g.
	// the applications var and log directories.
	ApplicationName = "operations-center"

	// Name of the env var prefix used by this application.
	ApplicationEnvPrefix = "OPERATIONS_CENTER"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthType

type AuthType string

type Config

type Config struct {
	// Config from global flags
	Verbose    bool   `yaml:"-"`
	Debug      bool   `yaml:"-"`
	ForceLocal bool   `yaml:"-"`
	ConfigDir  string `yaml:"-"`

	DefaultRemote string            `yaml:"default_remote"`
	Remotes       map[string]Remote `yaml:"remotes"`

	CertInfo *incusTLS.CertInfo `yaml:"-"`
}

func (*Config) LoadConfig

func (c *Config) LoadConfig(path string) error

func (*Config) SaveConfig

func (c *Config) SaveConfig() error

type Remote

type Remote struct {
	Addr       string          `yaml:"addr"`
	AuthType   AuthType        `yaml:"auth_type"`
	ServerCert api.Certificate `yaml:"server_cert"`
}

Jump to

Keyboard shortcuts

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