Documentation ¶
Index ¶
- Variables
- func PatternTypeNames() []string
- type PatternType
- type Scan
- func (t *Scan) Batchable() bool
- func (t *Scan) Emoji() rune
- func (t *Scan) Enabled() bool
- func (t *Scan) Execute(r *exocomp.Repo, p *gitlab.Project, _ *gitlab.Group, _ *exocomp.Gitlab, ...) error
- func (t *Scan) Flags() []cli.Flag
- func (t *Scan) Name() string
- func (t *Scan) New(c *cli.Context) exocomp.Task
- func (t *Scan) Scope() exocomp.TaskScope
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidPatternType = fmt.Errorf("not a valid PatternType, try [%s]", strings.Join(_PatternTypeNames, ", "))
Functions ¶
func PatternTypeNames ¶
func PatternTypeNames() []string
PatternTypeNames returns a list of possible string values of PatternType.
Types ¶
type PatternType ¶
type PatternType string
ENUM(basic-regexp, extended-regexp, fixed-strings, perl-regexp)
const ( // PatternTypeBasicRegexp is a PatternType of type basic-regexp. PatternTypeBasicRegexp PatternType = "basic-regexp" // PatternTypeExtendedRegexp is a PatternType of type extended-regexp. PatternTypeExtendedRegexp PatternType = "extended-regexp" // PatternTypeFixedStrings is a PatternType of type fixed-strings. PatternTypeFixedStrings PatternType = "fixed-strings" // PatternTypePerlRegexp is a PatternType of type perl-regexp. PatternTypePerlRegexp PatternType = "perl-regexp" )
func ParsePatternType ¶
func ParsePatternType(name string) (PatternType, error)
ParsePatternType attempts to convert a string to a PatternType.
func (PatternType) IsValid ¶
func (x PatternType) IsValid() bool
IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values
func (PatternType) String ¶
func (x PatternType) String() string
String implements the Stringer interface.
Click to show internal directories.
Click to hide internal directories.