Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Bind string `env:"BIND" yaml:"bind"`
Backend *Backend `yaml:"backend"`
EnableIPv6 bool `yaml:"ipv6"`
HTTPErrorCode int `yaml:"httpErrorCode"`
Selector LabelSelector `yaml:"selector,omitempty"`
Timeout time.Duration `yaml:"timeout"`
TimeoutShutdown time.Duration `yaml:"timeoutShutdown"`
Concurrency int `yaml:"concurrency"`
Metadata bool `yaml:"metadata"`
MaxConnDuration time.Duration `yaml:"maxConnectionDuration"`
MaxConnsPerHost int `yaml:"maxConnectionsPerHost"`
Tenant *TenantConfig `yaml:"tenant"`
PipeIn *fhu.InmemoryListener
PipeOut *fhu.InmemoryListener
}
type LabelSelector ¶
type LabelSelector struct {
MatchLabels map[string]string `yaml:"matchLabels,omitempty"`
MatchExpressions []LabelSelectorRequirement `yaml:"matchExpressions,omitempty"`
}
func (*LabelSelector) Selector ¶
func (l *LabelSelector) Selector() *metav1.LabelSelector
type TenantConfig ¶
type TenantConfig struct {
Labels []string `yaml:"labels"`
SetNamespaceAsDefault bool `yaml:"setNamespaceAsDefault"`
Prefix string `yaml:"prefix"`
PrefixPreferSource bool `yaml:"prefixPreferSource"`
LabelRemove bool `yaml:"labelRemove"`
Header string `yaml:"header"`
Default string `yaml:"default"`
AcceptAll bool `yaml:"acceptAll"`
}
Click to show internal directories.
Click to hide internal directories.