handlers

package
v0.0.0-...-bc69434 Latest Latest
Warning

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

Go to latest
Published: May 21, 2021 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BranchHandler

type BranchHandler struct {
	core.AbstractHandler
}

BranchHandler handle branch naming

func (*BranchHandler) GetType

func (branchHandler *BranchHandler) GetType() core.HandlerType

GetType return handler type

func (*BranchHandler) Handle

func (branchHandler *BranchHandler) Handle(ctx context.Context, commit *object.Commit, rule *hook.Rule) (issues []issue.Issue, err error)

Handle chencking branch naming convention

type CommitHandler

type CommitHandler struct {
	core.AbstractHandler
}

CommitHandler handle commit messages

func (*CommitHandler) GetType

func (commitHandler *CommitHandler) GetType() core.HandlerType

GetType return handler type

func (*CommitHandler) Handle

func (commitHandler *CommitHandler) Handle(ctx context.Context, commit *object.Commit, rule *hook.Rule) (issues []issue.Issue, err error)

Handle checking commit message with defined rules

type DefaultHandler

type DefaultHandler struct {
	core.AbstractHandler
}

DefaultHandler handle repository

func (*DefaultHandler) GetType

func (defaultHandler *DefaultHandler) GetType() string

GetType return handler type

func (*DefaultHandler) Handle

func (defaultHandler *DefaultHandler) Handle(ctx context.Context, commit *object.Commit, rule *hook.Rule) (issues []issue.Issue, err error)

Handle chencking branch naming convention

type FileHandler

type FileHandler struct {
	core.AbstractHandler
}

FileHandler handle committed files

func (*FileHandler) CheckExtension

func (fileHandler *FileHandler) CheckExtension(fileName string, fileExtension string) (result bool, err error)

CheckExtension check file extension

func (*FileHandler) GetType

func (fileHandler *FileHandler) GetType() core.HandlerType

GetType return handler type

func (*FileHandler) Handle

func (fileHandler *FileHandler) Handle(ctx context.Context, commit *object.Commit, rule *hook.Rule) (issues []issue.Issue, err error)

Handle checking files with defined rules

type JiraHandler

type JiraHandler struct {
	core.AbstractHandler
}

JiraHandler handle jira issues

func (*JiraHandler) GetType

func (jiraHandler *JiraHandler) GetType() core.HandlerType

GetType return handler type

func (*JiraHandler) Handle

func (jiraHandler *JiraHandler) Handle(ctx context.Context, commit *object.Commit, rule *hook.Rule) (issues []issue.Issue, err error)

Handle checking files with defined rules

type SecurityHandler

type SecurityHandler struct {
	core.AbstractHandler
	// contains filtered or unexported fields
}

SecurityHandler handle committed secrets, passwords and tokens

func (*SecurityHandler) GetType

func (securityHandler *SecurityHandler) GetType() core.HandlerType

GetType return handler type

func (*SecurityHandler) Handle

func (securityHandler *SecurityHandler) Handle(ctx context.Context, commit *object.Commit, rule *hook.Rule) (issues []issue.Issue, err error)

Handle checking files for secrets

type TagHandler

type TagHandler struct {
	core.AbstractHandler
}

TagHandler handle tags

func (*TagHandler) GetType

func (tagHandler *TagHandler) GetType() core.HandlerType

GetType return handler type

func (*TagHandler) Handle

func (tagHandler *TagHandler) Handle(ctx context.Context, commit *object.Commit, rule *hook.Rule) (issues []issue.Issue, err error)

Handle checking tags with defined rules

Jump to

Keyboard shortcuts

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