Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Port int `hcl:"port,optional"`
Bind string `hcl:"bind,optional"`
Tls *ProxyTLS `hcl:"tls,block"`
Nomad *NomadServer `hcl:"nomad,block"`
Validators []Validator `hcl:"validator,block"`
Mutators []Mutator `hcl:"mutator,block"`
Telemetry *Telemetry `hcl:"telemetry,block"`
}
func DefaultConfig ¶
func DefaultConfig() *Config
func LoadConfig ¶
type Logging ¶
type Logging struct {
Level string `hcl:"level,optional"`
SlogLogging *SlogLogging `hcl:"slog,block"`
OtelLogging *OtelLogging `hcl:"otel,block"`
}
type NomadServer ¶
type NomadServer struct {
Address string `hcl:"address"`
TLS *NomadServerTLS `hcl:"tls,block"`
}
type NomadServerTLS ¶
type NotationVerifierConfig ¶
type NotationVerifierConfig struct {
TrustPolicyFile string `hcl:"trust_policy_file"`
TrustStoreDir string `hcl:"trust_store_dir"`
RepoPlainHTTP bool `hcl:"repo_plain_http,optional"`
MaxSigAttempts int `hcl:"max_sig_attempts,optional"`
CredentialStoreFile string `hcl:"credential_store_file,optional"`
}
type OpaRule ¶
type OpaRule struct {
Query string `hcl:"query"`
Filename string `hcl:"filename"`
Notation *NotationVerifierConfig `hcl:"notation,block"`
}
type OtelLogging ¶
type OtelLogging struct {
Enabled *bool `hcl:"enabled,optional"`
}
type RequestContext ¶
type SlogLogging ¶
Click to show internal directories.
Click to hide internal directories.