Documentation
¶
Index ¶
- type Validator
- func (v *Validator) ValidateIssue(issue *models.Issue) error
- func (v *Validator) ValidateIssueComment(comment *models.IssueComment) error
- func (v *Validator) ValidateLabelDefinition(label *models.LabelDefinition) error
- func (v *Validator) ValidateLabelOp(labelDef *models.LabelDefinition, repo *models.Repo, labelOp *models.LabelOp) error
- func (v *Validator) ValidatePatch(patch *string) error
- func (v *Validator) ValidateRepoTopicStr(topicsStr string) ([]string, error)
- func (v *Validator) ValidateString(s *models.String) error
- func (v *Validator) ValidateURI(uri string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
func (*Validator) ValidateIssueComment ¶
func (v *Validator) ValidateIssueComment(comment *models.IssueComment) error
func (*Validator) ValidateLabelDefinition ¶
func (v *Validator) ValidateLabelDefinition(label *models.LabelDefinition) error
func (*Validator) ValidateLabelOp ¶
func (*Validator) ValidateRepoTopicStr ¶
ValidateRepoTopicStr parses and validates whitespace-separated topic string.
Rules:
- topics are separated by whitespace
- each topic may contain lowercase letters, digits, and hyphens only
- each topic must be <= 50 characters long
- no more than 20 topics allowed
- duplicates are removed
Source Files
¶
- issue.go
- label.go
- patch.go
- repo_topics.go
- string.go
- uri.go
- validator.go
Click to show internal directories.
Click to hide internal directories.