matching

package
v3.2.1-beta+incompatible Latest Latest
Warning

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

Go to latest
Published: May 20, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContentSignature

type ContentSignature struct {
	MatchOn     string
	Description string
	Comment     string
}

func (ContentSignature) GetComment

func (c ContentSignature) GetComment() string

func (ContentSignature) GetDescription

func (c ContentSignature) GetDescription() string

func (ContentSignature) Match

func (c ContentSignature) Match(target MatchTarget) (bool, error)

type FileSignature

type FileSignature struct {
	Part        string
	MatchOn     string
	Description string
	Comment     string
}

func (FileSignature) GetComment

func (f FileSignature) GetComment() string

func (FileSignature) GetDescription

func (f FileSignature) GetDescription() string

func (FileSignature) Match

func (f FileSignature) Match(target MatchTarget) (bool, error)

type FileSignatureType

type FileSignatureType struct {
	Extension string
	Filename  string
	Path      string
}

type Finding

type Finding struct {
	Id                          string
	FilePath                    string
	Action                      string
	FileSignatureDescription    string
	FileSignatureComment        string
	ContentSignatureDescription string
	ContentSignatureComment     string
	RepositoryOwner             string
	RepositoryName              string
	CommitHash                  string
	CommitMessage               string
	CommitAuthor                string
	FileUrl                     string
	CommitUrl                   string
	RepositoryUrl               string
	CloneUrl                    string
}

func (*Finding) Initialize

func (f *Finding) Initialize(isGithubSession bool)

type MatchTarget

type MatchTarget struct {
	Path      string
	Filename  string
	Extension string
	Content   string
}

func NewMatchTarget

func NewMatchTarget(path string) MatchTarget

func (*MatchTarget) IsSkippable

func (f *MatchTarget) IsSkippable() bool

type Signatures

type Signatures struct {
	FileSignatures    []FileSignature
	ContentSignatures []ContentSignature
}

func (*Signatures) Load

func (s *Signatures) Load(mode int) error

Jump to

Keyboard shortcuts

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