validation

package
v0.2.0-alpha.5 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: MIT Imports: 8 Imported by: 0

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