compliance

package
v0.0.0-...-be2ef80 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 21 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Jobs

type Jobs struct {
	// contains filtered or unexported fields
}

func NewJobsHandler

func NewJobsHandler(jobsClient jobsService.JobsServiceClient) *Jobs

func (*Jobs) Create

func (a *Jobs) Create(ctx context.Context, in *jobs.Job) (*jobs.Id, error)

func (*Jobs) Delete

func (a *Jobs) Delete(ctx context.Context, in *jobs.Id) (*gp.Empty, error)

func (*Jobs) List

func (a *Jobs) List(ctx context.Context, in *jobs.Query) (*jobs.Jobs, error)

func (*Jobs) Read

func (a *Jobs) Read(ctx context.Context, in *jobs.Id) (*jobs.Job, error)

func (*Jobs) Rerun

func (a *Jobs) Rerun(ctx context.Context, in *jobs.Id) (*jobs.RerunResponse, error)

func (*Jobs) Update

func (a *Jobs) Update(ctx context.Context, in *jobs.Job) (*gp.Empty, error)

type Profiles

type Profiles struct {
	// contains filtered or unexported fields
}

func NewProfilesHandler

func NewProfilesHandler(profilesClient profileService.ProfilesServiceClient) *Profiles

func (*Profiles) Create

func (*Profiles) Delete

func (a *Profiles) Delete(ctx context.Context, in *profiles.ProfileDetails) (*gp.Empty, error)

func (*Profiles) List

func (a *Profiles) List(ctx context.Context, in *profiles.Query) (*profiles.Profiles, error)

func (*Profiles) MetaSearch

func (a *Profiles) MetaSearch(ctx context.Context, in *profiles.Sha256) (*profiles.Missing, error)

func (*Profiles) Read

func (*Profiles) ReadFromMarket

func (a *Profiles) ReadFromMarket(ctx context.Context, in *profiles.ProfileDetails) (*profiles.Profile, error)

type Reporting

type Reporting struct {
	// contains filtered or unexported fields
}

func (*Reporting) AssetCount

func (*Reporting) ExportReportManager

func (a *Reporting) ExportReportManager(ctx context.Context, in *reporting.Query) (*reporting.CustomReportResponse, error)

should cover reporting/reportmanager/export

func (*Reporting) GetVersion

func (a *Reporting) GetVersion(ctx context.Context, in *gp.Empty) (*version.VersionInfo, error)

func (*Reporting) LicenseUsageNodes

func (a *Reporting) LicenseUsageNodes(ctx context.Context, in *reporting.TimeQuery) (*reporting.Reports, error)

LicenseUsageNodes gathers information about scanned nodes (as initiated by scan jobs) for owca billing purposes

func (*Reporting) ListAsset

func (*Reporting) ListControlInfo

func (a *Reporting) ListControlInfo(ctx context.Context, in *reporting.Query) (*reporting.ControlElements, error)

should cover /reportcontrols/:reportid

func (*Reporting) ListControlItems

should cover /control-items

func (*Reporting) ListControlItemsRange

func (a *Reporting) ListControlItemsRange(ctx context.Context, in *reporting.ControlItemRequest) (*reporting.ControlItems, error)

func (*Reporting) ListNodes

func (a *Reporting) ListNodes(ctx context.Context, in *reporting.Query) (*reporting.Nodes, error)

func (*Reporting) ListProfiles

func (a *Reporting) ListProfiles(ctx context.Context, in *reporting.Query) (*reporting.ProfileMins, error)

should cover /search/profiles

func (*Reporting) ListReportIds

func (a *Reporting) ListReportIds(ctx context.Context, in *reporting.Query) (*reporting.ReportIds, error)

should cover /reportIds

func (*Reporting) ListReports

should cover /reports

func (*Reporting) ListSuggestions

should cover /suggestions

func (*Reporting) ReadNode

func (a *Reporting) ReadNode(ctx context.Context, in *reporting.Id) (*reporting.Node, error)

func (*Reporting) ReadNodeHeader

func (a *Reporting) ReadNodeHeader(ctx context.Context, in *reporting.Query) (*reporting.NodeHeaderInfo, error)

should cover /reports/nodeheader/:reportid

func (*Reporting) ReadReport

func (a *Reporting) ReadReport(ctx context.Context, in *reporting.Query) (*reporting.Report, error)

should cover /reports/:reportid

type Stats

type Stats struct {
	// contains filtered or unexported fields
}

func NewStatsHandler

func NewStatsHandler(statsClient statsService.StatsServiceClient) *Stats

func (*Stats) GetNodesUsageCount

GetNodesUsageCount returns the count of unique nodes with lastRun in a given time.

func (*Stats) ReadFailures

func (a *Stats) ReadFailures(ctx context.Context, in *stats.Query) (*stats.Failures, error)

func (*Stats) ReadProfiles

func (a *Stats) ReadProfiles(ctx context.Context, in *stats.Query) (*stats.Profile, error)

should cover /profiles, profiles/:profile-id/summary, profiles/:profile-id/controls

func (*Stats) ReadSummary

func (a *Stats) ReadSummary(ctx context.Context, in *stats.Query) (*stats.Summary, error)

should cover /summary, /summary/nodes, /summary/controls

func (*Stats) ReadTrend

func (a *Stats) ReadTrend(ctx context.Context, in *stats.Query) (*stats.Trends, error)

should cover /trend/nodes, /trend/controls

func (*Stats) UpdateTelemetryReported

UpdateTelemetryReported Updates the last compliance telemetry reported date after the telemetry data is sent

Jump to

Keyboard shortcuts

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