reporter

package
v3.0.8 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 21 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, client *client.KSCloudAPI) *ReportEventReceiver

func (*ReportEventReceiver) DisplayMessage

func (report *ReportEventReceiver) DisplayMessage()

func (*ReportEventReceiver) GetAccountID

func (report *ReportEventReceiver) GetAccountID() string

func (*ReportEventReceiver) GetClusterName

func (report *ReportEventReceiver) GetClusterName() string

func (*ReportEventReceiver) SetTenantConfig

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

func (reportMock *ReportMock) DisplayMessage()

func (*ReportMock) GetURL

func (reportMock *ReportMock) GetURL() string

func (*ReportMock) SetTenantConfig

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