preflight

package
v0.0.0-...-2da05cd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 3, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Builtin

func Builtin() string

Builtin returns the default set of kURL host preflights

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)

Directories

Path Synopsis
Package mock_preflight is a generated GoMock package.
Package mock_preflight is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL