reporter

package
v2.9.2 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const MAX_REPORT_SIZE = 2097152 // 2 MB

Variables

This section is empty.

Functions

This section is empty.

Types

type ReportEventReceiver

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

func NewReportEventReceiver

func NewReportEventReceiver(tenantConfig cautils.ITenantConfig, reportID string, submitContext SubmitContext) *ReportEventReceiver

func (*ReportEventReceiver) DisplayMessage added in v2.9.1

func (report *ReportEventReceiver) DisplayMessage()

func (*ReportEventReceiver) GetAccountID added in v2.9.1

func (report *ReportEventReceiver) GetAccountID() string

func (*ReportEventReceiver) GetClusterName added in v2.9.1

func (report *ReportEventReceiver) GetClusterName() string

func (*ReportEventReceiver) SetTenantConfig added in v2.9.1

func (report *ReportEventReceiver) SetTenantConfig(tenantConfig cautils.ITenantConfig)

func (*ReportEventReceiver) Submit

func (report *ReportEventReceiver) Submit(ctx context.Context, opaSessionObj *cautils.OPASessionObj) error

type ReportMock

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

func NewReportMock

func NewReportMock(query, message string) *ReportMock

func (*ReportMock) DisplayMessage added in v2.9.1

func (reportMock *ReportMock) DisplayMessage()

func (*ReportMock) GetURL

func (reportMock *ReportMock) GetURL() string

func (*ReportMock) SetTenantConfig added in v2.9.1

func (reportMock *ReportMock) SetTenantConfig(tenantConfig cautils.ITenantConfig)

func (*ReportMock) Submit

func (reportMock *ReportMock) Submit(_ context.Context, opaSessionObj *cautils.OPASessionObj) error

type SubmitContext

type SubmitContext string
const (
	SubmitContextScan       SubmitContext = "scan"
	SubmitContextRepository SubmitContext = "repository"
)

Jump to

Keyboard shortcuts

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