selector

package
v2.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2023 License: Apache-2.0 Imports: 15 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

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.

Jump to

Keyboard shortcuts

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