Documentation ¶
Index ¶
- Constants
- func FakeTriggerFuzzingJob(ctx context.Context, pipe chan bool, testFilename string, apiID uint, ...)
- func SendReport(ctx context.Context, client *globalapi.Client, apiID uint, ...) error
- type Client
- func NewClient(moduleConfig *config.Config, accessor core.BackendAccessor) (Client, error)
- func NewConfigMapClient(config *config.Config, accessor core.BackendAccessor) (Client, error)
- func NewDockerClient(config *config.Config) (Client, error)
- func NewFakeClient(config *config.Config) (Client, error)
- type ConfigMapClient
- type DockerClient
- type FakeClient
- type FakeTest
Constants ¶
View Source
const ( ContainerAutoremove = true ContainerNetworkMode = "host" )
Variables ¶
This section is empty.
Functions ¶
func FakeTriggerFuzzingJob ¶
func SendReport ¶
Types ¶
type Client ¶
type Client interface { TriggerFuzzingJob(apiID int64, endpoint string, securityItem string, timeBudget string) error StopFuzzingJob(apiID int64, complete bool) error }
func NewConfigMapClient ¶
nolint: ireturn,nolintlint
func NewDockerClient ¶
nolint: ireturn,nolintlint
type ConfigMapClient ¶
type ConfigMapClient struct {
// contains filtered or unexported fields
}
func (*ConfigMapClient) StopFuzzingJob ¶
func (l *ConfigMapClient) StopFuzzingJob(apiID int64, complete bool) error
func (*ConfigMapClient) TriggerFuzzingJob ¶
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 ¶
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 ¶
type FakeTest ¶
type FakeTest struct {
Steps []globalapi.FuzzingStatusAndReport `json:"steps"`
}
Click to show internal directories.
Click to hide internal directories.