Documentation ¶
Index ¶
Constants ¶
View Source
const ( ProbeHpIlo = "hpilo" ProbeIdrac8 = "idrac8" ProbeIdrac9 = "idrac9" ProbeSupermicrox = "supermicrox" ProbeHpC7000 = "hpc7000" ProbeM1000e = "m1000e" ProbeQuanta = "quanta" ProbeHpCl100 = "hpcl100" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶ added in v0.3.8
type Option func(*Options)
Option is part of the functional options pattern, see the `With*` functions and https://dave.cheney.net/2014/10/17/functional-options-for-friendly-apis
func WithContext ¶ added in v0.4.0
WithContext sets the Options.Context option
func WithHintCallBack ¶ added in v0.3.8
WithHintCallBack sets the Options.HintCallback option.
func WithLogger ¶ added in v0.4.0
WithLogger sets the Options.Logger option
func WithProbeHint ¶ added in v0.3.8
WithProbeHint sets the Options.Hint option.
type Options ¶ added in v0.3.8
type Options struct { // Hint is a probe ID that hints which probe should be probed first. Hint string // HintCallBack is a function that is called back with a probe ID that might be used // for the next ScanAndConnect attempt. The callback is called only on successful scan. // If your code persists the hint as "best effort", always return a nil error. Callback is // synchronous. HintCallback func(string) error Logger logr.Logger Context context.Context }
Options to pass in
Click to show internal directories.
Click to hide internal directories.