limits

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const MaxEventNameLen = 32

MaxEventNameLen is a max length of event name field

View Source
const MaxJobNameLen = 64

MaxJobNameLen is a max length of job name field

View Source
const MaxReporterNameLen = 32

MaxReporterNameLen is a max length of reporter name field

View Source
const MaxRequestorNameLen = 32

MaxRequestorNameLen is a max length of Requestor name field

View Source
const MaxServerIDLen = 64

MaxServerIDLen is a max length of server id field

View Source
const MaxTestNameLen = 32

MaxTestNameLen is a max length of test name field

View Source
const MaxTestStepLabelLen = 32

MaxTestStepLabelLen is a max length of test step label field

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrParameterIsTooLong

type ErrParameterIsTooLong struct {
	DataName  string
	MaxLen    int
	ActualLen int
}

ErrParameterIsTooLong implements "error" for generic length check error.

func (ErrParameterIsTooLong) Error

func (err ErrParameterIsTooLong) Error() string

type Validator

type Validator struct{}

Validator provides methods to validate data structures against storage limitations

func NewValidator

func NewValidator() *Validator

NewValidator returns new instance of storage Validator

func (*Validator) ValidateEventName

func (v *Validator) ValidateEventName(eventName string) error

ValidateEventName retruns error if the event name does not match storage limitations

func (*Validator) ValidateJobName

func (v *Validator) ValidateJobName(jobName string) error

ValidateJobName retruns error if the job name does not match storage limitations

func (*Validator) ValidateReporterName

func (v *Validator) ValidateReporterName(reporterName string) error

ValidateReporterName retruns error if the reporter name does not match storage limitations

func (*Validator) ValidateRequestorName

func (v *Validator) ValidateRequestorName(requestorName string) error

ValidateRequestorName retruns error if the requestor name does not match storage limitations

func (*Validator) ValidateServerID

func (v *Validator) ValidateServerID(serverID string) error

ValidateServerID retruns error if the ServerID does not match storage limitations

func (*Validator) ValidateTestName

func (v *Validator) ValidateTestName(testName string) error

ValidateTestName retruns error if the test name does not match storage limitations

func (*Validator) ValidateTestStepLabel

func (v *Validator) ValidateTestStepLabel(testStepLabel string) error

ValidateTestStepLabel returns error if the test step label does not match storage limitations

Jump to

Keyboard shortcuts

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