{"modulePath":"github.com/2lambda123/openshift-origin","version":"v3.7.2+incompatible","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package network\n\n## Constants\n\n```go\nconst (\n\tNetworkDiagnosticName = \"NetworkCheck\"\n)\n```\n\n## Functions\n\n```go\nfunc GetNetworkDiagnosticsPod(diagnosticsImage, command, podName, nodeName string) *kapi.Pod\n```\n\n```go\nfunc GetTestPod(testPodImage, testPodProtocol, podName, nodeName string, testPodPort int) *kapi.Pod\n```\n\n```go\nfunc GetTestService(serviceName, podName, podProtocol, nodeName string, podPort int) *kapi.Service\n```\n\n## Types\n\n```go\ntype NetworkDiagnostic struct {\n\tKubeClient           kclientset.Interface\n\tNetNamespacesClient  networktypedclient.NetNamespacesGetter\n\tClusterNetworkClient networktypedclient.ClusterNetworksGetter\n\tClientFlags          *flag.FlagSet\n\tLevel                int\n\tFactory              *osclientcmd.Factory\n\tPreventModification  bool\n\tLogDir               string\n\tPodImage             string\n\tTestPodImage         string\n\tTestPodProtocol      string\n\tTestPodPort          int\n\t// contains filtered or unexported fields\n}\n```\nNetworkDiagnostic is a diagnostic that runs a network diagnostic pod and relays the results.\n\n```go\nfunc (d *NetworkDiagnostic) CanRun() (bool, error)\n```\nCanRun is part of the Diagnostic interface; it determines if the conditions are right to run this diagnostic.\n\n```go\nfunc (d *NetworkDiagnostic) Check() types.DiagnosticResult\n```\nCheck is part of the Diagnostic interface; it runs the actual diagnostic logic\n\n```go\nfunc (d *NetworkDiagnostic) Cleanup()\n```\n\n```go\nfunc (d *NetworkDiagnostic) CollectNetworkInfo(diagsFailed bool) error\n```\n\n```go\nfunc (d *NetworkDiagnostic) CollectNetworkPodLogs() error\n```\n\n```go\nfunc (d *NetworkDiagnostic) Description() string\n```\nDescription is part of the Diagnostic interface and provides a user-focused description of what the diagnostic does.\n\n```go\nfunc (d *NetworkDiagnostic) Name() string\n```\nName is part of the Diagnostic interface and just returns name.\n\n```go\nfunc (d *NetworkDiagnostic) TestSetup() error\n```\n\n","path":"github.com/2lambda123/openshift-origin/pkg/diagnostics/network","name":"network","synopsis":"","isRedistributable":true}
