find

package
v0.0.0-...-7b9870f Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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.

type Scan

type Scan struct {
	// contains filtered or unexported fields
}

func (*Scan) Batchable

func (t *Scan) Batchable() bool

func (*Scan) Emoji

func (t *Scan) Emoji() rune

func (*Scan) Enabled

func (t *Scan) Enabled() bool

func (*Scan) Execute

func (t *Scan) Execute(r *exocomp.Repo, p *gitlab.Project, _ *gitlab.Group, _ *exocomp.Gitlab, c *cli.Context) error

func (*Scan) Flags

func (t *Scan) Flags() []cli.Flag

func (*Scan) Name

func (t *Scan) Name() string

func (*Scan) New

func (t *Scan) New(c *cli.Context) exocomp.Task

func (*Scan) Scope

func (t *Scan) Scope() exocomp.TaskScope

Jump to

Keyboard shortcuts

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