Documentation ¶
Index ¶
- func Builtin() string
- func BuiltinCluster() string
- func CollectHostResults(_ context.Context, spec *troubleshootv1beta2.HostPreflight, ...) (preflight.CollectResult, error)
- func CollectResults(spec *troubleshootv1beta2.Preflight, progressChan chan interface{}) (preflight.CollectResult, error)
- func Decode(data []byte) (*troubleshootv1beta2.Preflight, error)
- func HostDecode(data []byte) (*troubleshootv1beta2.HostPreflight, error)
- func Run(ctx context.Context, spec *troubleshootv1beta2.HostPreflight, ...) ([]*analyze.AnalyzeResult, error)
- type RunnerCluster
- type RunnerClusterPreflight
- type RunnerHost
- type RunnerHostPreflight
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuiltinCluster ¶
func BuiltinCluster() string
Builtin returns the default set of kURL host preflights
func CollectHostResults ¶
func CollectHostResults(_ context.Context, spec *troubleshootv1beta2.HostPreflight, progressChan chan interface{}) (preflight.CollectResult, error)
CollectHostResults collects host preflights, and returns the CollectResult
func CollectResults ¶
func CollectResults(spec *troubleshootv1beta2.Preflight, progressChan chan interface{}) (preflight.CollectResult, error)
CollectResults collects host preflights, and returns the CollectResult
func Decode ¶
func Decode(data []byte) (*troubleshootv1beta2.Preflight, error)
Decode decodes preflight spec yaml files
func HostDecode ¶
func HostDecode(data []byte) (*troubleshootv1beta2.HostPreflight, error)
HostDecode decodes preflight spec yaml files
func Run ¶
func Run(ctx context.Context, spec *troubleshootv1beta2.HostPreflight, progressChan chan interface{}) ([]*analyze.AnalyzeResult, error)
Run collects host preflights and analyzes them, returning the analysis
Types ¶
type RunnerCluster ¶
type RunnerCluster interface {
RunClusterPreflight(spec *troubleshootv1beta2.Preflight, progressChan chan interface{}) ([]*analyze.AnalyzeResult, error)
}
type RunnerClusterPreflight ¶
type RunnerClusterPreflight struct { }
func (*RunnerClusterPreflight) RunClusterPreflight ¶
func (r *RunnerClusterPreflight) RunClusterPreflight(spec *troubleshootv1beta2.Preflight, progressChan chan interface{}) ([]*analyze.AnalyzeResult, error)
type RunnerHost ¶
type RunnerHost interface {
RunHostPreflights(ctx context.Context, spec *troubleshootv1beta2.HostPreflight, progressChan chan interface{}) ([]*analyze.AnalyzeResult, error)
}
type RunnerHostPreflight ¶
type RunnerHostPreflight struct { }
func (*RunnerHostPreflight) RunHostPreflights ¶
func (r *RunnerHostPreflight) RunHostPreflights(ctx context.Context, spec *troubleshootv1beta2.HostPreflight, progressChan chan interface{}) ([]*analyze.AnalyzeResult, error)
Click to show internal directories.
Click to hide internal directories.