vulnerabilitydb

package
v1.2.22 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// FindingStatusOpen defines the open status of a finding in the vulnerabilitydb.
	FindingStatusOpen = "OPEN"

	//FindingStatusFixed defines the fixed status of finding in the vulnerabilitydb.
	FindingStatusFixed = "FIXED"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Findings(ctx context.Context, params api.FindingsParams, pagination api.Pagination) (*api.FindingsList, error)
	Finding(ctx context.Context, findingID string) (*api.Finding, error)
	UpdateFinding(ctx context.Context, findingID string, payload *api.UpdateFinding, team string) (*api.Finding, error)
	FindingsIssues(ctx context.Context, params api.FindingsParams, pagination api.Pagination) (*api.FindingsIssuesList, error)
	FindingsByIssue(ctx context.Context, params api.FindingsParams, pagination api.Pagination) (*api.FindingsList, error)
	FindingsTargets(ctx context.Context, params api.FindingsParams, pagination api.Pagination) (*api.FindingsTargetsList, error)
	FindingsByTarget(ctx context.Context, params api.FindingsParams, pagination api.Pagination) (*api.FindingsList, error)
	Targets(ctx context.Context, params api.TargetsParams, pagination api.Pagination) (*api.TargetsList, error)
	CreateTarget(ctx context.Context, payload api.CreateTarget) (*api.Target, error)
	DeleteTargetTeam(ctx context.Context, authTeam, targetID, teamID string) error
	DeleteTeam(ctx context.Context, authTeam, teamID string) error
	StatsMTTR(ctx context.Context, params api.StatsParams) (*api.StatsMTTR, error)
	StatsExposure(ctx context.Context, params api.StatsParams) (*api.StatsExposure, error)
	StatsCurrentExposure(ctx context.Context, params api.StatsParams) (*api.StatsCurrentExposure, error)
	StatsOpen(ctx context.Context, params api.StatsParams) (*api.StatsOpen, error)
	StatsFixed(ctx context.Context, params api.StatsParams) (*api.StatsFixed, error)
	StatsAssets(ctx context.Context, params api.StatsParams) (*api.StatsAssets, error)
	Labels(ctx context.Context, params api.FindingsParams) (*api.FindingsLabels, error)
}

Client defines the shape of the vulndb client needed by the api.

func NewClient

func NewClient(httpClient *http.Client, baseURL string, insecureTLS bool) Client

NewClient returns a new Vulnerabilitydb client with the given config and httpClient.

Jump to

Keyboard shortcuts

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