config

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authorization

type Authorization struct {
	Server                     string `yaml:"server" json:"server"`
	ServerMetadataProxyEnabled bool   `yaml:"serverMetadataProxyEnabled" json:"serverMetadataProxyEnabled"`
	AuthorizationProxyEnabled  bool   `yaml:"authorizationProxyEnabled" json:"authorizationProxyEnabled"`
	// DynamicClientRegistrationEnabled
	//
	// Deprecated: use DynamicClientRegistration instead
	DynamicClientRegistrationEnabled *bool                      `yaml:"dynamicClientRegistrationEnabled" json:"dynamicClientRegistrationEnabled"`
	DynamicClientRegistration        *DynamicClientRegistration `yaml:"dynamicClientRegistration" json:"dynamicClientRegistration"`
}

func (*Authorization) GetDynamicClientRegistration

func (c *Authorization) GetDynamicClientRegistration() DynamicClientRegistration

type Config

type Config struct {
	Host          *URL           `yaml:"host" json:"host"`
	Authorization Authorization  `yaml:"authorization" json:"authorization"`
	DexGRPCClient *DexGRPCClient `yaml:"dexGRPCClient,omitempty" json:"dexGRPCClient,omitempty"`
	Proxy         []Proxy        `yaml:"proxy" json:"proxy"`
}

func Parse

func Parse(r io.Reader) (*Config, error)

func ParseFile

func ParseFile(fileName string) (*Config, error)

func (*Config) Validate

func (c *Config) Validate() error

func (*Config) YAMLString

func (c *Config) YAMLString() (string, error)

type DexGRPCClient

type DexGRPCClient struct {
	Addr string `yaml:"addr"`
}

type DynamicClientRegistration

type DynamicClientRegistration struct {
	Enabled      bool `yaml:"enabled" json:"enabled"`
	PublicClient bool `yaml:"publicClient" json:"publicClient"`
}

type Proxy

type Proxy struct {
	Path           string              `yaml:"path" json:"path"`
	Http           *ProxyHttp          `yaml:"http,omitempty" json:"http,omitempty"`
	Authentication ProxyAuthentication `yaml:"authentication" json:"authentication"`
	Telemetry      ProxyTelemetry      `yaml:"telemetry" json:"telemetry"`
	Webhook        *Webhook            `yaml:"webhook,omitempty" json:"webhook,omitempty"`
}

type ProxyAuthentication

type ProxyAuthentication struct {
	Enabled bool `yaml:"enabled" json:"enabled"`
}

type ProxyHttp

type ProxyHttp struct {
	Url *URL `yaml:"url" json:"url"`
}

type ProxyTelemetry

type ProxyTelemetry struct {
	Enabled bool `yaml:"enabled" json:"enabled"`
}

type URL

type URL url.URL

func (URL) MarshalJSON

func (p URL) MarshalJSON() ([]byte, error)

func (URL) MarshalYAML

func (p URL) MarshalYAML() (any, error)

func (*URL) String

func (p *URL) String() string

func (*URL) UnmarshalJSON

func (p *URL) UnmarshalJSON(data []byte) error

func (*URL) UnmarshalYAML

func (p *URL) UnmarshalYAML(value *yaml.Node) error

type Webhook

type Webhook struct {
	Method string `yaml:"method,omitempty" json:"method,omitempty"`
	Url    URL    `yaml:"url" json:"url"`
}

Jump to

Keyboard shortcuts

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