config

package
v0.0.0-...-907143c Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthConfig

type AuthConfig struct {
	Secret string             `yaml:"secret"`
	GitHub AuthProviderConfig `yaml:"github"`
}

type AuthProviderConfig

type AuthProviderConfig struct {
	Enabled bool
	Id      string
	Secret  string
	Org     string
}

type Config

type Config struct {
	LogLevel       string           `yaml:"logLevel"`
	DevConfig      DevConfig        `yaml:"devConfig"`
	Providers      []ProviderConfig `yaml:"providers"`
	Database       DatabaseConfig   `yaml:"database"`
	Port           int              `yaml:"port"`
	Reconciliation ReconConfig      `yaml:"reconciliation"`
	Auth           AuthConfig       `yaml:"auth"`
	ExternalUrl    string           `yaml:"externalUrl"`
}

func LoadFrom

func LoadFrom(path string) (Config, error)

type DatabaseConfig

type DatabaseConfig struct {
	URI  string `yaml:"uri"`
	Name string `yaml:"name"`
}

type DevConfig

type DevConfig struct {
	UseFakeOauth2      bool     `yaml:"useFakeOauth2"`
	DisableAuth        bool     `yaml:"disableAuth"`
	UserGroups         []string `yaml:"userGroups"`
	DisableOriginCheck bool     `yaml:"disableOriginCheck"`
}

type ProviderConfig

type ProviderConfig struct {
	Id       string          `yaml:"id"`
	Name     string          `yaml:"name"`
	Host     string          `yaml:"host"`
	Features []provider.Type `yaml:"features"`
}

type ReconConfig

type ReconConfig struct {
	CacheSeconds int `yaml:"cacheSeconds"`
}

Jump to

Keyboard shortcuts

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