Documentation ¶
Index ¶
- Constants
- type ConfigContext
- func (d ConfigContext) CanRun() (bool, error)
- func (d ConfigContext) Check() types.DiagnosticResult
- func (d ConfigContext) ContextClusterUser() (string, bool)
- func (d ConfigContext) Description() string
- func (d ConfigContext) Name() string
- func (d ConfigContext) Requirements() (client bool, host bool)
- type DiagnosticPod
- func (d *DiagnosticPod) AvailableParameters() []types.Parameter
- func (d *DiagnosticPod) CanRun() (bool, error)
- func (d *DiagnosticPod) Check() types.DiagnosticResult
- func (d *DiagnosticPod) Description() string
- func (d *DiagnosticPod) Name() string
- func (d *DiagnosticPod) Requirements() (client bool, host bool)
Constants ¶
const ( InPodDiagnosticRecommendedName = "inpod-poddiagnostic" DiagnosticPodName = "DiagnosticPod" ImageTemplateParam = "images" LatestImageParam = "latest-images" )
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 ¶
func (d ConfigContext) Check() types.DiagnosticResult
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)
type DiagnosticPod ¶
type DiagnosticPod struct { KubeClient kclientset.Interface Namespace string Level int Factory *osclientcmd.Factory PreventModification bool ImageTemplate variable.ImageTemplate }
DiagnosticPod is a diagnostic that runs a diagnostic pod and relays the results.
func (*DiagnosticPod) AvailableParameters ¶
func (d *DiagnosticPod) AvailableParameters() []types.Parameter
func (*DiagnosticPod) CanRun ¶
func (d *DiagnosticPod) CanRun() (bool, error)
CanRun is part of the Diagnostic interface; it determines if the conditions are right to run this diagnostic.
func (*DiagnosticPod) Check ¶
func (d *DiagnosticPod) Check() types.DiagnosticResult
Check is part of the Diagnostic interface; it runs the actual diagnostic logic
func (*DiagnosticPod) Description ¶
func (d *DiagnosticPod) Description() string
Description is part of the Diagnostic interface and provides a user-focused description of what the diagnostic does.
func (*DiagnosticPod) Name ¶
func (d *DiagnosticPod) Name() string
Name is part of the Diagnostic interface and just returns name.
func (*DiagnosticPod) Requirements ¶
func (d *DiagnosticPod) Requirements() (client bool, host bool)