Documentation ¶
Index ¶
- type ReportManagerChan
- type ReportManagerErrorChan
- type Server
- func (srv *Server) AssetCount(ctx context.Context, in *reporting.ListFilters) (*reporting.AssetSummary, error)
- func (srv *Server) Export(in *reporting.Query, stream reporting.ReportingService_ExportServer) error
- func (srv *Server) ExportNode(in *reporting.Query, stream reporting.ReportingService_ExportNodeServer) error
- func (srv *Server) ExportReportManager(ctx context.Context, in *reporting.Query) (*reporting.CustomReportResponse, error)
- func (srv *Server) GetAssetConfig(ctx context.Context, in *reporting.GetAssetConfigRequest) (*reporting.ComplianceConfigResponse, error)
- func (srv *Server) GetReportContent(ctx context.Context, in *reporting.ReportContentRequest) (*reporting.ReportContentResponse, error)
- func (srv *Server) GetReportListForReportManager(filters *reporting.ListFilters, ...) error
- func (srv *Server) ListAsset(ctx context.Context, in *reporting.AssetListRequest) (*reporting.AssetListResponse, error)
- func (srv *Server) ListControlInfo(ctx context.Context, in *reporting.Query) (*reporting.ControlElements, error)
- func (srv *Server) ListControlItems(ctx context.Context, in *reporting.ControlItemRequest) (*reporting.ControlItems, error)
- func (srv *Server) ListControlItemsRange(ctx context.Context, in *reporting.ControlItemRequest) (*reporting.ControlItems, error)
- func (srv *Server) ListNodes(ctx context.Context, in *reporting.Query) (*reporting.Nodes, error)
- func (srv *Server) ListProfiles(ctx context.Context, in *reporting.Query) (*reporting.ProfileMins, error)
- func (srv *Server) ListReportIds(ctx context.Context, in *reporting.Query) (*reporting.ReportIds, error)
- func (srv *Server) ListReports(ctx context.Context, in *reporting.Query) (*reporting.ReportsSummaryLevelOne, error)
- func (srv *Server) ListSuggestions(ctx context.Context, in *reporting.SuggestionRequest) (*reporting.Suggestions, error)
- func (srv *Server) ReadNode(ctx context.Context, in *reporting.Id) (*reporting.Node, error)
- func (srv *Server) ReadNodeHeader(ctx context.Context, in *reporting.Query) (*reporting.NodeHeaderInfo, error)
- func (srv *Server) ReadReport(ctx context.Context, in *reporting.Query) (*reporting.Report, error)
- func (srv *Server) SetAssetConfig(ctx context.Context, in *reporting.ComplianceConfigRequest) (*reporting.ComplianceConfigResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReportManagerChan ¶
type ReportManagerChan struct {
// contains filtered or unexported fields
}
type ReportManagerErrorChan ¶
type ReportManagerErrorChan struct {
// contains filtered or unexported fields
}
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server implementation for reporting
func New ¶
func New(es *relaxting.ES2Backend, rm reportmanager.ReportManagerServiceClient, lcrOpenSearchRequest int, db *pgdb.DB, isEnhancedReportingEnabled bool) *Server
New creates a new server
func (*Server) AssetCount ¶
func (srv *Server) AssetCount(ctx context.Context, in *reporting.ListFilters) (*reporting.AssetSummary, error)
func (*Server) Export ¶
func (srv *Server) Export(in *reporting.Query, stream reporting.ReportingService_ExportServer) error
Export streams a json or csv export
func (*Server) ExportNode ¶
func (*Server) ExportReportManager ¶
func (srv *Server) ExportReportManager(ctx context.Context, in *reporting.Query) (*reporting.CustomReportResponse, error)
ExportReportManager populate the report manager request and sent for processing
func (*Server) GetAssetConfig ¶
func (srv *Server) GetAssetConfig(ctx context.Context, in *reporting.GetAssetConfigRequest) (*reporting.ComplianceConfigResponse, error)
func (*Server) GetReportContent ¶
func (srv *Server) GetReportContent(ctx context.Context, in *reporting.ReportContentRequest) (*reporting.ReportContentResponse, error)
func (*Server) GetReportListForReportManager ¶
func (srv *Server) GetReportListForReportManager(filters *reporting.ListFilters, stream reporting.ReportingService_GetReportListForReportManagerServer) error
func (*Server) ListAsset ¶
func (srv *Server) ListAsset(ctx context.Context, in *reporting.AssetListRequest) (*reporting.AssetListResponse, error)
func (*Server) ListControlInfo ¶
func (srv *Server) ListControlInfo(ctx context.Context, in *reporting.Query) (*reporting.ControlElements, error)
ListControlInfo returns a list of controlListItems based on query
func (*Server) ListControlItems ¶
func (srv *Server) ListControlItems(ctx context.Context, in *reporting.ControlItemRequest) (*reporting.ControlItems, error)
ListControlItems returns a list of controlListItems based on query
func (*Server) ListControlItemsRange ¶
func (srv *Server) ListControlItemsRange(ctx context.Context, in *reporting.ControlItemRequest) (*reporting.ControlItems, error)
ListControlItemsRange returns a list of controlListItems based on query
func (*Server) ListProfiles ¶
func (srv *Server) ListProfiles(ctx context.Context, in *reporting.Query) (*reporting.ProfileMins, error)
ListProfiles returns a list of profiles based on query
func (*Server) ListReportIds ¶
func (srv *Server) ListReportIds(ctx context.Context, in *reporting.Query) (*reporting.ReportIds, error)
ListReportIds returns a list of reports based on query
func (*Server) ListReports ¶
func (srv *Server) ListReports(ctx context.Context, in *reporting.Query) (*reporting.ReportsSummaryLevelOne, error)
ListReports returns a list of reports based on query
func (*Server) ListSuggestions ¶
func (srv *Server) ListSuggestions(ctx context.Context, in *reporting.SuggestionRequest) (*reporting.Suggestions, error)
ListSuggestions returns a list of suggestions based on query
func (*Server) ReadNodeHeader ¶
func (srv *Server) ReadNodeHeader(ctx context.Context, in *reporting.Query) (*reporting.NodeHeaderInfo, error)
ReadNodeHeader takes the report Id as input and returns a report showing specific header details of report.
func (*Server) ReadReport ¶
ReadReport returns a report based on id
func (*Server) SetAssetConfig ¶
func (srv *Server) SetAssetConfig(ctx context.Context, in *reporting.ComplianceConfigRequest) (*reporting.ComplianceConfigResponse, error)