filter

package
v0.0.0-...-89f4574 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildSnippetFilter

func BuildSnippetFilter(filter string) (cel.Program, error)

BuildSnippetFilter creates a cel Program based off of the given filter string

func GitCommit

func GitCommit(g *drghs_v1.GitCommit, filter string) (bool, error)

GitCommit checks if the GitCommit passes the given CEL expression.

func Repository

func Repository(r *drghs_v1.Repository, filter string) (bool, error)

Repository checks if the Repository passes the given CEL expression.

func Snippet

func Snippet(s *drghs_v1.Snippet, p cel.Program) (bool, error)

Snippet checks if the Snippet passes the given CEL program.

func SnippetVersion

func SnippetVersion(s *drghs_v1.SnippetVersion, filter string) (bool, error)

SnippetVersion checks if the SnippetVersion passes the given CEL expression.

Types

This section is empty.

Jump to

Keyboard shortcuts

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