Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NoValidError ¶
type NoValidError struct {
Details interface{}
}
NoValidError indicates
func (NoValidError) Error ¶
func (e NoValidError) Error() string
func (NoValidError) GetDetails ¶
func (e NoValidError) GetDetails() interface{}
type Policy ¶
type Policy struct {
// contains filtered or unexported fields
}
Policy contains policy and metedata
func (Policy) Eval ¶
Eval validates data against given policy returns error if there're any violations found
func (Policy) EvalGateKeeperCompliant ¶
func (p Policy) EvalGateKeeperCompliant(data map[string]interface{}, parameters map[string]interface{}, query string) error
EvalGateKeeperCompliant modifies the data to be Gatekeeper compliant and validates data against given policy returns error if there're any violations found
Click to show internal directories.
Click to hide internal directories.