errors

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FailedConnectBroker           = "{ERROR_BROKER} failed to connect"
	FailedCreateChannelPublish    = "{ERROR_BROKER} failed to create channel while publishing"
	FailedDeclareExchangePublish  = "{ERROR_BROKER} failed to declare exchange while publishing"
	FailedCreateChannelConsume    = "{ERROR_BROKER} failed to create channel in consume"
	FailedCreateQueueConsume      = "{ERROR_BROKER} error declaring queue in consume"
	FailedConsumeHandlingDelivery = "{ERROR_BROKER} consume error while handling deliveries"
	FailedSetConsumerPrefetch     = "{ERROR_BROKER} failed to set consumer prefetch"
	FailedToDeclareExchangeQueue  = "{ERROR_BROKER} failed to declare exchange while declaring queue"
	FailedBindQueueConsume        = "{ERROR_BROKER} failed to queue bind in consume"
)
View Source
const (
	ErrParsePacketToAnalysis = "{ERROR_EVENTS} error when parse broker packet to analysis"
	ErrCreateAnalysis        = "{ERROR_EVENTS} error while creating analysis"
	ErrUpdateAnalysis        = "{ERROR_EVENTS} error while updating analysis"
)
View Source
const (
	ErrParsePacketToEmailConfirmation  = "{ERROR_MESSAGES} error when parse broker packet to email confirmation data"
	ErrParsePacketToResetPassword      = "{ERROR_MESSAGES} error when parse broker packet to reset password data"
	ErrParsePacketToOrganizationInvite = "{ERROR_MESSAGES} error when parse broker packet to organization invite data"
	ErrSendingEmail                    = "{ERROR_MESSAGES} error when send email"
)
View Source
const (
	ErrReadHorusecConfigFile = "{ERROR_DOCKER_API} error while opening horusec-config.json"
)
View Source
const ErrorAlreadyExistingCompanyID = "pq: duplicate key value violates unique constraint" +
	" \"account_company_company_id_account_id_key\""
View Source
const ErrorAlreadyExistingRepositoryID = "pq: duplicate key value violates unique constraint" +
	" \"account_repository_repository_id_account_id_key\""
View Source
const ErrorGraphqlSchema = "{GetVulnerabilitiesByAuthor} something went wrong while making graphql schema"
View Source
const FailedConnectMailer = "{MAILER_ERROR} failed to connect"

Variables

View Source
var ErrDatabaseNotConnected = errors.New("{ERROR_REPOSITORY} database not connected")
View Source
var ErrDoHTTPClient = errors.New("{ERROR_HTTP_CLIENT} Error when do http client")
View Source
var ErrDoHTTPClientSide = errors.New("{ERROR_HTTP_CLIENT} Response HTTP return client side error")
View Source
var ErrDoHTTPServiceSide = errors.New("{ERROR_HTTP_CLIENT} Response HTTP return server side error")
View Source
var ErrHTTPResponse = errors.New("{ERROR_HTTP_REQUEST}")
View Source
var ErrImageTagCmdRequired = errors.New("{ERROR_DOCKER_API} required exists Image, Tag and CMD not empty")
View Source
var ErrNotFoundRecords = errors.New("{ERROR_REPOSITORY} database not found records")
View Source
var ErrTest = errors.New("{ERROR_TEST} test")
View Source
var ErrorAccessAndRefreshTokenNotMatch = errors.New("{ACCOUNT} access and refresh token does not match")
View Source
var ErrorAccountEmailNotConfirmed = errors.New("{ACCOUNT} account email not confirmed")
View Source
var ErrorBodyIsRequired = errors.New("{ERROR_USE_CASES} body is required")
View Source
var ErrorBrokerIsNotHealth = errors.New("{ERROR_HTTP} broker is not health")
View Source
var ErrorCacheIsNotHealth = errors.New("{ERROR_HTTP} cache is not health")
View Source
var ErrorDatabaseIsNotHealth = errors.New("{ERROR_HTTP} database is not health")
View Source
var ErrorDoNotHavePermissionToThisAction = errors.New("{ACCOUNT} user do not have permission to this action")
View Source
var ErrorDockerAPIIsNotHealth = errors.New("{ERROR_HTTP} docker_api is not health")
View Source
var ErrorEmailAlreadyInUse = errors.New("{ACCOUNT} email already in use")
View Source
var ErrorEmptyAuthorizationToken = errors.New("{ACCOUNT} empty authorization token")
View Source
var ErrorEmptyOrInvalidRefreshToken = errors.New("{ACCOUNT} empty or invalid token")
View Source
var ErrorErrorEmptyBody = errors.New("{ACCOUNT} empty request body")
View Source
var ErrorGenericInternalError = errors.New("{ERROR_HTTP} something went wrong, sorry for the inconvenience")
View Source
var ErrorInvalidAccountID = errors.New("{ACCOUNT} invalid account id")
View Source
var ErrorInvalidCompanyID = errors.New("{ERROR_REPOSITORY} invalid company id")
View Source
var ErrorInvalidFile = errors.New("{ERROR_USE_CASES} the file is not valid")
View Source
var ErrorInvalidRepositoryID = errors.New("{ERROR_REPOSITORY} invalid repository id")
View Source
var ErrorInvalidResetPasswordCode = errors.New("{ACCOUNT} invalid reset password data")
View Source
var ErrorMissingGraphqlQuery = errors.New("missing graphql query")
View Source
var ErrorMissingOrInvalidPassword = errors.New("{ACCOUNT} missing or invalid password")
View Source
var ErrorNotFoundRefreshTokenInCache = errors.New("{ACCOUNT} refresh token not found in cache")
View Source
var ErrorRelationalDatabaseIsNotHealth = errors.New("{ERROR_HTTP} relational database is not healthy")
View Source
var ErrorSMTPServerIsNotAvailable = errors.New("{ERROR_SMTP} smtp server is not available")
View Source
var ErrorTokenExpired = errors.New("this authorization token has expired, please renew it")
View Source
var ErrorUnauthorized = errors.New("you do not have enough privileges for this action")
View Source
var ErrorUserAlreadyInThisCompany = errors.New("{ERROR_COMPANY} this account already in this company")
View Source
var ErrorUserAlreadyInThisRepository = errors.New("{ERROR_REPOSITORY} this account already in this repository")
View Source
var ErrorUserAlreadyLogged = errors.New("{ACCOUNT} user already logged")
View Source
var ErrorUserNotMemberOfCompany = errors.New("{ERROR_REPOSITORY} this user is not member of this company")
View Source
var ErrorWrongEmailOrPassword = errors.New("{ACCOUNT} invalid username or password")

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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