config

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(file string)

Load loads the config form the provided filepath

func LoadDefault

func LoadDefault()

LoadDefault loads the config from one of the default config locations

Types

type Config added in v0.2.0

type Config struct {
	URL string `yaml:"instance"`

	DefaultProvider          string            `yaml:"default_provider"`
	DefaultTokenCapabilities []string          `yaml:"default_token_capabilities"`
	TokenNamePrefix          string            `yaml:"token_name_prefix"`
	UseWLCGTokenDiscovery    bool              `yaml:"use_wlcg_token_discovery"`
	Providers                map[string]string `yaml:"providers"`

	Hostname string
	// contains filtered or unexported fields
}

func Get

func Get() *Config

Get returns the config

func (*Config) Mytoken added in v0.2.0

func (c *Config) Mytoken() *mytokenlib.MytokenServer

func (*Config) SetMytokenServer added in v0.6.1

func (c *Config) SetMytokenServer(mytoken *mytokenlib.MytokenServer)

Jump to

Keyboard shortcuts

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