Documentation ¶
Index ¶
- Constants
- Variables
- func ScanRepository(command string, branchOptional string) ([]string, error)
- type FileFormat
- type GitHubRepository
- type IRepository
- type PolicyHandler
- func (policyHandler *PolicyHandler) GetPoliciesFromBackend(notification *reporthandling.PolicyNotification) ([]reporthandling.Framework, []armotypes.PostureExceptionPolicy, error)
- func (policyHandler *PolicyHandler) HandleNotificationRequest(notification *reporthandling.PolicyNotification, scanInfo *cautils.ScanInfo) error
Constants ¶
View Source
const SelectAllResources = "*"
Variables ¶
View Source
var ( YAML_PREFIX = []string{".yaml", ".yml"} JSON_PREFIX = []string{".json"} )
Functions ¶
Types ¶
type FileFormat ¶
type FileFormat string
const ( YAML_FILE_FORMAT FileFormat = "yaml" JSON_FILE_FORMAT FileFormat = "json" )
type GitHubRepository ¶ added in v1.0.84
type GitHubRepository struct {
// contains filtered or unexported fields
}
func NewGitHubRepository ¶ added in v1.0.84
func NewGitHubRepository(rep string) *GitHubRepository
type IRepository ¶ added in v1.0.84
type IRepository interface {
// contains filtered or unexported methods
}
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 *reporthandling.PolicyNotification) ([]reporthandling.Framework, []armotypes.PostureExceptionPolicy, error)
func (*PolicyHandler) HandleNotificationRequest ¶
func (policyHandler *PolicyHandler) HandleNotificationRequest(notification *reporthandling.PolicyNotification, scanInfo *cautils.ScanInfo) error
Click to show internal directories.
Click to hide internal directories.