requirements

package
v1.30.6 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckRequirement

func CheckRequirement(key, value string, getter ValueGetter) (bool, error)

func Register

func Register(key string, f CheckFunc)

Types

type CheckFunc

type CheckFunc func(requirementValue string, getter ValueGetter) (bool, error)

type ValueGetter

type ValueGetter interface {
	Get(path string) gjson.Result
}

Jump to

Keyboard shortcuts

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