config

package
v0.32.55 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2025 License: MIT Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultConfigFilePath = filepath.Join(os.Getenv("HOME"), ".config", "aserto", "config.json")
View Source
var ErrEnvironment = 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