Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultQuerySince = 30 * time.Minute
Variables ¶
View Source
var ErrAutoUpdateDisabledButExitCodeSet = errors.New("auto update is disabled but auto update by exit code is set")
Functions ¶
This section is empty.
Types ¶
type OpOption ¶ added in v0.0.5
type OpOption func(*Op)
func WithAutoUpdateExitCode ¶ added in v0.0.5
Triggers an auto update of GPUd itself by exiting the process with the given exit code. Useful when the machine is managed by the Kubernetes daemonset and we want to trigger an auto update when the daemonset restarts the machine.
func WithEnableAutoUpdate ¶ added in v0.0.5
func WithMachineID ¶ added in v0.0.5
func WithPipeInterval ¶ added in v0.0.5
type Response ¶
type Response struct { Error error `json:"error,omitempty"` States v1.LeptonStates `json:"states,omitempty"` Events v1.LeptonEvents `json:"events,omitempty"` Metrics v1.LeptonMetrics `json:"metrics,omitempty"` }
Click to show internal directories.
Click to hide internal directories.