config

package
v0.32.5 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultConfigFilePath = filepath.Join(os.Getenv("HOME"), ".config", "aserto", "config.json")
View Source
var EnvironmentErr = errors.New("unknown environment")

Functions

This section is empty.

Types

type Auth

type Auth struct {
	Issuer   string `json:"issuer"`
	ClientID string `json:"client_id"`
	Audience string `json:"audience"`
}

func (*Auth) GetSettings

func (auth *Auth) GetSettings() *auth0.Settings

type Config

type Config struct {
	TenantID       string     `json:"tenant_id"`
	Services       x.Services `json:"services"`
	Auth           *Auth      `json:"auth"`
	DecisionLogger dl.Config  `json:"decision_logger"`
	ConfigName     string     `json:"config_name"`
}

func NewConfig

func NewConfig(path Path, overrides ...Overrider) (*Config, error)

func NewTestConfig added in v0.8.6

func NewTestConfig(reader io.Reader, overrides ...Overrider) (*Config, error)

type Overrider

type Overrider func(*Config)

Overrider is a func that mutates configuration.

type Path

type Path string

Jump to

Keyboard shortcuts

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