Documentation ¶
Index ¶
Constants ¶
View Source
const SelectAllResources = "*"
Variables ¶
View Source
var ( YAML_PREFIX = []string{".yaml", ".yml"} JSON_PREFIX = []string{".json"} )
Functions ¶
func HTTPRespToString ¶
HTTPRespToString parses the body as string and checks the HTTP status code, it closes the body reader at the end
func JSONDecoder ¶
JSONDecoder returns JSON decoder for given string
Types ¶
type ArmoAPI ¶
type ArmoAPI struct {
// contains filtered or unexported fields
}
func NewArmoAPI ¶
func NewArmoAPI() *ArmoAPI
func (*ArmoAPI) GetHttpClient ¶
func (*ArmoAPI) GetServerAddress ¶
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, error)
func (*PolicyHandler) HandleNotificationRequest ¶
func (policyHandler *PolicyHandler) HandleNotificationRequest(notification *opapolicy.PolicyNotification, scanInfo *opapolicy.ScanInfo) error
Click to show internal directories.
Click to hide internal directories.