config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FuzzerConfig

type FuzzerConfig struct {
	JobName                string
	InitJobName            string
	Namespace              string
	Image                  string
	InitImage              string
	TimeBudget             string
	RestlerTelemetryOptOut string
	CpuLimit               int64
	MemoryLimit            int64
	CpuRequest             int64
	MemoryRequest          int64
	DiscoveryDocLocation   string
	Target                 FuzzerTarget
	S3Config               S3Config
}

FuzzerConfig config that is used to configure the RESTler fuzzer

func NewFuzzerConfig

func NewFuzzerConfig(apiDesc *discovery.WebApiDescription, targetPod *v1.Pod) *FuzzerConfig

NewFuzzerConfig constructor for FuzzerConfig

type FuzzerTarget

type FuzzerTarget struct {
	PodName   string
	Namespace string
	IP        string
	Port      string
	Scheme    string // http, https
}

FuzzerTarget configuration for the fuzzing target

type S3Config

type S3Config struct {
	ContainerName string
	Namespace     string
	EndpointUrl   string
	ReportBucket  string
	Image         string
	AccessKey     string
	SecretKey     string
}

func CreateS3Config

func CreateS3Config(jobName string, namespace string) *S3Config

type SchedulerConfig

type SchedulerConfig struct {
	TargetPodName      string
	TargetPodNamespace string
	ServiceAccountName string
	RedisHostName      string
	RedisPort          string
	JobName            string
	Namespace          string
	Image              string
}

SchedulerConfig object that holds configuration for Kubernetes

func CreateSchedulerConfigWPod

func CreateSchedulerConfigWPod(pod *apiv1.Pod) *SchedulerConfig

CreateSchedulerConfigWPod creates a SchedulerConfig from a pod object

Jump to

Keyboard shortcuts

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