cli

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2021 License: MIT Imports: 24 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunAnalyzePoliciesCommand added in v0.0.7

func RunAnalyzePoliciesCommand(args *AnalyzePoliciesArgs)

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 RunProbeSyntheticConnectivityCommand added in v0.0.7

func RunProbeSyntheticConnectivityCommand(args *SyntheticProbeConnectivityArgs)

func RunQueryTargetsCommand added in v0.0.7

func RunQueryTargetsCommand(args *QueryTargetsArgs)

func RunQueryTrafficCommand added in v0.0.7

func RunQueryTrafficCommand(args *QueryTrafficArgs)

func RunRootCommand

func RunRootCommand()

func SetUpLogger

func SetUpLogger(logLevelStr string) error

func SetupAnalyzePoliciesCommand added in v0.0.6

func SetupAnalyzePoliciesCommand() *cobra.Command

func SetupCompareCommand added in v0.1.0

func SetupCompareCommand() *cobra.Command

func SetupGenerateCommand added in v0.0.10

func SetupGenerateCommand() *cobra.Command

func SetupProbeCommand added in v0.0.6

func SetupProbeCommand() *cobra.Command

func SetupQueryTargetsCommand added in v0.0.6

func SetupQueryTargetsCommand() *cobra.Command

func SetupQueryTrafficCommand added in v0.0.6

func SetupQueryTrafficCommand() *cobra.Command

func SetupRootCommand added in v0.0.6

func SetupRootCommand() *cobra.Command

func SetupSyntheticProbeConnectivityCommand added in v0.0.6

func SetupSyntheticProbeConnectivityCommand() *cobra.Command

Types

type AnalyzePoliciesArgs

type AnalyzePoliciesArgs struct {
	PolicySource string
	Namespaces   []string
	PolicyPath   string
	Format       string
	Context      string
}

type CompareArgs added in v0.1.0

type CompareArgs struct {
	Noisy                     bool
	NetpolCreationWaitSeconds int
	Contexts                  []string
}

type Flags

type Flags struct {
	Verbosity string
}

type GenerateArgs added in v0.0.10

type GenerateArgs struct {
	Mode                      string
	AllowDNS                  bool
	Noisy                     bool
	IgnoreLoopback            bool
	PerturbationWaitSeconds   int
	PodCreationTimeoutSeconds int
	Context                   string
	Namespaces                []string
	Pods                      []string
	CleanupNamespaces         bool
}

type ProbeArgs added in v0.0.3

type ProbeArgs struct {
	Namespaces                []string
	Pods                      []string
	Noisy                     bool
	IgnoreLoopback            bool
	KubeContext               string
	PerturbationWaitSeconds   int
	PodCreationTimeoutSeconds int
	PolicyPath                string
	Ports                     []int
	Protocols                 []string
}

type QueryTargetPod

type QueryTargetPod struct {
	Namespace string
	Labels    map[string]string
}

type QueryTargetsArgs

type QueryTargetsArgs struct {
	PolicySource string
	Namespaces   []string
	PolicyPath   string
	PodPath      string
	Context      string
}

type QueryTrafficArgs

type QueryTrafficArgs struct {
	PolicySource string
	Namespaces   []string
	TrafficPath  string
	PolicyPath   string
	Context      string
}

type SyntheticProbeConnectivityArgs added in v0.0.3

type SyntheticProbeConnectivityArgs struct {
	PolicySource string
	Namespaces   []string
	PolicyPath   string
	ModelPath    string
	Context      string
}

type SyntheticProbeConnectivityConfig added in v0.0.3

type SyntheticProbeConnectivityConfig struct {
	Pods   *synthetic.Resources
	Probes []*struct {
		Protocol v1.Protocol
		Port     int
	}
}

Jump to

Keyboard shortcuts

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