matcher

package
v1.4.5 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2021 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GlobMatch

func GlobMatch(name string, patterns []string) bool

GlobMatch matches given name in list of glob patterns.

func GlobMatchNodesDrivesStatuses

func GlobMatchNodesDrivesStatuses(nodes, drives, statuses []string, node, drive, status string) bool

GlobMatchNodesDrivesStatuses matches node/drive/status in list of nodes/drives/statuses glob patterns.

func MatchTrueConditions

func MatchTrueConditions(conditions []metav1.Condition, types, statusList []string) bool

MatchTrueConditions matches whether types and status list are in a true conditions or not.

func StringIn

func StringIn(slice []string, value string) bool

StringIn checks whether value in the slice.

Types

This section is empty.

Jump to

Keyboard shortcuts

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