types

package
v0.8.10 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultLoopBackTime       = 0 * time.Minute
	DefaultCoolDownTime       = 2 * time.Minute
	DefaultHealthCheckTimeout = 10 * time.Second
	CmdTimeout                = 10 * time.Second
	LogParsingTimeLayout      = "2006-01-02 15:04:05"

	KubeletComponent   = "kubelet"
	CRIComponent       = "cri"
	DockerComponent    = "docker"
	ContainerdService  = "containerd"
	KubeProxyComponent = "kube-proxy"

	KubeletHealthCheckEndpoint   = "http://127.0.0.1:10248/healthz"
	KubeProxyHealthCheckEndpoint = "http://127.0.0.1:10256/healthz"

	LogPatternFlagSeparator = ":"
)
View Source
const (
	DefaultCriCtl        = "/usr/bin/crictl"
	DefaultCriSocketPath = "unix:///var/run/containerd/containerd.sock"
	UptimeTimeLayout     = "Mon 2006-01-02 15:04:05 MST"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type HealthChecker

type HealthChecker interface {
	CheckHealth() (bool, error)
}

type LogPatternFlag added in v0.8.7

type LogPatternFlag struct {
	// contains filtered or unexported fields
}

LogPatternFlag defines the flag for log pattern health check. It contains a map of <log pattern> to <failure threshold for the pattern>

func (*LogPatternFlag) GetLogPatternCountMap added in v0.8.7

func (lpf *LogPatternFlag) GetLogPatternCountMap() map[string]int

GetLogPatternCountMap returns the stored log count map

func (*LogPatternFlag) Set added in v0.8.7

func (lpf *LogPatternFlag) Set(value string) error

Set implements the Set function for flag.Value interface

func (*LogPatternFlag) String added in v0.8.7

func (lpf *LogPatternFlag) String() string

String implements the String function for flag.Value interface Returns a space separated sorted by keys string of map values.

func (*LogPatternFlag) Type added in v0.8.7

func (lpf *LogPatternFlag) Type() string

Type implements the Type function for flag.Value interface

Jump to

Keyboard shortcuts

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