client

package
v3.10.18-1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConfigContextsName = "ConfigContexts"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigContext

type ConfigContext struct {
	RawConfig   *kclientcmdapi.Config
	ContextName string
}

ConfigContext diagnostics (one per context) validate that the client config context is complete and has connectivity to the master.

func (ConfigContext) CanRun

func (d ConfigContext) CanRun() (bool, error)

CanRun is part of the Diagnostic interface; it determines if the conditions are right to run this diagnostic.

func (ConfigContext) Check

Check is part of the Diagnostic interface; it runs the actual diagnostic logic

func (ConfigContext) ContextClusterUser

func (d ConfigContext) ContextClusterUser() (string, bool)

ContextClusterUser returns user+cluster name, plus true if the context is defined

func (ConfigContext) Description

func (d ConfigContext) Description() string

Description is part of the Diagnostic interface and provides a user-focused description of what the diagnostic does.

func (ConfigContext) Name

func (d ConfigContext) Name() string

Name is part of the Diagnostic interface and just returns name.

func (ConfigContext) Requirements

func (d ConfigContext) Requirements() (client bool, host bool)

Directories

Path Synopsis
pod

Jump to

Keyboard shortcuts

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