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 ¶
PingEndpoint attempts to make an API ping request to the local cilium-health endpoint, and returns whether this was successful.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.