validators

package
v1.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Initialize

func Initialize(e *echo.Echo)

Initialize initializes the validator

func ValidateBuilderSource

func ValidateBuilderSource(field validator.FieldLevel) bool

ValidateBuilderSource validates the builder source

func ValidateCronRule

func ValidateCronRule(field validator.FieldLevel) bool

ValidateCronRule ...

func ValidateDigest

func ValidateDigest(field validator.FieldLevel) bool

ValidateDigest validates the digest

func ValidateEmail

func ValidateEmail(field validator.FieldLevel) bool

ValidateEmail validates the email

func ValidateNamespace

func ValidateNamespace(field validator.FieldLevel) bool

ValidateNamespace validates the namespace name

func ValidateNamespaceRaw

func ValidateNamespaceRaw(namespace string) bool

ValidateNamespaceRaw ...

func ValidateNamespaceRole

func ValidateNamespaceRole(field validator.FieldLevel) bool

ValidateNamespaceRole ...

func ValidateOciPlatforms

func ValidateOciPlatforms(field validator.FieldLevel) bool

ValidateOciPlatforms validates oci platforms

func ValidatePassword

func ValidatePassword(field validator.FieldLevel) bool

ValidatePassword validates the password

func ValidateProvider

func ValidateProvider(field validator.FieldLevel) bool

ValidateProvider validates the provider

func ValidateRepository

func ValidateRepository(field validator.FieldLevel) bool

ValidateRepository validates the repository name

func ValidateRepositoryRaw

func ValidateRepositoryRaw(repository string) bool

ValidateRepositoryRaw ...

func ValidateRetentionPattern

func ValidateRetentionPattern(field validator.FieldLevel) bool

ValidateRetentionPattern ...

func ValidateRetentionRuleType

func ValidateRetentionRuleType(field validator.FieldLevel) bool

ValidateRetentionRuleType ...

func ValidateScmCredentialType

func ValidateScmCredentialType(field validator.FieldLevel) bool

ValidateScmCredentialType validates the ScmCredentialType

func ValidateTag

func ValidateTag(field validator.FieldLevel) bool

ValidateTag validates the tag

func ValidateUserRole

func ValidateUserRole(field validator.FieldLevel) bool

ValidateUserRole validates the user role

func ValidateUserStatue

func ValidateUserStatue(field validator.FieldLevel) bool

ValidateUserStatue validates the user status

func ValidateUsername

func ValidateUsername(field validator.FieldLevel) bool

ValidateUsername validates the username

func ValidateVisibility

func ValidateVisibility(field validator.FieldLevel) bool

ValidateVisibility validates the visibility

Types

type CustomValidator

type CustomValidator struct {
	// contains filtered or unexported fields
}

CustomValidator is a custom validator for echo

func (*CustomValidator) Validate

func (cv *CustomValidator) Validate(i interface{}) error

Validate validates the input

Jump to

Keyboard shortcuts

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