allowlist

package
v0.0.0-...-a14a4d2 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 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 Manager

type Manager struct {
	mock.Mock
}

Manager is an autogenerated mock type for the Manager type

func NewManager

func NewManager(t interface {
	mock.TestingT
	Cleanup(func())
}) *Manager

NewManager creates a new instance of Manager. 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 (*Manager) CreateEmpty

func (_m *Manager) CreateEmpty(ctx context.Context, projectID int64) error

CreateEmpty provides a mock function with given fields: ctx, projectID

func (*Manager) Get

func (_m *Manager) Get(ctx context.Context, projectID int64) (*models.CVEAllowlist, error)

Get provides a mock function with given fields: ctx, projectID

func (*Manager) GetSys

func (_m *Manager) GetSys(ctx context.Context) (*models.CVEAllowlist, error)

GetSys provides a mock function with given fields: ctx

func (*Manager) Set

func (_m *Manager) Set(ctx context.Context, projectID int64, list models.CVEAllowlist) error

Set provides a mock function with given fields: ctx, projectID, list

func (*Manager) SetSys

func (_m *Manager) SetSys(ctx context.Context, list models.CVEAllowlist) error

SetSys provides a mock function with given fields: ctx, list

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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