Documentation ¶
Index ¶
- type Jobs
- func (a *Jobs) Create(ctx context.Context, in *jobs.Job) (*jobs.Id, error)
- func (a *Jobs) Delete(ctx context.Context, in *jobs.Id) (*gp.Empty, error)
- func (a *Jobs) List(ctx context.Context, in *jobs.Query) (*jobs.Jobs, error)
- func (a *Jobs) Read(ctx context.Context, in *jobs.Id) (*jobs.Job, error)
- func (a *Jobs) Rerun(ctx context.Context, in *jobs.Id) (*jobs.RerunResponse, error)
- func (a *Jobs) Update(ctx context.Context, in *jobs.Job) (*gp.Empty, error)
- type Profiles
- func (a *Profiles) Create(stream profiles.ProfilesService_CreateServer) error
- func (a *Profiles) Delete(ctx context.Context, in *profiles.ProfileDetails) (*gp.Empty, error)
- func (a *Profiles) List(ctx context.Context, in *profiles.Query) (*profiles.Profiles, error)
- func (a *Profiles) MetaSearch(ctx context.Context, in *profiles.Sha256) (*profiles.Missing, error)
- func (a *Profiles) Read(ctx context.Context, in *profiles.ProfileDetails) (*profiles.Profile, error)
- func (a *Profiles) ReadFromMarket(ctx context.Context, in *profiles.ProfileDetails) (*profiles.Profile, error)
- func (a *Profiles) ReadTar(*profiles.ProfileDetails, profiles.ProfilesService_ReadTarServer) error
- type Reporting
- func (a *Reporting) AssetCount(ctx context.Context, in *reporting.ListFilters) (*reporting.AssetSummary, error)
- func (a *Reporting) Export(*reporting.Query, reporting.ReportingService_ExportServer) error
- func (a *Reporting) ExportNode(*reporting.Query, reporting.ReportingService_ExportNodeServer) error
- func (a *Reporting) ExportReportManager(ctx context.Context, in *reporting.Query) (*reporting.CustomReportResponse, error)
- func (a *Reporting) GetAssetConfig(ctx context.Context, in *reporting.GetAssetConfigRequest) (*reporting.ComplianceConfigResponse, error)
- func (a *Reporting) GetVersion(ctx context.Context, in *gp.Empty) (*version.VersionInfo, error)
- func (a *Reporting) LicenseUsageNodes(ctx context.Context, in *reporting.TimeQuery) (*reporting.Reports, error)
- func (a *Reporting) ListAsset(ctx context.Context, in *reporting.AssetListRequest) (*reporting.AssetListResponse, error)
- func (a *Reporting) ListControlInfo(ctx context.Context, in *reporting.Query) (*reporting.ControlElements, error)
- func (a *Reporting) ListControlItems(ctx context.Context, in *reporting.ControlItemRequest) (*reporting.ControlItems, error)
- func (a *Reporting) ListControlItemsRange(ctx context.Context, in *reporting.ControlItemRequest) (*reporting.ControlItems, error)
- func (a *Reporting) ListNodes(ctx context.Context, in *reporting.Query) (*reporting.Nodes, error)
- func (a *Reporting) ListProfiles(ctx context.Context, in *reporting.Query) (*reporting.ProfileMins, error)
- func (a *Reporting) ListReportIds(ctx context.Context, in *reporting.Query) (*reporting.ReportIds, error)
- func (a *Reporting) ListReports(ctx context.Context, in *reporting.Query) (*reporting.ReportsSummaryLevelOne, error)
- func (a *Reporting) ListSuggestions(ctx context.Context, in *reporting.SuggestionRequest) (*reporting.Suggestions, error)
- func (a *Reporting) ReadNode(ctx context.Context, in *reporting.Id) (*reporting.Node, error)
- func (a *Reporting) ReadNodeHeader(ctx context.Context, in *reporting.Query) (*reporting.NodeHeaderInfo, error)
- func (a *Reporting) ReadReport(ctx context.Context, in *reporting.Query) (*reporting.Report, error)
- func (a *Reporting) SetAssetConfig(ctx context.Context, in *reporting.ComplianceConfigRequest) (*reporting.ComplianceConfigResponse, error)
- type Stats
- func (a *Stats) GetNodesUsageCount(ctx context.Context, in *stats.GetNodesUsageCountRequest) (*stats.GetNodesUsageCountResponse, error)
- func (a *Stats) ReadFailures(ctx context.Context, in *stats.Query) (*stats.Failures, error)
- func (a *Stats) ReadProfiles(ctx context.Context, in *stats.Query) (*stats.Profile, error)
- func (a *Stats) ReadSummary(ctx context.Context, in *stats.Query) (*stats.Summary, error)
- func (a *Stats) ReadTrend(ctx context.Context, in *stats.Query) (*stats.Trends, error)
- func (a *Stats) UpdateTelemetryReported(ctx context.Context, in *stats.UpdateTelemetryReportedRequest) (*stats.UpdateTelemetryReportedResponse, error)
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
type Profiles ¶
type Profiles struct {
// contains filtered or unexported fields
}
func NewProfilesHandler ¶
func NewProfilesHandler(profilesClient profileService.ProfilesServiceClient) *Profiles
func (*Profiles) Create ¶
func (a *Profiles) Create(stream profiles.ProfilesService_CreateServer) error
func (*Profiles) MetaSearch ¶
func (*Profiles) ReadFromMarket ¶
func (*Profiles) ReadTar ¶
func (a *Profiles) ReadTar(*profiles.ProfileDetails, profiles.ProfilesService_ReadTarServer) error
type Reporting ¶
type Reporting struct {
// contains filtered or unexported fields
}
func NewReportingHandler ¶
func NewReportingHandler(reportingClient reportingService.ReportingServiceClient, versionClient versionService.VersionServiceClient, jobsClient jobsService.JobsServiceClient) *Reporting
func (*Reporting) AssetCount ¶
func (a *Reporting) AssetCount(ctx context.Context, in *reporting.ListFilters) (*reporting.AssetSummary, error)
func (*Reporting) ExportNode ¶
func (*Reporting) ExportReportManager ¶
func (a *Reporting) ExportReportManager(ctx context.Context, in *reporting.Query) (*reporting.CustomReportResponse, error)
should cover reporting/reportmanager/export
func (*Reporting) GetAssetConfig ¶
func (a *Reporting) GetAssetConfig(ctx context.Context, in *reporting.GetAssetConfigRequest) (*reporting.ComplianceConfigResponse, error)
func (*Reporting) GetVersion ¶
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 (a *Reporting) ListAsset(ctx context.Context, in *reporting.AssetListRequest) (*reporting.AssetListResponse, error)
func (*Reporting) ListControlInfo ¶
func (a *Reporting) ListControlInfo(ctx context.Context, in *reporting.Query) (*reporting.ControlElements, error)
should cover /reportcontrols/:reportid
func (*Reporting) ListControlItems ¶
func (a *Reporting) ListControlItems(ctx context.Context, in *reporting.ControlItemRequest) (*reporting.ControlItems, error)
should cover /control-items
func (*Reporting) ListControlItemsRange ¶
func (a *Reporting) ListControlItemsRange(ctx context.Context, in *reporting.ControlItemRequest) (*reporting.ControlItems, 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 ¶
func (a *Reporting) ListReports(ctx context.Context, in *reporting.Query) (*reporting.ReportsSummaryLevelOne, error)
should cover /reports
func (*Reporting) ListSuggestions ¶
func (a *Reporting) ListSuggestions(ctx context.Context, in *reporting.SuggestionRequest) (*reporting.Suggestions, error)
should cover /suggestions
func (*Reporting) ReadNodeHeader ¶
func (a *Reporting) ReadNodeHeader(ctx context.Context, in *reporting.Query) (*reporting.NodeHeaderInfo, error)
should cover /reports/nodeheader/:reportid
func (*Reporting) ReadReport ¶
should cover /reports/:reportid
func (*Reporting) SetAssetConfig ¶
func (a *Reporting) SetAssetConfig(ctx context.Context, in *reporting.ComplianceConfigRequest) (*reporting.ComplianceConfigResponse, error)
type Stats ¶
type Stats struct {
// contains filtered or unexported fields
}
func NewStatsHandler ¶
func NewStatsHandler(statsClient statsService.StatsServiceClient) *Stats
func (*Stats) GetNodesUsageCount ¶
func (a *Stats) GetNodesUsageCount(ctx context.Context, in *stats.GetNodesUsageCountRequest) (*stats.GetNodesUsageCountResponse, error)
GetNodesUsageCount returns the count of unique nodes with lastRun in a given time.
func (*Stats) ReadFailures ¶
func (*Stats) ReadProfiles ¶
should cover /profiles, profiles/:profile-id/summary, profiles/:profile-id/controls
func (*Stats) ReadSummary ¶
should cover /summary, /summary/nodes, /summary/controls
func (*Stats) UpdateTelemetryReported ¶
func (a *Stats) UpdateTelemetryReported(ctx context.Context, in *stats.UpdateTelemetryReportedRequest) (*stats.UpdateTelemetryReportedResponse, error)
UpdateTelemetryReported Updates the last compliance telemetry reported date after the telemetry data is sent