troubleshoot

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetermineDynakubeError

func DetermineDynakubeError(err error) error

func GetK8SClusterAPIReader

func GetK8SClusterAPIReader(kubeConfig *rest.Config) (client.Reader, error)

func NewTroubleshootLoggerToWriter

func NewTroubleshootLoggerToWriter(out io.Writer) logr.Logger

func RunTroubleshootCmd

func RunTroubleshootCmd(ctx context.Context, log logr.Logger, namespaceName string, kubeConfig *rest.Config)

Types

type Auths

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

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) 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 ImagePullFunc

type ImagePullFunc func(image string) error

func CreateImagePullFunc

func CreateImagePullFunc(ctx context.Context, keychain authn.Keychain, transport *http.Transport) ImagePullFunc

Jump to

Keyboard shortcuts

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