Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HealthCheckerOptions ¶
type HealthCheckerOptions struct {
Component string
Service string
EnableRepair bool
CriCtlPath string
CriSocketPath string
CriTimeout time.Duration
CoolDownTime time.Duration
LoopBackTime time.Duration
HealthCheckTimeout time.Duration
LogPatterns types.LogPatternFlag
}
HealthCheckerOptions are the options used to configure the health checker.
func NewHealthCheckerOptions ¶
func NewHealthCheckerOptions() *HealthCheckerOptions
NewHealthCheckerOptions returns an empty health check options struct.
func (*HealthCheckerOptions) AddFlags ¶
func (hco *HealthCheckerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds health checker command line options to pflag.
func (*HealthCheckerOptions) IsValid ¶
func (hco *HealthCheckerOptions) IsValid() error
IsValid validates health checker command line options. Returns error if invalid, nil otherwise.
func (*HealthCheckerOptions) SetDefaults ¶
func (hco *HealthCheckerOptions) SetDefaults()
SetDefaults sets the defaults values for the dependent flags.
Click to show internal directories.
Click to hide internal directories.