Documentation
¶
Overview ¶
Package config defines the necessary types to configure the application. An example config file config.yaml is provided in the repository.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Check ¶
type Check struct {
Type CheckType `yaml:"type" default:"Contains"`
Source SourceType `yaml:"source" default:"ResponseBody"`
Value string `yaml:"value"`
}
type Config ¶
type Config struct {
commoncfg.BaseConfig `mapstructure:",squash"`
Server Server `yaml:"server"`
Healthcheck Healthcheck `yaml:"healthcheck"`
Healthchecks []Healthcheck `yaml:"healthchecks"`
Versions Versions `yaml:"versions"`
}
type Healthcheck ¶
type Healthcheck struct {
Enabled bool `yaml:"enabled" default:"false"`
Name string `yaml:"name" default:"healthcheck"`
Endpoint string `yaml:"endpoint" default:"/healthz"`
RefreshDuration time.Duration `yaml:"refreshDuration" default:"5s"`
Cluster Domain `yaml:"cluster"`
Kubernetes Domain `yaml:"kubernetes"`
Linkerd Linkerd `yaml:"linkerd"`
}
type Linkerd ¶
type Linkerd struct {
Enabled bool `yaml:"enabled"`
Tag string `yaml:"tag" default:"linkerd"`
ControlPlaneNamespace string `yaml:"controlPlaneNamespace" default:"linkerd"`
DataPlaneNamespace string `yaml:"dataPlaneNamespace" default:"linkerd"`
CNINamespace string `yaml:"cniNamespace" default:"linkerd-cni"`
RetryDeadline int `yaml:"retryDeadline" default:"300"`
CNIEnabled bool `yaml:"cniEnabled"`
Output string `yaml:"output" default:"short"`
Checks []string `yaml:"checks"`
Retry Retry `yaml:"retry"`
}
type ServiceResource ¶
type SourceType ¶
type SourceType string
const ( ResponseBodySourceType SourceType = "ResponseBody" ResponseStatusSourceType SourceType = "ResponseStatus" )
Click to show internal directories.
Click to hide internal directories.