clients

package
v0.0.0-...-37aa375 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ContainerAutoremove  = true
	ContainerNetworkMode = "host"
)

Variables

This section is empty.

Functions

func FakeTriggerFuzzingJob

func FakeTriggerFuzzingJob(ctx context.Context, pipe chan bool, testFilename string, apiID uint, remoteHost string)

func SendReport

func SendReport(ctx context.Context, client *globalapi.Client, apiID uint, report globalapi.FuzzingStatusAndReport) error

Types

type Client

type Client interface {
	TriggerFuzzingJob(apiID int64, endpoint string, securityItem string, timeBudget string) error
	StopFuzzingJob(apiID int64, complete bool) error
}

func NewClient

func NewClient(moduleConfig *config.Config, accessor core.BackendAccessor) (Client, error)

nolint: ireturn,nolintlint

func NewConfigMapClient

func NewConfigMapClient(config *config.Config, accessor core.BackendAccessor) (Client, error)

nolint: ireturn,nolintlint

func NewDockerClient

func NewDockerClient(config *config.Config) (Client, error)

nolint: ireturn,nolintlint

func NewFakeClient

func NewFakeClient(config *config.Config) (Client, error)

nolint: ireturn,nolintlint

type ConfigMapClient

type ConfigMapClient struct {
	// contains filtered or unexported fields
}

func (*ConfigMapClient) CreateJob

func (l *ConfigMapClient) CreateJob(job *batchv1.Job) (*batchv1.Job, error)

func (*ConfigMapClient) StopFuzzingJob

func (l *ConfigMapClient) StopFuzzingJob(apiID int64, complete bool) error

func (*ConfigMapClient) TriggerFuzzingJob

func (l *ConfigMapClient) TriggerFuzzingJob(apiID int64, endpoint string, securityItem string, timeBudget string) error

type DockerClient

type DockerClient struct {
	// contains filtered or unexported fields
}

func (*DockerClient) GetContainerNameForAPI

func (c *DockerClient) GetContainerNameForAPI(apiID int64) string

func (*DockerClient) StopFuzzingJob

func (c *DockerClient) StopFuzzingJob(apiID int64, complete bool) error

func (*DockerClient) TriggerFuzzingJob

func (c *DockerClient) TriggerFuzzingJob(apiID int64, endpoint string, securityItem string, timeBudget string) error

type FakeClient

type FakeClient struct {
	// contains filtered or unexported fields
}

func (*FakeClient) StopFuzzingJob

func (c *FakeClient) StopFuzzingJob(apiID int64, complete bool) error

func (*FakeClient) TriggerFuzzingJob

func (c *FakeClient) TriggerFuzzingJob(apiID int64, endpoint string, securityItem string, timeBudget string) error

type FakeTest

type FakeTest struct {
	Steps []globalapi.FuzzingStatusAndReport `json:"steps"`
}

Jump to

Keyboard shortcuts

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