Documentation ¶
Index ¶
- type Controller
- func (_m *Controller) CreateRegistration(ctx context.Context, registration *scanner.Registration) (string, error)
- func (_m *Controller) DeleteRegistration(ctx context.Context, registrationUUID string) (*scanner.Registration, error)
- func (_m *Controller) GetMetadata(ctx context.Context, registrationUUID string) (*v1.ScannerAdapterMetadata, error)
- func (_m *Controller) GetRegistration(ctx context.Context, registrationUUID string) (*scanner.Registration, error)
- func (_m *Controller) GetRegistrationByProject(ctx context.Context, projectID int64, options ...controllerscanner.Option) (*scanner.Registration, error)
- func (_m *Controller) GetTotalOfRegistrations(ctx context.Context, query *q.Query) (int64, error)
- func (_m *Controller) ListRegistrations(ctx context.Context, query *q.Query) ([]*scanner.Registration, error)
- func (_m *Controller) Ping(ctx context.Context, registration *scanner.Registration) (*v1.ScannerAdapterMetadata, error)
- func (_m *Controller) RegistrationExists(ctx context.Context, registrationUUID string) bool
- func (_m *Controller) RetrieveCap(ctx context.Context, r *scanner.Registration) error
- func (_m *Controller) SetDefaultRegistration(ctx context.Context, registrationUUID string) error
- func (_m *Controller) SetRegistrationByProject(ctx context.Context, projectID int64, scannerID string) error
- func (_m *Controller) UpdateRegistration(ctx context.Context, registration *scanner.Registration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
Controller is an autogenerated mock type for the Controller type
func NewController ¶
func NewController(t interface { mock.TestingT Cleanup(func()) }) *Controller
NewController creates a new instance of Controller. 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 (*Controller) CreateRegistration ¶
func (_m *Controller) CreateRegistration(ctx context.Context, registration *scanner.Registration) (string, error)
CreateRegistration provides a mock function with given fields: ctx, registration
func (*Controller) DeleteRegistration ¶
func (_m *Controller) DeleteRegistration(ctx context.Context, registrationUUID string) (*scanner.Registration, error)
DeleteRegistration provides a mock function with given fields: ctx, registrationUUID
func (*Controller) GetMetadata ¶
func (_m *Controller) GetMetadata(ctx context.Context, registrationUUID string) (*v1.ScannerAdapterMetadata, error)
GetMetadata provides a mock function with given fields: ctx, registrationUUID
func (*Controller) GetRegistration ¶
func (_m *Controller) GetRegistration(ctx context.Context, registrationUUID string) (*scanner.Registration, error)
GetRegistration provides a mock function with given fields: ctx, registrationUUID
func (*Controller) GetRegistrationByProject ¶
func (_m *Controller) GetRegistrationByProject(ctx context.Context, projectID int64, options ...controllerscanner.Option) (*scanner.Registration, error)
GetRegistrationByProject provides a mock function with given fields: ctx, projectID, options
func (*Controller) GetTotalOfRegistrations ¶
GetTotalOfRegistrations provides a mock function with given fields: ctx, query
func (*Controller) ListRegistrations ¶
func (_m *Controller) ListRegistrations(ctx context.Context, query *q.Query) ([]*scanner.Registration, error)
ListRegistrations provides a mock function with given fields: ctx, query
func (*Controller) Ping ¶
func (_m *Controller) Ping(ctx context.Context, registration *scanner.Registration) (*v1.ScannerAdapterMetadata, error)
Ping provides a mock function with given fields: ctx, registration
func (*Controller) RegistrationExists ¶
func (_m *Controller) RegistrationExists(ctx context.Context, registrationUUID string) bool
RegistrationExists provides a mock function with given fields: ctx, registrationUUID
func (*Controller) RetrieveCap ¶
func (_m *Controller) RetrieveCap(ctx context.Context, r *scanner.Registration) error
RetrieveCap provides a mock function with given fields: ctx, r
func (*Controller) SetDefaultRegistration ¶
func (_m *Controller) SetDefaultRegistration(ctx context.Context, registrationUUID string) error
SetDefaultRegistration provides a mock function with given fields: ctx, registrationUUID
func (*Controller) SetRegistrationByProject ¶
func (_m *Controller) SetRegistrationByProject(ctx context.Context, projectID int64, scannerID string) error
SetRegistrationByProject provides a mock function with given fields: ctx, projectID, scannerID
func (*Controller) UpdateRegistration ¶
func (_m *Controller) UpdateRegistration(ctx context.Context, registration *scanner.Registration) error
UpdateRegistration provides a mock function with given fields: ctx, registration