package
Version:
v0.1.3
Opens a new window with list of versions in this module.
Published: Mar 14, 2023
License: MPL-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
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"`
}
type Mutator struct {
Type string `hcl:"type,label"`
Name string `hcl:"name,label"`
OpaRule *OpaRule `hcl:"opa_rule,block"`
Webhook *Webhook `hcl:"webhook,block"`
}
type NomadServerTLS struct {
CaFile string `hcl:"ca_file"`
CertFile string `hcl:"cert_file"`
KeyFile string `hcl:"key_file"`
InsecureSkipVerify bool `hcl:"insecure_skip_verify,optional"`
}
type OpaRule struct {
Query string `hcl:"query"`
Filename string `hcl:"filename"`
}
type ProxyTLS struct {
CertFile string `hcl:"cert_file"`
KeyFile string `hcl:"key_file"`
CaFile string `hcl:"ca_file"`
}
type Validator struct {
Type string `hcl:"type,label"`
Name string `hcl:"name,label"`
OpaRule *OpaRule `hcl:"opa_rule,block"`
Webhook *Webhook `hcl:"webhook,block"`
}
type Webhook struct {
Endpoint string `hcl:"endpoint"`
Method string `hcl:"method"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.