Documentation ¶
Overview ¶
Package machinestatus provides functionality to poll the state of machines, i.e., power, connectivity, etc.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AgentService ¶
type AgentService interface { AllConnectedMachines() map[string]struct{} IsAccessible(ctx context.Context, machineID string) (bool, error) }
AgentService is the interface for controlling Talos agent.
type Poller ¶
type Poller struct {
// contains filtered or unexported fields
}
Poller polls the machines periodically and updates their statuses.
func NewPoller ¶
func NewPoller(agentService AgentService, powerClientFactory PowerClientFactory, state state.State, logger *zap.Logger) *Poller
NewPoller creates a new Poller.
type PowerClientFactory ¶
type PowerClientFactory interface {
GetClient(powerManagement *specs.PowerManagement) (power.Client, error)
}
PowerClientFactory is the interface for creating power clients.
Click to show internal directories.
Click to hide internal directories.