hooks

package
v0.1.5-beta Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2026 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ShellManager

type ShellManager struct {
	ShellType string `json:"shell_type"`
	ShellRC   string `json:"shell_rc"`
}

ShellManager manages shell hook injection and removal

func NewShellManager

func NewShellManager() *ShellManager

NewShellManager creates a new shell manager

func (*ShellManager) DisableAutoScan

func (s *ShellManager) DisableAutoScan() error

DisableAutoScan disables auto-scan by removing shell hooks

func (*ShellManager) EnableAutoScan

func (s *ShellManager) EnableAutoScan() error

EnableAutoScan enables auto-scan by injecting shell hooks

func (*ShellManager) GetStatus

func (s *ShellManager) GetStatus() map[string]interface{}

GetStatus returns the current status of auto-scan hooks

func (*ShellManager) IsEnabled

func (s *ShellManager) IsEnabled() bool

IsEnabled checks if auto-scan hooks are enabled

func (*ShellManager) PreviewHooks

func (s *ShellManager) PreviewHooks() string

PreviewHooks returns the hooks that would be added without actually adding them

func (*ShellManager) PreviewRemoval

func (s *ShellManager) PreviewRemoval() string

PreviewRemoval returns the hooks that would be removed without actually removing them

Jump to

Keyboard shortcuts

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