dao

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DAO

type DAO interface {
	// Set creates or updates the CVE allowlist to DB based on the project ID in the input parm, if the project does not
	// have a CVE allowlist, an empty allowlist will be created.  The project ID should be 0 for system level CVE allowlist
	Set(ctx context.Context, l models.CVEAllowlist) (int64, error)
	// QueryByProjectID returns the CVE allowlist of the project based on the project ID in parameter.  The project ID should be 0
	// for system level CVE allowlist
	QueryByProjectID(ctx context.Context, pid int64) (*models.CVEAllowlist, error)
}

DAO is the data access object interface for CVE allowlist

func New

func New() DAO

New ...

Jump to

Keyboard shortcuts

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