types

package
v0.8.7 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

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

	DefaultCriCtl        = "/usr/bin/crictl"
	DefaultCriSocketPath = "unix:///var/run/containerd/containerd.sock"

	KubeletComponent  = "kubelet"
	CRIComponent      = "cri"
	DockerComponent   = "docker"
	ContainerdService = "containerd"

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

	LogPatternFlagSeparator = ":"
)

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

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