preflight

package
v0.10.3 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2021 License: Apache-2.0 Imports: 9 Imported by: 17

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterCollectResult added in v0.10.0

type ClusterCollectResult struct {
	AllCollectedData map[string][]byte
	Collectors       collect.Collectors

	Spec *troubleshootv1beta2.Preflight
	// contains filtered or unexported fields
}

func (ClusterCollectResult) Analyze added in v0.10.0

Analyze runs the analyze phase of preflight checks

func (ClusterCollectResult) IsRBACAllowed added in v0.10.0

func (cr ClusterCollectResult) IsRBACAllowed() bool

type CollectOpts added in v0.9.27

type CollectOpts struct {
	Namespace              string
	IgnorePermissionErrors bool
	KubernetesRestConfig   *rest.Config
	ProgressChan           chan interface{}
}

type CollectResult added in v0.9.27

type CollectResult interface {
	Analyze() []*analyze.AnalyzeResult
	IsRBACAllowed() bool
}

func Collect added in v0.9.27

Collect runs the collection phase of preflight checks

func CollectHost added in v0.10.0

CollectHost runs the collection phase of host preflight checks

type HostCollectResult added in v0.10.0

type HostCollectResult struct {
	AllCollectedData map[string][]byte
	Collectors       collect.HostCollectors
	Spec             *troubleshootv1beta2.HostPreflight
}

func (HostCollectResult) Analyze added in v0.10.0

func (c HostCollectResult) Analyze() []*analyze.AnalyzeResult

Analyze runs the analysze phase of host preflight checks

func (HostCollectResult) IsRBACAllowed added in v0.10.0

func (cr HostCollectResult) IsRBACAllowed() bool

type UploadPreflightError added in v0.9.27

type UploadPreflightError struct {
	Error string `json:"error"`
}

type UploadPreflightResult added in v0.9.27

type UploadPreflightResult struct {
	IsFail bool `json:"isFail,omitempty"`
	IsWarn bool `json:"isWarn,omitempty"`
	IsPass bool `json:"isPass,omitempty"`

	Title   string `json:"title"`
	Message string `json:"message"`
	URI     string `json:"uri,omitempty"`
}

type UploadPreflightResults added in v0.9.27

type UploadPreflightResults struct {
	Results []*UploadPreflightResult `json:"results,omitempty"`
	Errors  []*UploadPreflightError  `json:"errors,omitempty"`
}

Jump to

Keyboard shortcuts

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