selector

package
v0.2.11 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

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 added in v0.2.6

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 added in v0.2.6

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 added in v0.2.6

func MatchRego(ctx context.Context, policy string) (Specification, error)

MatchRego returns a Rego package matcher specification.

func MatchSecretGlob added in v0.2.6

func MatchSecretGlob(pattern string) Specification

MatchSecretGlob returns a secret key matcher specification with glob query.

func MatchSecretRegex added in v0.2.6

func MatchSecretRegex(regex *regexp.Regexp) Specification

MatchSecretRegex returns a secret key matcher specification with regexp.

func MatchSecretStrict added in v0.2.6

func MatchSecretStrict(value string) Specification

MatchSecretStrict returns a secret key matcher specification with strict profile.

Jump to

Keyboard shortcuts

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