errors

package
v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2018 License: Apache-2.0 Imports: 0 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Errors = map[Error]string{
	Reserved:                         "Reserved",
	BadTaskID:                        "Bad task ID",
	TaskIDNotProvided:                "Task ID not provided",
	BadParams:                        "Bad Parameters",
	ParamsNotProvided:                "Parameters not provided",
	BadData:                          "Bad data",
	DataNotProvided:                  "Data not provided",
	UnableToGetYaraCompiler:          "Error while getting a Yara compiler",
	UnableToGetRulesFromYaraCompiler: "Error while getting yara rules from compiler",
	ScanningFile:                     "Error while scanning a file",
	ScanningDir:                      "Error while scanning a directory",
	ScanningPID:                      "Error while scanning a PID",
	SendingMsg:                       "Error while sending message to server",
	UnableToReadFilesInFolder:        "Error while reading files in directory",
	FileDoesNotExist:                 "File does not exist",
	NeedsRegister:                    "Register first",
	UnableToUpdateDB:                 "Unable to update DB",
	PIDProcessNotFound:               "PID Process not found",
	YaraRuleCompiled:                 "Error while compiling Yara rule",
}

Functions

This section is empty.

Types

type Error

type Error int
const (
	Reserved Error = iota
	BadTaskID
	TaskIDNotProvided
	BadParams
	ParamsNotProvided
	BadData
	DataNotProvided
	UnableToGetYaraCompiler
	UnableToGetRulesFromYaraCompiler
	ScanningFile
	ScanningDir
	ScanningPID
	SendingMsg
	UnableToReadFilesInFolder
	FileDoesNotExist
	NeedsRegister
	UnableToUpdateDB
	PIDProcessNotFound
	YaraRuleCompiled
)

Jump to

Keyboard shortcuts

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