policyhandler

package
v1.0.126 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2021 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const SelectAllResources = "*"

Variables

View Source
var (
	YAML_PREFIX = []string{".yaml", ".yml"}
	JSON_PREFIX = []string{".json"}
)

Functions

func ScanRepository added in v1.0.84

func ScanRepository(command string, branchOptional string) ([]string, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL