errs

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaleficErrorPanic uint32 = 1 + iota
	MaleficErrorUnpackError
	MaleficErrorMissbody
	MaleficErrorModuleError
	MaleficErrorModuleNotFound
	MaleficErrorTaskError
	MaleficErrorTaskNotFound
	MaleficErrorTaskOperatorNotFound
	MaleficErrorExtensionNotFound
	MaleficErrorUnexceptBody
)

Malefic Error

View Source
const (
	TaskErrorOperatorError       = 2
	TaskErrorNotExpectBody       = 3
	TaskErrorFieldRequired       = 4
	TaskErrorFieldLengthMismatch = 5
	TaskErrorFieldInvalid        = 6
	TaskError                    = 99
)

task error

Variables

View Source
var (
	ErrInvalidStart     = errors.New("read invalid start delimiter")
	ErrInvalidEnd       = errors.New("read invalid end delimiter")
	ErrInvalidMagic     = errors.New("read invalid magic")
	ErrInvalidHeader    = errors.New("invalid header")
	ErrNullSpites       = errors.New("parsed 0 spites")
	ErrInvalidId        = errors.New("invalid session id")
	ErrInvalidImplant   = errors.New("invalid implant")
	ErrPacketTooLarge   = errors.New("packet too large")
	ErrInvalidEncType   = errors.New("invalid encryption type")
	ErrNotFoundPipeline = errors.New("not found pipeline")
)
View Source
var (
	// ErrInvalidSessionID - Invalid Session ID in request
	ErrInvalidSessionID = status.Error(codes.InvalidArgument, "Invalid session ID")
	ErrInvalidateTarget = status.Error(codes.InvalidArgument, "target not validate")
	// ErrMissingRequestField - Returned when a request does not contain a  implantpb.Request
	ErrMissingRequestField = status.Error(codes.InvalidArgument, "Missing session request field")
	// ErrAsyncNotSupported - Unsupported mode / command type
	ErrAsyncNotSupported = status.Error(codes.Unavailable, "Async not supported for this command")
	// ErrDatabaseFailure - Generic database failure error (real error is logged)
	ErrDatabaseFailure = status.Error(codes.Internal, "Database operation failed")

	// ErrInvalidName - Invalid name
	ErrInvalidName     = status.Error(codes.InvalidArgument, "Invalid session name, alphanumerics and _-. only")
	ErrNotFoundSession = status.Error(codes.NotFound, "Session ID not found")
	ErrNotFoundTask    = status.Error(codes.NotFound, "Task ID not found")

	ErrNotFoundListener    = status.Error(codes.NotFound, "Listener not found")
	ErrNotFoundClientName  = status.Error(codes.NotFound, "Client name not found")
	ErrNotFoundTaskContent = status.Error(codes.NotFound, "Task content not found")
	ErrTaskIndexExceed     = status.Error(codes.NotFound, "task index id exceed total")

	ErrWorkflowFailed      = status.Error(codes.Unknown, "workflow failed")
	ErrorWorkflowNotActive = status.Error(codes.Unknown, "workflow not active")
	ErrorDockerNotActive   = status.Error(codes.Unknown, "docker not active")
	ErrNotFoundArtifact    = status.Error(codes.NotFound, "Artifact not found")

	ErrNotFoundGithubConfig = status.Error(codes.NotFound, "Github config not found")
	ErrNotFoundNotifyConfig = status.Error(codes.NotFound, "Notify config not found")
	ErrNotFoundEncryption   = status.Error(codes.NotFound, "Encryption key not found")
	ErrPlatFormNotSupport   = status.Error(codes.Unimplemented, "Platform not support")
	ErrOBJCOPYFailed        = status.Error(codes.Unavailable, "OBJCOPY FAILED")
	ErrSrdiFailed           = status.Error(codes.Unavailable, "srdi FAILED")

	ErrSouceUnable          = status.Error(codes.Unavailable, "no build source available")
	ErrSaasUnable           = status.Error(codes.Unavailable, "saas server has a error")
	ErrLicenseTokenNotFound = status.Error(codes.NotFound, "License token not found")
)

grpc

View Source
var (
	ErrNoAutoRunFile = errors.New("no autorun file")
)
View Source
var (
	ErrNullDomain = errors.New("auto cert requires a domain")
)

Functions

func Newf

func Newf(err error, format string, s ...interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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