health

package
v1.18.13 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2026 License: Apache-2.0 Imports: 49 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// LaunchTime is the expected time within which the health endpoint
	// should be able to be successfully run and its BPF program attached.
	LaunchTime = 30 * time.Second
)

Variables

View Source
var Cell = cell.Module(
	"cilium-health",
	"Cilium health infrastructure",
	cell.Provide(newCiliumHealthManager),
)

Cell provides the Cilium health infrastructure that is responsible for checking the connectivity between Cilium nodes and Cilium endpoints.

Functions

This section is empty.

Types

type CiliumHealth

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

CiliumHealth launches and polls the cilium-health daemon

func (*CiliumHealth) GetStatus

func (ch *CiliumHealth) GetStatus() *models.Status

GetStatus returns the status of the cilium-health daemon.

type CiliumHealthManager

type CiliumHealthManager interface {
	Init(ctx context.Context, routingInfo *linuxrouting.RoutingInfo, addCleanerFunc func(newFunc func())) error
	GetStatus() *models.Status
}

type Client

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

Client wraps a client to a specific cilium-health endpoint instance, to provide convenience methods such as PingEndpoint().

func (*Client) PingEndpoint

func (c *Client) PingEndpoint() error

PingEndpoint attempts to make an API ping request to the local cilium-health endpoint, and returns whether this was successful.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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