Documentation ¶
Index ¶
- Constants
- type ReportEventReceiver
- func (report *ReportEventReceiver) DisplayMessage()
- func (report *ReportEventReceiver) GetAccountID() string
- func (report *ReportEventReceiver) GetClusterName() string
- func (report *ReportEventReceiver) SetTenantConfig(tenantConfig cautils.ITenantConfig)
- func (report *ReportEventReceiver) Submit(ctx context.Context, opaSessionObj *cautils.OPASessionObj) error
- type ReportMock
- type SubmitContext
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" )
Click to show internal directories.
Click to hide internal directories.