Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Description ¶ added in v0.26.0
Description validates whether the input meets the descriptin requirements
func InviteCode ¶ added in v0.30.0
InviteCode validates whether the input meets the invite code requirements
func NewValidationError ¶ added in v0.30.0
NewValidationError returns a validation error
func VerificationCode ¶ added in v0.30.0
VerificationCode validates whether the input meets the verification code requirements
Types ¶
type Func ¶ added in v0.30.0
type Func promptui.ValidateFunc
Func represents a validation function
var OrgName Func
OrgName validates whether the input meets the org name requirements
var PolicyName Func
PolicyName validates whether the input meets the policy name requirements
var ProjectName Func
ProjectName validates whether the input meets the project name requirements
var RoleName Func
RoleName validates whether the input meets the role name requirements
var TeamName Func
TeamName validates whether the input meets the team name requirements
var Username Func
Username validates whether the input meets the username requirements
func ConfirmPassword ¶ added in v0.30.0
ConfirmPassword ensures the input meets the password requirements and matches the previously provided password
func Confirmer ¶ added in v0.30.0
Confirmer returns a confirmation validation function which validates the input depending on whether or not this prompt is default Yes or No.
func OneOf ¶ added in v0.30.0
OneOf returns a validation function which validates whether or not the input matches one of the given options.
func SlugValidator ¶ added in v0.30.0
SlugValidator returns a validation function
type ValidationError ¶ added in v0.30.0
type ValidationError struct {
// contains filtered or unexported fields
}
ValidationError represents an error encountered when validating a field
func (*ValidationError) Error ¶ added in v0.30.0
func (e *ValidationError) Error() string
Error returns the error message completing the Error interface