Documentation ¶
Index ¶
- Constants
- func GetNetworkDiagnosticsPod(diagnosticsImage, command, podName, nodeName string) *kapi.Pod
- func GetTestPod(testPodImage, testPodProtocol, podName, nodeName string, testPodPort int) *kapi.Pod
- func GetTestService(serviceName, podName, podProtocol, nodeName string, podPort int) *kapi.Service
- type NetworkDiagnostic
- func (d *NetworkDiagnostic) AvailableParameters() []types.Parameter
- func (d *NetworkDiagnostic) CanRun() (bool, error)
- func (d *NetworkDiagnostic) Check() types.DiagnosticResult
- func (d *NetworkDiagnostic) Cleanup()
- func (d *NetworkDiagnostic) CollectNetworkInfo() error
- func (d *NetworkDiagnostic) CollectNetworkPodLogs() error
- func (d *NetworkDiagnostic) Complete(logger *log.Logger) error
- func (d *NetworkDiagnostic) Description() string
- func (d *NetworkDiagnostic) Name() string
- func (d *NetworkDiagnostic) Requirements() (client bool, host bool)
- func (d *NetworkDiagnostic) TestSetup() error
Constants ¶
View Source
const ( NetworkDiagnosticName = "NetworkCheck" FlagNetworkDiagLogDir = "logdir" FlagNetworkDiagPodImage = "pod-image" FlagNetworkDiagTestPodImage = "test-pod-image" FlagNetworkDiagTestPodProtocol = "test-pod-protocol" FlagNetworkDiagTestPodPort = "test-pod-port" )
Variables ¶
This section is empty.
Functions ¶
func GetTestPod ¶
Types ¶
type NetworkDiagnostic ¶
type NetworkDiagnostic struct { KubeClient kclientset.Interface NetNamespacesClient networktypedclient.NetNamespacesGetter ClusterNetworkClient networktypedclient.ClusterNetworksGetter ClientFlags *flag.FlagSet Level int Factory genericclioptions.RESTClientGetter RawConfig *clientcmdapi.Config PreventModification bool LogDir string PodImage string TestPodImage string TestPodProtocol string TestPodPort int // contains filtered or unexported fields }
NetworkDiagnostic is a diagnostic that runs a network diagnostic pod and relays the results.
func (*NetworkDiagnostic) AvailableParameters ¶
func (d *NetworkDiagnostic) AvailableParameters() []types.Parameter
func (*NetworkDiagnostic) CanRun ¶
func (d *NetworkDiagnostic) CanRun() (bool, error)
CanRun is part of the Diagnostic interface; it determines if the conditions are right to run this diagnostic.
func (*NetworkDiagnostic) Check ¶
func (d *NetworkDiagnostic) Check() types.DiagnosticResult
Check is part of the Diagnostic interface; it runs the actual diagnostic logic
func (*NetworkDiagnostic) Cleanup ¶
func (d *NetworkDiagnostic) Cleanup()
func (*NetworkDiagnostic) CollectNetworkInfo ¶
func (d *NetworkDiagnostic) CollectNetworkInfo() error
func (*NetworkDiagnostic) CollectNetworkPodLogs ¶
func (d *NetworkDiagnostic) CollectNetworkPodLogs() error
func (*NetworkDiagnostic) Description ¶
func (d *NetworkDiagnostic) Description() string
Description is part of the Diagnostic interface and provides a user-focused description of what the diagnostic does.
func (*NetworkDiagnostic) Name ¶
func (d *NetworkDiagnostic) Name() string
Name is part of the Diagnostic interface and just returns name.
func (*NetworkDiagnostic) Requirements ¶
func (d *NetworkDiagnostic) Requirements() (client bool, host bool)
func (*NetworkDiagnostic) TestSetup ¶
func (d *NetworkDiagnostic) TestSetup() error
Click to show internal directories.
Click to hide internal directories.