Documentation ¶
Index ¶
- Constants
- type ReportEventReceiver
- func (report *ReportEventReceiver) DisplayReportURL()
- func (report *ReportEventReceiver) GetURL() string
- func (report *ReportEventReceiver) SetClusterName(clusterName string)
- func (report *ReportEventReceiver) SetCustomerGUID(customerGUID string)
- func (report *ReportEventReceiver) Submit(opaSessionObj *cautils.OPASessionObj) error
- type ReportMock
- func (reportMock *ReportMock) DisplayReportURL()
- func (reportMock *ReportMock) GetURL() string
- func (reportMock *ReportMock) SetClusterName(clusterName string)
- func (reportMock *ReportMock) SetCustomerGUID(customerGUID string)
- func (reportMock *ReportMock) Submit(opaSessionObj *cautils.OPASessionObj) error
- type SubmitContext
Constants ¶
View Source
const MAX_REPORT_SIZE = 2097152 // 2 MB
View Source
const NO_SUBMIT_QUERY = "utm_source=GitHub&utm_medium=CLI&utm_campaign=no_submit"
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.ConfigObj, reportID string, submitContext SubmitContext) *ReportEventReceiver
func (*ReportEventReceiver) DisplayReportURL ¶
func (report *ReportEventReceiver) DisplayReportURL()
func (*ReportEventReceiver) GetURL ¶
func (report *ReportEventReceiver) GetURL() string
func (*ReportEventReceiver) SetClusterName ¶
func (report *ReportEventReceiver) SetClusterName(clusterName string)
func (*ReportEventReceiver) SetCustomerGUID ¶
func (report *ReportEventReceiver) SetCustomerGUID(customerGUID string)
func (*ReportEventReceiver) Submit ¶
func (report *ReportEventReceiver) Submit(opaSessionObj *cautils.OPASessionObj) error
type ReportMock ¶
type ReportMock struct {
// contains filtered or unexported fields
}
func NewReportMock ¶
func NewReportMock(query, message string) *ReportMock
func (*ReportMock) DisplayReportURL ¶
func (reportMock *ReportMock) DisplayReportURL()
func (*ReportMock) GetURL ¶
func (reportMock *ReportMock) GetURL() string
func (*ReportMock) SetClusterName ¶
func (reportMock *ReportMock) SetClusterName(clusterName string)
func (*ReportMock) SetCustomerGUID ¶
func (reportMock *ReportMock) SetCustomerGUID(customerGUID string)
func (*ReportMock) Submit ¶
func (reportMock *ReportMock) Submit(opaSessionObj *cautils.OPASessionObj) error
type SubmitContext ¶
type SubmitContext string
const ( SubmitContextScan SubmitContext = "scan" SubmitContextRBAC SubmitContext = "rbac" SubmitContextRepository SubmitContext = "repository" )
Click to show internal directories.
Click to hide internal directories.