Documentation ¶
Index ¶
- type Client
- func (c *Client) DeleteAllSecurityAuditQueries(ctx context.Context) error
- func (c *Client) DeleteAllSecurityReports(ctx context.Context) error
- func (c *Client) DeleteAllSecurityReportsStates(ctx context.Context) error
- func (c *Client) DeleteSecurityAuditQuery(ctx context.Context, name string) error
- func (c *Client) DeleteSecurityReport(ctx context.Context, name string) error
- func (c *Client) DeleteSecurityReportsState(ctx context.Context, name string) error
- func (c *Client) GetAuditQueryResultAll(ctx context.Context, queryID string) ([]*pb.QueryRowResult, error)
- func (c *Client) GetSchema(ctx context.Context) (*pb.GetSchemaResponse, error)
- func (c *Client) GetSecurityAuditQueries(ctx context.Context) ([]*secreports.AuditQuery, error)
- func (c *Client) GetSecurityAuditQuery(ctx context.Context, name string) (*secreports.AuditQuery, error)
- func (c *Client) GetSecurityAuditQueryResult(ctx context.Context, resultID, nextToken string, maxResults int32) (*pb.GetAuditQueryResultResponse, error)
- func (c *Client) GetSecurityReport(ctx context.Context, name string) (*secreports.Report, error)
- func (c *Client) GetSecurityReportExecutionState(ctx context.Context, name string, days int32) (*secreports.ReportState, error)
- func (c *Client) GetSecurityReportResult(ctx context.Context, name string, days int) (*pb.ReportResult, error)
- func (c *Client) GetSecurityReportState(ctx context.Context, name string) (*secreports.ReportState, error)
- func (c *Client) GetSecurityReports(ctx context.Context) ([]*secreports.Report, error)
- func (c *Client) GetSecurityReportsStates(ctx context.Context) ([]*secreports.ReportState, error)
- func (c *Client) ListSecurityAuditQueries(ctx context.Context, size int, token string) ([]*secreports.AuditQuery, string, error)
- func (c *Client) ListSecurityReports(ctx context.Context, pageSize int, token string) ([]*secreports.Report, string, error)
- func (c *Client) ListSecurityReportsStates(ctx context.Context, i int, s string) ([]*secreports.ReportState, string, error)
- func (c *Client) RunAuditQuery(ctx context.Context, queryText string, days int) (*pb.RunAuditQueryResponse, error)
- func (c *Client) RunAuditQueryAndGetResult(ctx context.Context, queryText string, days int) ([]*pb.QueryRowResult, error)
- func (c *Client) RunSecurityReport(ctx context.Context, name string, days int) error
- func (c *Client) UpsertSecurityAuditQuery(ctx context.Context, in *secreports.AuditQuery) error
- func (c *Client) UpsertSecurityReport(ctx context.Context, item *secreports.Report) error
- func (c *Client) UpsertSecurityReportsState(ctx context.Context, item *secreports.ReportState) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a gRPC implementation of SecReportsService.
func NewClient ¶
func NewClient(grpcClient pb.SecReportsServiceClient) *Client
NewClient creates a new SecReports client.
func (*Client) DeleteAllSecurityAuditQueries ¶
DeleteAllSecurityAuditQueries deletes all security audit queries.
func (*Client) DeleteAllSecurityReports ¶
DeleteAllSecurityReports deletes all security reports.
func (*Client) DeleteAllSecurityReportsStates ¶
DeleteAllSecurityReportsStates deletes all security reports states.
func (*Client) DeleteSecurityAuditQuery ¶
DeleteSecurityAuditQuery deletes audit query by name.
func (*Client) DeleteSecurityReport ¶
DeleteSecurityReport deletes a security report.
func (*Client) DeleteSecurityReportsState ¶
DeleteSecurityReportsState deletes security reports state by name.
func (*Client) GetAuditQueryResultAll ¶
func (c *Client) GetAuditQueryResultAll(ctx context.Context, queryID string) ([]*pb.QueryRowResult, error)
GetAuditQueryResultAll returns all results for an audit query.
func (*Client) GetSecurityAuditQueries ¶
func (c *Client) GetSecurityAuditQueries(ctx context.Context) ([]*secreports.AuditQuery, error)
func (*Client) GetSecurityAuditQuery ¶
func (c *Client) GetSecurityAuditQuery(ctx context.Context, name string) (*secreports.AuditQuery, error)
GetSecurityAuditQuery returns audit query by name
func (*Client) GetSecurityAuditQueryResult ¶
func (c *Client) GetSecurityAuditQueryResult(ctx context.Context, resultID, nextToken string, maxResults int32) (*pb.GetAuditQueryResultResponse, error)
GetSecurityAuditQueryResult returns audit query result by id.
func (*Client) GetSecurityReport ¶
GetSecurityReport returns security report by name.
func (*Client) GetSecurityReportExecutionState ¶
func (c *Client) GetSecurityReportExecutionState(ctx context.Context, name string, days int32) (*secreports.ReportState, error)
GetSecurityReportExecutionState returns the execution state of the report.
func (*Client) GetSecurityReportResult ¶
func (c *Client) GetSecurityReportResult(ctx context.Context, name string, days int) (*pb.ReportResult, error)
GetSecurityReportResult returns security report details by name.
func (*Client) GetSecurityReportState ¶
func (c *Client) GetSecurityReportState(ctx context.Context, name string) (*secreports.ReportState, error)
func (*Client) GetSecurityReports ¶
func (*Client) GetSecurityReportsStates ¶
func (c *Client) GetSecurityReportsStates(ctx context.Context) ([]*secreports.ReportState, error)
GetSecurityReportsStates returns all security reports states.
func (*Client) ListSecurityAuditQueries ¶
func (c *Client) ListSecurityAuditQueries(ctx context.Context, size int, token string) ([]*secreports.AuditQuery, string, error)
func (*Client) ListSecurityReports ¶
func (*Client) ListSecurityReportsStates ¶
func (c *Client) ListSecurityReportsStates(ctx context.Context, i int, s string) ([]*secreports.ReportState, string, error)
ListSecurityReportsStates returns all security reports states.
func (*Client) RunAuditQuery ¶
func (c *Client) RunAuditQuery(ctx context.Context, queryText string, days int) (*pb.RunAuditQueryResponse, error)
RunAuditQuery runs an audit query.
func (*Client) RunAuditQueryAndGetResult ¶
func (c *Client) RunAuditQueryAndGetResult(ctx context.Context, queryText string, days int) ([]*pb.QueryRowResult, error)
RunAuditQueryAndGetResult runs an audit query and returns the result.
func (*Client) RunSecurityReport ¶
RunSecurityReport runs security report by name.
func (*Client) UpsertSecurityAuditQuery ¶
func (c *Client) UpsertSecurityAuditQuery(ctx context.Context, in *secreports.AuditQuery) error
UpsertSecurityAuditQuery upsets audit query.
func (*Client) UpsertSecurityReport ¶
UpsertSecurityReport upsets security report.
func (*Client) UpsertSecurityReportsState ¶
func (c *Client) UpsertSecurityReportsState(ctx context.Context, item *secreports.ReportState) error
UpsertSecurityReportsState upserts security reports state.