secreport

package
v0.0.0-...-074d584 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Index

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

func (c *Client) DeleteAllSecurityAuditQueries(ctx context.Context) error

DeleteAllSecurityAuditQueries deletes all security audit queries.

func (*Client) DeleteAllSecurityReports

func (c *Client) DeleteAllSecurityReports(ctx context.Context) error

DeleteAllSecurityReports deletes all security reports.

func (*Client) DeleteAllSecurityReportsStates

func (c *Client) DeleteAllSecurityReportsStates(ctx context.Context) error

DeleteAllSecurityReportsStates deletes all security reports states.

func (*Client) DeleteSecurityAuditQuery

func (c *Client) DeleteSecurityAuditQuery(ctx context.Context, name string) error

DeleteSecurityAuditQuery deletes audit query by name.

func (*Client) DeleteSecurityReport

func (c *Client) DeleteSecurityReport(ctx context.Context, name string) error

DeleteSecurityReport deletes a security report.

func (*Client) DeleteSecurityReportsState

func (c *Client) DeleteSecurityReportsState(ctx context.Context, name string) error

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) GetSchema

func (c *Client) GetSchema(ctx context.Context) (*pb.GetSchemaResponse, error)

GetSchema returns the schema for the audit query language.

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

func (c *Client) GetSecurityReport(ctx context.Context, name string) (*secreports.Report, error)

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 (c *Client) GetSecurityReports(ctx context.Context) ([]*secreports.Report, error)

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 (c *Client) ListSecurityReports(ctx context.Context, pageSize int, token string) ([]*secreports.Report, string, error)

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

func (c *Client) RunSecurityReport(ctx context.Context, name string, days int) error

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

func (c *Client) UpsertSecurityReport(ctx context.Context, item *secreports.Report) error

UpsertSecurityReport upsets security report.

func (*Client) UpsertSecurityReportsState

func (c *Client) UpsertSecurityReportsState(ctx context.Context, item *secreports.ReportState) error

UpsertSecurityReportsState upserts security reports state.

Jump to

Keyboard shortcuts

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