options

package
v0.8.20 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 16, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL