cmd

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultTimeout                         = 5 * time.Minute
	DefaultWorkers           uint          = 4
	DefaultScanValidity                    = time.Hour * 24 * 7
	DefaultModificationDelay time.Duration = time.Second * 30
)
View Source
var (
	DefaultConfigPath         = "/etc/gmhost/config"
	DefaultCacheLocation      = ""
	DefaultQuarantineLocation = "/var/lib/gmhost/quarantine"
	DefaultExportLocation     = "/var/lib/gmhost/export"
)
View Source
var HandleScanFinished = func() {}

Functions

func GlobalInit

func GlobalInit(cmd *cobra.Command, args []string) error

func Gui

func Gui(entryPath string, nbFiles int) context.Context

func Main

func Main()

Types

type GContext

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

type GuiHandleResult

type GuiHandleResult struct{}

func (*GuiHandleResult) Handle

func (a *GuiHandleResult) Handle(path string, sha256 string, result gdetect.Result, report *scanner.Report) (err error)

Jump to

Keyboard shortcuts

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