Documentation ¶
Index ¶
- Constants
- Variables
- type FileFormat
- type PolicyHandler
- func (policyHandler *PolicyHandler) GetPoliciesFromBackend(notification *opapolicy.PolicyNotification) ([]opapolicy.Framework, []armotypes.PostureExceptionPolicy, error)
- func (policyHandler *PolicyHandler) HandleNotificationRequest(notification *opapolicy.PolicyNotification, scanInfo *cautils.ScanInfo) error
Constants ¶
View Source
const SelectAllResources = "*"
Variables ¶
View Source
var ( YAML_PREFIX = []string{".yaml", ".yml"} JSON_PREFIX = []string{".json"} )
Functions ¶
This section is empty.
Types ¶
type FileFormat ¶
type FileFormat string
const ( YAML_FILE_FORMAT FileFormat = "yaml" JSON_FILE_FORMAT FileFormat = "json" )
type PolicyHandler ¶
type PolicyHandler struct {
// contains filtered or unexported fields
}
PolicyHandler -
func NewPolicyHandler ¶
func NewPolicyHandler(processPolicy *chan *cautils.OPASessionObj, k8s *k8sinterface.KubernetesApi) *PolicyHandler
CreatePolicyHandler Create ws-handler obj
func (*PolicyHandler) GetPoliciesFromBackend ¶
func (policyHandler *PolicyHandler) GetPoliciesFromBackend(notification *opapolicy.PolicyNotification) ([]opapolicy.Framework, []armotypes.PostureExceptionPolicy, error)
func (*PolicyHandler) HandleNotificationRequest ¶
func (policyHandler *PolicyHandler) HandleNotificationRequest(notification *opapolicy.PolicyNotification, scanInfo *cautils.ScanInfo) error
Click to show internal directories.
Click to hide internal directories.