troubleshoot

package
v0.14.2 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTroubleshootLoggerToWriter added in v0.11.0

func NewTroubleshootLoggerToWriter(out io.Writer) logr.Logger

func RunTroubleshootCmd added in v0.11.0

func RunTroubleshootCmd(ctx context.Context, log logr.Logger, apiReader client.Reader, namespace string, kubeConfig rest.Config)

Types

type Auths

type Auths struct {
	Auths Endpoints `json:"auths"`
}

type Check added in v0.10.0

type Check struct {
	Do            troubleshootFunc
	Prerequisites []*Check
	Name          string
}

type ChecksResults added in v0.10.0

type ChecksResults struct {
	// contains filtered or unexported fields
}

func NewChecksResults added in v0.10.0

func NewChecksResults() ChecksResults

type CommandBuilder

type CommandBuilder struct {
	// contains filtered or unexported fields
}

func NewTroubleshootCommandBuilder

func NewTroubleshootCommandBuilder() CommandBuilder

func (CommandBuilder) Build

func (builder CommandBuilder) Build() *cobra.Command

func (CommandBuilder) GetCluster

func (builder CommandBuilder) GetCluster(kubeConfig *rest.Config) (cluster.Cluster, error)

func (CommandBuilder) SetConfigProvider

func (builder CommandBuilder) SetConfigProvider(provider config.Provider) CommandBuilder

type Credentials

type Credentials struct {
	Username string `json:"username"`
	Password string `json:"password"`
	Auth     string `json:"auth"`
}

type Endpoints

type Endpoints map[string]Credentials

type Result added in v0.10.0

type Result int
const (
	PASSED Result = iota + 1
	FAILED
	SKIPPED
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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