config

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthConfig

type AuthConfig struct {
	Username string `yaml:"username"`
	Secret   string `yaml:"secret"`
}

type CnFuzzConfig

type CnFuzzConfig struct {
	Namespace      string `yaml:"namespace" `
	OnlyFuzzMarked bool   `yaml:"only_fuzz_marked"`
	CacheSolution  string `yaml:"cache_solution"`
	*RedisConfig   `yaml:"redis"`
	*RestlerConfig `yaml:"restler"`
	*AuthConfig    `yaml:"auth"`
	*S3Config      `yaml:"s3"`
}

CnFuzzConfig object that holds configuration for Kubernetes

func LoadConfigFile

func LoadConfigFile(l logger.Logger, configFile string, printFile bool) *CnFuzzConfig

type Overwrites

type Overwrites struct {
	DiscoveryDocIP   string
	DiscoveryDocPort int32
}

type RedisConfig

type RedisConfig struct {
	HostName string `yaml:"host_name"`
	Port     string `yaml:"port"`
}

type RestlerConfig

type RestlerConfig struct {
	InitImage       string `yaml:"init_image"`
	Image           string `yaml:"image"`
	TimeBudget      string `yaml:"time_budget"`
	CpuLimit        int64  `yaml:"cpu_limit"`
	MemoryLimit     int64  `yaml:"memory_limit"`
	CpuRequest      string `yaml:"cpu_request"`
	MemoryRequest   string `yaml:"memory_request"`
	TelemetryOptOut string `yaml:"telemetry_opt_out"`
}

type S3Config

type S3Config struct {
	EndpointUrl  string          `yaml:"endpoint_url"`
	ReportBucket string          `yaml:"report_bucket"`
	AccessKey    string          `yaml:"access_key"`
	SecretKey    string          `yaml:"secret_key"`
	Sidecar      S3SidecarConfig `yaml:"sidecar"`
}

type S3SidecarConfig

type S3SidecarConfig struct {
	Image         string `yaml:"image"`
	ContainerName string `yaml:"container_name"`
}

Jump to

Keyboard shortcuts

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