package cautils import ( "kube-escape/cautils/opapolicy" ) // K8SResources map[//] type K8SResources map[string]interface{} type OPASessionObj struct { Frameworks []opapolicy.Framework K8SResources *K8SResources PostureReport *opapolicy.PostureReport } func NewOPASessionObj(frameworks []opapolicy.Framework, k8sResources *K8SResources) *OPASessionObj { return &OPASessionObj{ Frameworks: frameworks, K8SResources: k8sResources, PostureReport: &opapolicy.PostureReport{ ClusterName: ClusterName, CustomerGUID: CustomerGUID, }, } } func NewOPASessionObjMock() *OPASessionObj { return &OPASessionObj{ Frameworks: nil, K8SResources: nil, PostureReport: &opapolicy.PostureReport{ ClusterName: "", CustomerGUID: "", ReportID: "", JobID: "", }, } } type ComponentConfig struct { Exceptions Exception `json:"exceptions"` } type Exception struct { Ignore *bool `json:"ignore"` // ignore test results MultipleScore *opapolicy.AlertScore `json:"multipleScore"` // MultipleScore number - float32 Namespaces []string `json:"namespaces"` Regex string `json:"regex"` // not supported }