shellhooks

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HookCategory

type HookCategory string
const (
	HookGit      HookCategory = "git"
	HookBuild    HookCategory = "build"
	HookTest     HookCategory = "test"
	HookLint     HookCategory = "lint"
	HookDocker   HookCategory = "docker"
	HookK8s      HookCategory = "k8s"
	HookAWS      HookCategory = "aws"
	HookSSH      HookCategory = "ssh"
	HookHTTP     HookCategory = "http"
	HookFile     HookCategory = "file"
	HookProcess  HookCategory = "process"
	HookNetwork  HookCategory = "network"
	HookPackage  HookCategory = "package"
	HookMonitor  HookCategory = "monitor"
	HookDeploy   HookCategory = "deploy"
	HookDebug    HookCategory = "debug"
	HookSecurity HookCategory = "security"
	HookData     HookCategory = "data"
)

type ShellHook

type ShellHook struct {
	ID          string       `json:"id"`
	Command     string       `json:"command"`
	Regex       string       `json:"regex"`
	Category    HookCategory `json:"category"`
	FilterFunc  string       `json:"filter_func"`
	TokensSaved int          `json:"tokens_saved"`
}

type ShellHookRegistry

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

func NewShellHookRegistry

func NewShellHookRegistry() *ShellHookRegistry

func (*ShellHookRegistry) Count

func (r *ShellHookRegistry) Count() int

func (*ShellHookRegistry) Get

func (r *ShellHookRegistry) Get(command string) *ShellHook

func (*ShellHookRegistry) GetByCategory

func (r *ShellHookRegistry) GetByCategory(cat HookCategory) []*ShellHook

func (*ShellHookRegistry) List

func (r *ShellHookRegistry) List() []*ShellHook

Jump to

Keyboard shortcuts

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