config

package
v0.0.0-...-e9fb662 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthorizationProfileConfig

type AuthorizationProfileConfig struct {
	Condition ConditionConfig `yaml:"condition"`
}

type ConditionAndConfig

type ConditionAndConfig struct {
	Conditions []*ConditionConfig `yaml:"conditions"`
}

func (*ConditionAndConfig) UnmarshalYAML

func (cond *ConditionAndConfig) UnmarshalYAML(value *yaml.Node) error

type ConditionClaimConfig

type ConditionClaimConfig struct {
	ClaimTpl string `yaml:"claim"`
}

func (*ConditionClaimConfig) UnmarshalYAML

func (cond *ConditionClaimConfig) UnmarshalYAML(value *yaml.Node) error

type ConditionConfig

type ConditionConfig struct {
	True         *ConditionTrueConfig         `yaml:"true"`
	False        *ConditionFalseConfig        `yaml:"false"`
	And          *ConditionAndConfig          `yaml:"and"`
	Or           *ConditionOrConfig           `yaml:"or"`
	Not          *ConditionNotConfig          `yaml:"not"`
	Redirect     *ConditionRedirectConfig     `yaml:"redirect"`
	Unauthorized *ConditionUnauthorizedConfig `yaml:"unauthorized"`
	Host         *ConditionHostConfig         `yaml:"host"`
	Path         *ConditionPathConfig         `yaml:"path"`
	Claim        *ConditionClaimConfig        `yaml:"claim"`
}

func (*ConditionConfig) UnmarshalYAML

func (cond *ConditionConfig) UnmarshalYAML(value *yaml.Node) error

type ConditionFalseConfig

type ConditionFalseConfig struct {
}

type ConditionHostConfig

type ConditionHostConfig struct {
	HostTpl string `yaml:"host"`
}

func (*ConditionHostConfig) UnmarshalYAML

func (cond *ConditionHostConfig) UnmarshalYAML(value *yaml.Node) error

type ConditionNotConfig

type ConditionNotConfig struct {
	Condition *ConditionConfig `yaml:"condition"`
}

type ConditionOrConfig

type ConditionOrConfig struct {
	Conditions []*ConditionConfig `yaml:"conditions"`
}

func (*ConditionOrConfig) UnmarshalYAML

func (cond *ConditionOrConfig) UnmarshalYAML(value *yaml.Node) error

type ConditionPathConfig

type ConditionPathConfig struct {
	PathTpl string `yaml:"path"`
}

func (*ConditionPathConfig) UnmarshalYAML

func (cond *ConditionPathConfig) UnmarshalYAML(value *yaml.Node) error

type ConditionRedirectConfig

type ConditionRedirectConfig struct {
}

type ConditionTrueConfig

type ConditionTrueConfig struct {
}

type ConditionUnauthorizedConfig

type ConditionUnauthorizedConfig struct {
}

type MatchProfileConfig

type MatchProfileConfig struct {
	Condition ConditionConfig `yaml:"condition"`
}

type MutatorConfig

type MutatorConfig struct {
	Header *MutatorHeaderConfig `yaml:"header"`
}

func (*MutatorConfig) UnmarshalYAML

func (mut *MutatorConfig) UnmarshalYAML(value *yaml.Node) error

type MutatorHeaderConfig

type MutatorHeaderConfig struct {
	NameTpl  string `yaml:"name"`
	ValueTpl string `yaml:"value"`
}

type MutatorProfileConfig

type MutatorProfileConfig struct {
	Mutators []MutatorConfig `yaml:"mutators"`
}

type OidcProfileConfig

type OidcProfileConfig struct {
	Oidc struct {
		DiscoveryUrlTmpl string `yaml:"discoveryURL"`
		ClientIdTmpl     string `yaml:"clientId"`
		ClientSecretTmpl string `yaml:"clientSecret"`
		ScopesTmpl       string `yaml:"scopes"`
		StandardFlow     struct {
			CallbackTimeoutTmpl string `yaml:"callbackTimeout"`
		} `yaml:"standardFlow"`
	} `yaml:"oidc"`
	LoginTimeoutTmpl string `yaml:"loginTimeout"`
	Cookie           struct {
		DomainTmpl string `yaml:"domain"`
		PathTmpl   string `yaml:"path"`
		SecureTmpl string `yaml:"secure"`
	} `yaml:"cookie"`
}

type RootConfig

type RootConfig struct {
	Http struct {
		Address string `yaml:"address"`
		Port    int    `yaml:"port"`
		BaseUrl string `yaml:"baseUrl"`
	} `yaml:"http"`
	MatchProfiles         map[string]MatchProfileConfig         `yaml:"matchProfiles"`
	OidcProfiles          map[string]OidcProfileConfig          `yaml:"oidcProfiles"`
	AuthorizationProfiles map[string]AuthorizationProfileConfig `yaml:"authorizationProfiles"`
	MutatorProfiles       map[string]MutatorProfileConfig       `yaml:"mutatorProfiles"`
	Rules                 []RuleConfig                          `yaml:"rules"`
}

type RuleConfig

type RuleConfig struct {
	MatchProfileTmpl         string `yaml:"matchProfile"`
	OidcProfileTmpl          string `yaml:"oidcProfile"`
	AuthorizationProfileTmpl string `yaml:"authorizationProfile"`
	MutatorProfileTmpl       string `yaml:"mutatorProfile"`
}

Jump to

Keyboard shortcuts

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