validate

package
v0.0.0-...-e0271d0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package validate contains utility functions for input validation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNotEmpty

func IsNotEmpty(word string) error

IsNotEmpty checks that a word is not empty.

func IsValidActorEmail

func IsValidActorEmail(validDomain, actor string) error

IsValidActorEmail checks if the approver has the expected email domain.

func IsValidCommit

func IsValidCommit(commit string) error

IsValidCommit checks if a commit is considered valid.

func IsValidString

func IsValidString(pattern string, word string) bool

IsValidString does a regex comparison between a passed pattern and a word.

func IsValidVersion

func IsValidVersion(tag string) error

IsValidVersion checks if a tag is considered a valid version.

Types

This section is empty.

Jump to

Keyboard shortcuts

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