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.
Click to show internal directories.
Click to hide internal directories.