config

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SaveDefault

func SaveDefault(path string)

Types

type Config

type Config struct {
	Version     string                         `yaml:"version,omitempty"`
	Server      Server                         `yaml:"server,omitempty"`
	SmdClient   client.SmdClient               `yaml:"smd,omitempty"`
	AccessToken string                         `yaml:"access-token,omitempty"`
	Targets     map[string]configurator.Target `yaml:"targets,omitempty"`
	PluginDirs  []string                       `yaml:"plugins,omitempty"`
	CertPath    string                         `yaml:"cacert,omitempty"`
}

func Load

func Load(path string) Config

func New

func New() Config

Creates a new config with default parameters.

func (*Config) Save

func (config *Config) Save(path string)

type Jwks

type Jwks struct {
	Uri     string `yaml:"uri"`
	Retries int    `yaml:"retries,omitempty"`
}

type Server

type Server struct {
	Host string `yaml:"host"`
	Port int    `yaml:"port"`
	Jwks Jwks   `yaml:"jwks,omitempty"`
}

Jump to

Keyboard shortcuts

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