utils

package
v0.0.0-...-ee605f6 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MAX_SITE_NAME_LENGTH   = 700
	MAX_APP_NAME_LENGTH    = 40
	MAX_POLICY_NAME_LENGTH = 255
	LocalIdpId             = "local"
	DefaultCollection      = "7cef2ccc-ed3e-4812-9ef2-b986c5dac2a5"
	RootCollection         = "6b21619f-f505-41ec-af1b-09350be40000"
)

Variables

This section is empty.

Functions

func ParseStringList

func ParseStringList(stringListInterface []interface{}) []string

func StringInSlice

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

func StringMD5

func StringMD5(in string) string

func ValidateApplicationName

func ValidateApplicationName(v interface{}, k string) (ws []string, es []error)

func ValidateBool

func ValidateBool(v interface{}, k string) (ws []string, es []error)

func ValidateCollectionRole

func ValidateCollectionRole(role string) bool

func ValidateEmail

func ValidateEmail(v interface{}, k string) (ws []string, es []error)

func ValidateEntityType

func ValidateEntityType(entityType string) bool

func ValidatePolicyName

func ValidatePolicyName(v interface{}, k string) (ws []string, es []error)

func ValidateSiteName

func ValidateSiteName(v interface{}, k string) (ws []string, es []error)

func ValidateSiteRole

func ValidateSiteRole(role string) bool

func ValidateString

func ValidateString(v interface{}, k string) (ws []string, es []error)

func ValidateStringPropertyLength

func ValidateStringPropertyLength(v interface{}, maxLength int) error

func ValidateTenantRole

func ValidateTenantRole(role string) bool

func ValidateUuid

func ValidateUuid(v interface{}, k string) (ws []string, es []error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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