check

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2020 License: Apache-2.0 Imports: 10 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

func CheckReadOnly

func CheckReadOnly(realm string, readOnlyMaster bool, whitelistedRealms []string) error

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

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, time.Duration, time.Duration, error)

func OptInt

func OptInt(str string) int32

Types

This section is empty.

Jump to

Keyboard shortcuts

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