v1

package
v0.0.0-...-e417875 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func NewClient

func NewClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *Client

NewClient creates a new instance of Client. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Client) GetMetadata

func (_m *Client) GetMetadata() (*v1.ScannerAdapterMetadata, error)

GetMetadata provides a mock function with given fields:

func (*Client) GetScanReport

func (_m *Client) GetScanReport(scanRequestID string, reportMIMEType string, urlParameter string) (string, error)

GetScanReport provides a mock function with given fields: scanRequestID, reportMIMEType, urlParameter

func (*Client) SubmitScan

func (_m *Client) SubmitScan(req *v1.ScanRequest) (*v1.ScanResponse, error)

SubmitScan provides a mock function with given fields: req

type ClientPool

type ClientPool struct {
	mock.Mock
}

ClientPool is an autogenerated mock type for the ClientPool type

func NewClientPool

func NewClientPool(t interface {
	mock.TestingT
	Cleanup(func())
}) *ClientPool

NewClientPool creates a new instance of ClientPool. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ClientPool) Get

func (_m *ClientPool) Get(url string, authType string, accessCredential string, skipCertVerify bool) (v1.Client, error)

Get provides a mock function with given fields: url, authType, accessCredential, skipCertVerify

type RequestResolver

type RequestResolver struct {
	mock.Mock
}

RequestResolver is an autogenerated mock type for the RequestResolver type

func NewRequestResolver

func NewRequestResolver(t interface {
	mock.TestingT
	Cleanup(func())
}) *RequestResolver

NewRequestResolver creates a new instance of RequestResolver. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*RequestResolver) Execute

func (_m *RequestResolver) Execute(req *http.Request)

Execute provides a mock function with given fields: req

Jump to

Keyboard shortcuts

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