validators

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsConfirmed

func IsConfirmed(input string) bool

IsConfirmed validates that input is a confirmation and returns a bool where "yes" = true

func IsGitURL

func IsGitURL(input string) bool

IsGitURL validates that an input string is a git URL.

func IsGitURLNoSuffix

func IsGitURLNoSuffix(input string) bool

IsGitURLNoSuffix validates that an input is a git URL without the ".git" suffix

func IsModuleRef

func IsModuleRef(input string) bool

IsModuleRef validates that an input string is a ref identifier of a module: <org>/<module>

func IsModuleSlug

func IsModuleSlug(input string) bool

IsModuleSlug validates that an input string is a slug identifier of a module: <org>-<module>

func IsModuleString

func IsModuleString(input string) (bool, bool)

IsModuleString validates that an input string follows the Puppet module identifier string convention of <org>-<module_name>

func IsSlug

func IsSlug(input string) bool

IsSlug validates that the input is a "slug", a string valid in URLs, and returns a boolean

Types

This section is empty.

Jump to

Keyboard shortcuts

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