config

package
v0.0.1-dev-7e239fa Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(filePath string) (config.Config, error)

func NewConfiger

func NewConfiger() (config.Config, error)

Types

type Address

type Address struct {
	Local     string `json:"local" yaml:"local"`
	Advertise string `json:"advertise" yaml:"advertise"`
}

type Identity

type Identity struct {
	OsPolicy       string           `json:"osPolicy" yaml:"osPolicy"`
	LogoutRedirect string           `json:"logoutRedirect" yaml:"logoutRedirect"`
	Keycloak       keycloak.Options `json:"keycloak" yaml:"keycloak"`
	Saml           saml.Options     `json:"saml" yaml:"saml"`
}

type K3s

type K3s struct {
	Auth string `json:"auth" yaml:"auth"`
}

type Listen

type Listen struct {
	Port    int `json:"port" yaml:"port"`
	Address `json:"Address" yaml:"address"`
}

type Metadata

type Metadata struct {
	Name    string            `json:"name" yaml:"name"`
	Version string            `json:"version" yaml:"version"`
	Labels  map[string]string `json:"labels" yaml:"labels"`
}

type Observability

type Observability struct {
	Log log.Options `json:"log" yaml:"log"`
}

type Options

type Options struct {
	Kind     string `json:"kind" yaml:"kind"`
	Metadata `json:"metadata" yaml:"metadata"`
	Spec     `json:"spec" yaml:"spec"`
}
var (
	Opts Options
)

func (*Options) String

func (o *Options) String() (string, error)

type ResourceControl

type ResourceControl struct {
	Openstack openstack.Options `json:"openstack" yaml:"openstack"`
	K3s       `json:"k3s" yaml:"k3s"`
}

type Spec

type Spec struct {
	Listen          `json:"listen" yaml:"listen"`
	Store           `json:"store" yaml:"store"`
	Identity        `json:"identity" yaml:"identity"`
	ResourceControl `json:"resourceControl" yaml:"resourceControl"`
	Observability   `json:"observability" yaml:"observability"`
}

type Store

type Store struct {
	MongoDB  mongo.Options  `json:"mongodb" yaml:"mongodb"`
	InfluxDB influx.Options `json:"influxdb" yaml:"influxdb"`
}

Jump to

Keyboard shortcuts

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