check

package
v0.9.15 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIntOption

func CheckIntOption(opt int32, optName string, descriptors map[string]*cpb.Descriptor) error

CheckIntOption checks if the int option valid.

func CheckStringListOption

func CheckStringListOption(values []string, optName string, descriptors map[string]*cpb.Descriptor) error

func CheckStringOption

func CheckStringOption(opt, optName string, descriptors map[string]*cpb.Descriptor) error

CheckStringOption checks if the string option valid.

func CheckUI

func CheckUI(ui map[string]string, requireDescription bool) (string, error)

CheckUI checks UI object in config.

func ClientsEqual

func ClientsEqual(a, b map[string]*cpb.Client) bool

ClientsEqual compares two maps of Client protos and returns true if equal.

func OptDuration

func OptDuration(optName, optVal, minVal, maxVal string) (time.Duration, *optional.Duration, *optional.Duration, error)

OptDuration parses opt value, min and max.

func ValidToWriteConfig added in v0.9.9

func ValidToWriteConfig(realm string, readOnlyMaster bool) error

ValidToWriteConfig assumes the caller is trying to modify the realm's config and therefore returns an error if it is read only.

Types

This section is empty.

Jump to

Keyboard shortcuts

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