cmd

package
v0.0.1-alpha Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IsDebug = "debug"

	// start job with Kubernetes
	TargetPodName      = "pod"
	TargetPodNamespace = "namespace" // Namespace that target lives in

	// misc Kubernetes flags
	InsideClusterFlag  = "inside-cluster"
	OnlyFuzzMarkedFlag = "only-marked"
	SchedulerImageFlag = "scheduler-img"
	HomeNamespaceFlag  = "home-ns" // Namespace to start containers in (jobs etc.)

	// fuzzing related flags
	RestlerInitImageFlag = "restler-init-img"
	RestlerImageFlag     = "restler-img"
	RestlerTimeBudget    = "restler-time-budget"
	RestlerCpuLimit      = "restler-cpu-limit"
	RestlerMemoryLimit   = "restler-memory-limit"
	RestlerCpuRequest    = "restler-cpu-request"
	RestlerMemoryRequest = "restler-memory-request"

	// caching related flags
	CacheSolution = "cache"
	RedisHostName = "redis-hostname"
	RedisPort     = "redis-port"

	// auth related flags
	AuthUsername   = "username"
	AuthSecretFlag = "secret"

	//s3 flags
	S3EndpointUrlFlag = "s3-endpoint"
	S3ReportBucket    = "s3-bucket"
	S3AccessKey       = "s3-access"
	S3SecretKey       = "s3-secret"
)

Variables

This section is empty.

Functions

func Execute

func Execute(runFunc func(cmd *cobra.Command, args []string)) error

Execute starts the base command

func SetupFlags

func SetupFlags(rootCmd *cobra.Command)

SetupFlags registers all flags with viper

Types

This section is empty.

Jump to

Keyboard shortcuts

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