Documentation ¶
Index ¶
- Constants
- type ErrParameterIsTooLong
- type Validator
- func (v *Validator) ValidateEventName(eventName string) error
- func (v *Validator) ValidateJobName(jobName string) error
- func (v *Validator) ValidateReporterName(reporterName string) error
- func (v *Validator) ValidateRequestorName(requestorName string) error
- func (v *Validator) ValidateServerID(serverID string) error
- func (v *Validator) ValidateTestName(testName string) error
- func (v *Validator) ValidateTestStepLabel(testStepLabel string) error
Constants ¶
const MaxEventNameLen = 32
MaxEventNameLen is a max length of event name field
const MaxJobNameLen = 64
MaxJobNameLen is a max length of job name field
const MaxReporterNameLen = 32
MaxReporterNameLen is a max length of reporter name field
const MaxRequestorNameLen = 32
MaxRequestorNameLen is a max length of Requestor name field
const MaxServerIDLen = 64
MaxServerIDLen is a max length of server id field
const MaxTestNameLen = 32
MaxTestNameLen is a max length of test name field
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 ¶
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 ¶
ValidateEventName retruns error if the event name does not match storage limitations
func (*Validator) ValidateJobName ¶
ValidateJobName retruns error if the job name does not match storage limitations
func (*Validator) ValidateReporterName ¶
ValidateReporterName retruns error if the reporter name does not match storage limitations
func (*Validator) ValidateRequestorName ¶
ValidateRequestorName retruns error if the requestor name does not match storage limitations
func (*Validator) ValidateServerID ¶
ValidateServerID retruns error if the ServerID does not match storage limitations
func (*Validator) ValidateTestName ¶
ValidateTestName retruns error if the test name does not match storage limitations
func (*Validator) ValidateTestStepLabel ¶
ValidateTestStepLabel retruns error if the test step label does not match storage limitations