network

package
v1.4.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2016 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NetworkDiagnosticName = "NetworkCheck"
)

Variables

This section is empty.

Functions

func GetNetworkDiagnosticsPod

func GetNetworkDiagnosticsPod(command []string, podName, nodeName string) *kapi.Pod

func GetTestPod

func GetTestPod(podName, nodeName string) *kapi.Pod

func GetTestService

func GetTestService(serviceName, podName, nodeName string) *kapi.Service

Types

type NetworkDiagnostic

type NetworkDiagnostic struct {
	KubeClient          *kclient.Client
	OSClient            *osclient.Client
	ClientFlags         *flag.FlagSet
	Level               int
	Factory             *osclientcmd.Factory
	PreventModification bool
	LogDir              string
	// contains filtered or unexported fields
}

NetworkDiagnostic is a diagnostic that runs a network diagnostic pod and relays the results.

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

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(diagsFailed bool) 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) TestSetup

func (d *NetworkDiagnostic) TestSetup() error

Jump to

Keyboard shortcuts

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