config

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	OIDC     OIDCConfig `json:"oidc"`
	User     UserConfig `json:"user"`
	TokenKey string     `json:"tokenKey"`
	Targets  []Target   `json:"targets,omitempty"`
}

func Load

func Load(path string) (*Config, error)

type OIDCConfig

type OIDCConfig struct {
	IssuerURL    string   `json:"issuerUrl"`
	ClientID     string   `json:"clientId"`
	ClientSecret string   `json:"clientSecret"`
	Scopes       []string `json:"scopes"`
	AuthMethod   string   `json:"authMethod"`
}

type Target added in v0.0.3

type Target struct {
	File string `json:"file"`
	Key  string `json:"key"`
}

type UserConfig

type UserConfig struct {
	Username string `json:"username,omitempty"`
	Password string `json:"password,omitempty"`
}

Jump to

Keyboard shortcuts

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