Documentation ¶
Index ¶
- type Specification
- func MatchCEL(expressions []string) (Specification, error)
- func MatchJMESPath(exp *jmespath.JMESPath) Specification
- func MatchPathGlob(pattern string) (Specification, error)
- func MatchPathRegex(pattern string) (Specification, error)
- func MatchPathStrict(value string) Specification
- func MatchRego(ctx context.Context, policy string) (Specification, error)
- func MatchSecretGlob(pattern string) Specification
- func MatchSecretRegex(regex *regexp.Regexp) Specification
- func MatchSecretStrict(value string) Specification
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Specification ¶
type Specification interface {
IsSatisfiedBy(object interface{}) bool
}
Specification contract.
func MatchCEL ¶
func MatchCEL(expressions []string) (Specification, error)
MatchCEL returns a CEL package matcher specification.
func MatchJMESPath ¶
func MatchJMESPath(exp *jmespath.JMESPath) Specification
MatchJMESPath returns a JMESPatch package matcher specification.
func MatchPathGlob ¶
func MatchPathGlob(pattern string) (Specification, error)
MatchPathGlob returns a path matcher specification with glob query.
func MatchPathRegex ¶
func MatchPathRegex(pattern string) (Specification, error)
MatchPathRegex returns a path matcher specification with regexp.
func MatchPathStrict ¶
func MatchPathStrict(value string) Specification
MatchPathStrict returns a path matcher specification with strict profile.
func MatchRego ¶
func MatchRego(ctx context.Context, policy string) (Specification, error)
MatchRego returns a Rego package matcher specification.
func MatchSecretGlob ¶
func MatchSecretGlob(pattern string) Specification
MatchSecretGlob returns a secret key matcher specification with glob query.
func MatchSecretRegex ¶
func MatchSecretRegex(regex *regexp.Regexp) Specification
MatchSecretRegex returns a secret key matcher specification with regexp.
func MatchSecretStrict ¶
func MatchSecretStrict(value string) Specification
MatchSecretStrict returns a secret key matcher specification with strict profile.