Documentation ¶
Index ¶
- Constants
- Variables
- func ExplainPolicies(explainedPolicies *matcher.Policy)
- func Lint(kubePolicies []*networkingv1.NetworkPolicy)
- func ParsePolicies(kubePolicies []*networkingv1.NetworkPolicy)
- func ProbeSyntheticConnectivity(explainedPolicies *matcher.Policy, modelPath string, kubePods []v1.Pod, ...)
- func QueryTargetHelper(policies *matcher.Policy, pod *QueryTargetPod) (*matcher.Policy, *matcher.Policy)
- func QueryTargets(explainedPolicies *matcher.Policy, podPath string, pods []*QueryTargetPod)
- func QueryTraffic(explainedPolicies *matcher.Policy, trafficPath string)
- func RunAnalyzeCommand(args *AnalyzeArgs)
- func RunCompareCommand(args *CompareArgs)
- func RunGenerateCommand(args *GenerateArgs)
- func RunProbeCommand(args *ProbeArgs)
- func RunRootCommand()
- func RunVersionCommand()
- func SetupAnalyzeCommand() *cobra.Command
- func SetupCompareCommand() *cobra.Command
- func SetupGenerateCommand() *cobra.Command
- func SetupProbeCommand() *cobra.Command
- func SetupRootCommand() *cobra.Command
- func SetupVersionCommand() *cobra.Command
- type AnalyzeArgs
- type CompareArgs
- type GenerateArgs
- type ProbeArgs
- type QueryTargetPod
- type RootFlags
- type SyntheticProbeConnectivityConfig
Constants ¶
View Source
const ( ParseMode = "parse" ExplainMode = "explain" LintMode = "lint" QueryTrafficMode = "query-traffic" QueryTargetMode = "query-target" ProbeMode = "probe" )
Variables ¶
View Source
var AllModes = []string{ ParseMode, ExplainMode, LintMode, QueryTrafficMode, QueryTargetMode, ProbeMode, }
View Source
var ( DefaultExcludeTags = []string{ generator.TagMultiPeer, generator.TagUpstreamE2E, generator.TagExample, generator.TagEndPort, generator.TagNamespacesByDefaultLabel} )
Functions ¶
func ExplainPolicies ¶ added in v0.2.0
func Lint ¶ added in v0.2.1
func Lint(kubePolicies []*networkingv1.NetworkPolicy)
func ParsePolicies ¶ added in v0.4.0
func ParsePolicies(kubePolicies []*networkingv1.NetworkPolicy)
func ProbeSyntheticConnectivity ¶ added in v0.2.0
func QueryTargetHelper ¶ added in v0.3.1
func QueryTargets ¶ added in v0.2.0
func QueryTargets(explainedPolicies *matcher.Policy, podPath string, pods []*QueryTargetPod)
func QueryTraffic ¶ added in v0.2.0
func RunAnalyzeCommand ¶ added in v0.2.0
func RunAnalyzeCommand(args *AnalyzeArgs)
func RunCompareCommand ¶ added in v0.1.0
func RunCompareCommand(args *CompareArgs)
func RunGenerateCommand ¶ added in v0.0.10
func RunGenerateCommand(args *GenerateArgs)
func RunProbeCommand ¶ added in v0.0.7
func RunProbeCommand(args *ProbeArgs)
func RunRootCommand ¶
func RunRootCommand()
func RunVersionCommand ¶ added in v0.1.2
func RunVersionCommand()
func SetupAnalyzeCommand ¶ added in v0.2.0
func SetupCompareCommand ¶ added in v0.1.0
func SetupGenerateCommand ¶ added in v0.0.10
func SetupProbeCommand ¶ added in v0.0.6
func SetupRootCommand ¶ added in v0.0.6
func SetupVersionCommand ¶ added in v0.1.2
Types ¶
type AnalyzeArgs ¶ added in v0.2.0
type CompareArgs ¶ added in v0.1.0
type GenerateArgs ¶ added in v0.0.10
type GenerateArgs struct { AllowDNS bool Noisy bool IgnoreLoopback bool PerturbationWaitSeconds int PodCreationTimeoutSeconds int Retries int Context string ServerPorts []int ServerProtocols []string ServerNamespaces []string ServerPods []string CleanupNamespaces bool Include []string Exclude []string DestinationType string Mock bool DryRun bool JobTimeoutSeconds int JunitResultsFile string }
type ProbeArgs ¶ added in v0.0.3
type ProbeArgs struct { Noisy bool IgnoreLoopback bool KubeContext string PerturbationWaitSeconds int PodCreationTimeoutSeconds int PolicyPath string ProbeMode string JobTimeoutSeconds int // what to probe on ProbeAllAvailable bool Ports []string Protocols []string // server setup ServerProtocols []string ServerPorts []int ServerNamespaces []string ServerPods []string }
type QueryTargetPod ¶
QueryTargetPod matches targets; targets exist in only a single namespace and can't be matched by namespace
label, therefore we match by exact namespace and by pod labels.
type SyntheticProbeConnectivityConfig ¶ added in v0.0.3
type SyntheticProbeConnectivityConfig struct { Resources *probe.Resources Probes []*generator.PortProtocol }
Click to show internal directories.
Click to hide internal directories.