errors

package
v1.10.3 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrorAuthTypeNotActive          = "{AUTH} this auth type it is no active, should be %s"
	ErrorFailedToVerifyIsAuthorized = "{AUTH} failed to verify is authorized request"
	ErrorFailedToGetAccountID       = "{AUTH} failed to get account id from token"
)
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 ErrorAlreadyExistingAnalyseVulnerabilityID = "pq: duplicate key value violates unique constraint" +
	" \"analysis_vulnerabilities_pkey\""
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 ErrorAlreadyExistingRepositoryIDInWebhook = "pq: duplicate key value violates unique constraint" +
	" \"webhooks_repository_id_key\""
View Source
const ErrorGraphqlSchema = "{GetVulnerabilitiesByAuthor} something went wrong while making graphql schema"
View Source
const ErrorGrpcConnectionNotReady = "{ERROR_GRPC} grpc connection is not ready, state: %s"
View Source
const FailedConnectMailer = "{MAILER_ERROR} failed to connect"
View Source
const SomethingWentWrongInGrpcRequest = "something went wrong in grpc request"

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 ErrInvalidVulnerabilityID = errors.New("invalid vulnerability id")
View Source
var ErrNotFoundRecords = errors.New("{ERROR_REPOSITORY} database not found records")
View Source
var ErrTest = errors.New("{ERROR_TEST} test")
View Source
var ErrVulnerabilityNotFound = errors.New("no vulnerability was found with this id")
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 ErrorAlreadyExistsVulnerabilityInDB = errors.New("already exists vulnerability in database")
View Source
var ErrorAlreadyExistsWebhookToRepository = errors.New("already exists webhook to repository selected")
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 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 ErrorEmailAlreadyInUse = errors.New("{ACCOUNT} email already in use")
View Source
var ErrorEmptyAuthorizationToken = errors.New("{ACCOUNT} empty authorization token")
View Source
var ErrorEmptyBindDNOrBindPassword = errors.New("{LDAP} empty bind dn or bind password")
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 ErrorInvalidAuthType = errors.New("{AUTH} invalid auth type, should be ldap, keycloak or horus")
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 ErrorInvalidKeycloakToken = errors.New("{ACCOUNT} keycloak token without email or username")
View Source
var ErrorInvalidLdapGroup = errors.New("{ACCOUNT} admin ldap group should be a valid one for this user")
View Source
var ErrorInvalidPassword = errors.New("{ACCOUNT} password 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 ErrorInvalidUpdateAccountData = errors.New("{ACCOUNT} the data to update account is not valid")
View Source
var ErrorMissingGraphqlQuery = errors.New("missing graphql query")
View Source
var ErrorMissingOrInvalidPassword = errors.New("{ACCOUNT} missing or invalid password")
View Source
var ErrorNewPasswordNotEqualOldPassword = errors.New("{ACCOUNT} new password is can't equals current password")
View Source
var ErrorNewPasswordOrPasswordHashNotBeEmpty = errors.New("{ACCOUNT} password or password hash can't be empty")
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 ErrorRepositoryNameAlreadyInUse = errors.New("{ACCOUNT} repository name already in use")
View Source
var ErrorRepositoryNotFound = errors.New("repository not found, wrong token or repository name")
View Source
var ErrorSMTPServerIsNotAvailable = errors.New("{ERROR_SMTP} smtp server is not available")
View Source
var ErrorTokenCanNotBeEmpty = errors.New("{AUTH} token can not be empty in authorization header")
View Source
var ErrorTokenExpired = errors.New("this authorization token has expired, please renew it")
View Source
var ErrorTooManyEntries = errors.New("{LDAP} too many entries returned")
View Source
var ErrorUnauthorized = errors.New("you do not have enough privileges for this action")
View Source
var ErrorUnauthorizedApplicationAdmin = errors.New("user unauthorized as application admin")
View Source
var ErrorUnauthorizedCompanyAdmin = errors.New("user unauthorized as company admin")
View Source
var ErrorUnauthorizedCompanyMember = errors.New("user unauthorized as company member")
View Source
var ErrorUnauthorizedRepositoryAdmin = errors.New("user unauthorized as repository admin")
View Source
var ErrorUnauthorizedRepositoryMember = errors.New("user unauthorized as repository member")
View Source
var ErrorUnauthorizedRepositorySupervisor = errors.New("user unauthorized as repository supervisor")
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 ErrorUserDoesNotExist = errors.New("{LDAP} user does not exist")
View Source
var ErrorUserLoggedIsNotApplicationAdmin = errors.New("{ACCOUNT} user logged is not application admin")
View Source
var ErrorUserNotMemberOfCompany = errors.New("{ERROR_REPOSITORY} this user is not member of this company")
View Source
var ErrorUsernameAlreadyInUse = errors.New("{ACCOUNT} username already in use")
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