config

package
v0.0.0-...-f4a484a Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2024 License: EUPL-1.2 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFscConfig

func GetFscConfig(path string) (FscConfig, FscConfigMap, error)

Types

type Attribute

type Attribute struct {
	Name       string      `yaml:"name"`
	Label      string      `yaml:"label"`
	Type       string      `yaml:"type"`
	Aggregator string      `yaml:"aggregator"`
	Multiple   bool        `yaml:"multiple"` // For types 'select' and 'file'
	Default    interface{} `yaml:"default"`

	// For number types
	Min  *interface{} `yaml:"min"`
	Max  *interface{} `yaml:"max"`
	Step *interface{} `yaml:"step"`

	// For select, radios, and checkboxes types
	Options []struct {
		Name  string `yaml:"name"`
		Label string `yaml:"label"`
	} `yaml:"options"`
}

type Config

type Config struct {
	Name                 string
	BackendListenAddress string

	GlobalConfig `mapstructure:",squash"`
	FscConfig
	SigmaFscEndpointNamesBySource FscConfigMap
}

type FscConfig

type FscConfig map[string]FscConfigValue

type FscConfigMap

type FscConfigMap = map[string]string

type FscConfigValue

type FscConfigValue struct {
	Endpoint     string `yaml:"endpoint"`
	FscGrantHash string `yaml:"FscGrantHash"`
}

type GlobalConfig

type GlobalConfig struct {
	Rubrieken []Rubriek `yaml:"rubrieken"`
}

func GetGlobalConfig

func GetGlobalConfig(path string) (GlobalConfig, error)

type Rubriek

type Rubriek struct {
	Name  string `yaml:"name"`
	Label string `yaml:"label"`

	Attributes []Attribute `yaml:"attributes"`
}

Jump to

Keyboard shortcuts

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