validation

package
v0.2.0-alpha.12 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2025 License: MIT Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderSet = wire.NewSet(New, wire.Bind(new(any), new(*Validator)))

ProviderSet is validator providers.

Functions

This section is empty.

Types

type Validator

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

Validator struct implements the custom validator interface.

func New

func New(ds store.IStore) *Validator

New creates and initializes a custom validator. It receives an instance of store.IStore interface as parameter ds and returns a new *Validator and an error.

func (*Validator) ValidateCreateCronJobRequest

func (valid *Validator) ValidateCreateCronJobRequest(ctx *gin.Context, rq *nwv1.CreateCronJobRequest) error

func (*Validator) ValidateCreateJobRequest

func (valid *Validator) ValidateCreateJobRequest(ctx *gin.Context, rq *nwv1.CreateJobRequest) error

func (*Validator) ValidateDeleteCronJobRequest

func (valid *Validator) ValidateDeleteCronJobRequest(ctx *gin.Context, rq *nwv1.DeleteCronJobRequest) error

func (*Validator) ValidateDeleteJobRequest

func (valid *Validator) ValidateDeleteJobRequest(ctx *gin.Context, rq *nwv1.DeleteJobRequest) error

func (*Validator) ValidateGetCronJobRequest

func (valid *Validator) ValidateGetCronJobRequest(ctx *gin.Context, rq *nwv1.GetCronJobRequest) error

func (*Validator) ValidateGetJobRequest

func (valid *Validator) ValidateGetJobRequest(ctx *gin.Context, rq *nwv1.GetJobRequest) error

func (*Validator) ValidateListCronJobRequest

func (valid *Validator) ValidateListCronJobRequest(ctx *gin.Context, rq *nwv1.ListCronJobRequest) error

func (*Validator) ValidateListJobRequest

func (valid *Validator) ValidateListJobRequest(ctx *gin.Context, rq *nwv1.ListJobRequest) error

func (*Validator) ValidateUpdateCronJobRequest

func (valid *Validator) ValidateUpdateCronJobRequest(ctx *gin.Context, rq *nwv1.UpdateCronJobRequest) error

func (*Validator) ValidateUpdateJobRequest

func (valid *Validator) ValidateUpdateJobRequest(ctx *gin.Context, rq *nwv1.UpdateJobRequest) error

Jump to

Keyboard shortcuts

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