Documentation ¶
Index ¶
- type BranchHandler
- type CommitHandler
- type DefaultHandler
- type FileHandler
- func (fileHandler *FileHandler) CheckExtension(fileName string, fileExtension string) (result bool, err error)
- func (fileHandler *FileHandler) GetType() core.HandlerType
- func (fileHandler *FileHandler) Handle(ctx context.Context, commit *object.Commit, rule *hook.Rule) (issues []issue.Issue, err error)
- type JiraHandler
- type SecurityHandler
- type TagHandler
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
type CommitHandler ¶
type CommitHandler struct {
core.AbstractHandler
}
CommitHandler handle commit messages
func (*CommitHandler) GetType ¶
func (commitHandler *CommitHandler) GetType() core.HandlerType
GetType return handler type
type DefaultHandler ¶
type DefaultHandler struct {
core.AbstractHandler
}
DefaultHandler handle repository
func (*DefaultHandler) GetType ¶
func (defaultHandler *DefaultHandler) GetType() string
GetType return handler type
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
type JiraHandler ¶
type JiraHandler struct {
core.AbstractHandler
}
JiraHandler handle jira issues
func (*JiraHandler) GetType ¶
func (jiraHandler *JiraHandler) GetType() core.HandlerType
GetType return handler type
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
type TagHandler ¶
type TagHandler struct {
core.AbstractHandler
}
TagHandler handle tags
func (*TagHandler) GetType ¶
func (tagHandler *TagHandler) GetType() core.HandlerType
GetType return handler type
Source Files ¶
Click to show internal directories.
Click to hide internal directories.