errors

package
v0.0.0-...-4df811a Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsKsError

func IsKsError(err error) bool

IsKsError function checks if `err` is an instance of a keystone `Error`

Types

type Error

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

func AlreadyKeystoneProject

func AlreadyKeystoneProject(cause error) *Error

func AlreadySubscribed

func AlreadySubscribed(cause error) *Error

func AsKsError

func AsKsError(err error) *Error

AsKsError function dynamically casts an `error` into a keystone `Error`. You should use `IsKsError(error) bool` beforehand to ensure this cast will wor

func BackupDenied

func BackupDenied(cause error) *Error

func BadDeviceName

func BadDeviceName(cause error) *Error

func BadOrganizationName

func BadOrganizationName(cause error) *Error

func CannotAddFile

func CannotAddFile(path string, cause error) *Error

func CannotAddMembers

func CannotAddMembers(cause error) *Error

func CannotCopyFile

func CannotCopyFile(path string, cachepath string, cause error) *Error

func CannotCreateDirectory

func CannotCreateDirectory(path string, cause error) *Error

func CannotFindProjectID

func CannotFindProjectID(cause error) *Error

func CannotGetEnvironmentKeys

func CannotGetEnvironmentKeys(environment string, cause error) *Error

func CannotReadEnvironment

func CannotReadEnvironment(path string, cause error) *Error

func CannotRemoveDirectory

func CannotRemoveDirectory(path string, cause error) *Error

func CannotRemoveDirectoryContents

func CannotRemoveDirectoryContents(path string, cause error) *Error

func CannotRemoveFile

func CannotRemoveFile(path string, cause error) *Error

func CannotRemoveMembers

func CannotRemoveMembers(cause error) *Error

func CannotSaveConfig

func CannotSaveConfig(cause error) *Error

func CannotSaveFiles

func CannotSaveFiles(filelist string, cause error) *Error

func CannotSetFile

func CannotSetFile(path string, cause error) *Error

func CannotUpgrade

func CannotUpgrade(cause error) *Error

func CiServiceAlreadyExists

func CiServiceAlreadyExists(servicename string, cause error) *Error

func CopyFailed

func CopyFailed(source string, destination string, cause error) *Error

func CouldNotAddService

func CouldNotAddService(servicename string, cause error) *Error

func CouldNotChangeService

func CouldNotChangeService(servicename string, cause error) *Error

func CouldNotCleanService

func CouldNotCleanService(cause error) *Error

func CouldNotCreateArchive

func CouldNotCreateArchive(cause error) *Error

func CouldNotDecryptMessages

func CouldNotDecryptMessages(message string, cause error) *Error

func CouldNotEncryptMessages

func CouldNotEncryptMessages(cause error) *Error

func CouldNotParseMessage

func CouldNotParseMessage(cause error) *Error

func CouldNotRemoveLocalFiles

func CouldNotRemoveLocalFiles(cause error) *Error

func CouldNotRemoveService

func CouldNotRemoveService(cause error) *Error

func CouldNotSendToCIService

func CouldNotSendToCIService(cause error) *Error

func CouldntSendInvite

func CouldntSendInvite(cause error) *Error

func CouldntSetRole

func CouldntSetRole(cause error) *Error

func DeviceNotRegistered

func DeviceNotRegistered(cause error) *Error

func EncryptionFailed

func EncryptionFailed(cause error) *Error

func EnvironmentDoesntExist

func EnvironmentDoesntExist(environment string, available string, cause error) *Error

func EnvironmentsHaveChanged

func EnvironmentsHaveChanged(environmentsname string, cause error) *Error

func FailedCheckingChanges

func FailedCheckingChanges(path string, cause error) *Error

func FailedToReadBackup

func FailedToReadBackup(cause error) *Error

func FailedToReadDotEnv

func FailedToReadDotEnv(path string, cause error) *Error

func FailedToReadKeystoneFile

func FailedToReadKeystoneFile(path string, cause error) *Error

func FailedToSetCurrentEnvironment

func FailedToSetCurrentEnvironment(environment string, path string, cause error) *Error

func FailedToUpdateDotEnv

func FailedToUpdateDotEnv(path string, cause error) *Error

func FailedToUpdateKeystoneFile

func FailedToUpdateKeystoneFile(cause error) *Error

func FailedToWriteBackup

func FailedToWriteBackup(cause error) *Error

func FeatureRequiresToUpgrade

func FeatureRequiresToUpgrade(cause error) *Error

func FileDoesNotExist

func FileDoesNotExist(filename string, cause error) *Error

func FileHasChanged

func FileHasChanged(filepath string, affectedenvironments string, cause error) *Error

func FileNotInEnvironment

func FileNotInEnvironment(path string, environment string, cause error) *Error

func FileNotInWorkingDirectory

func FileNotInWorkingDirectory(filepath string, wd string, cause error) *Error

func InitFailed

func InitFailed(cause error) *Error

func InvalidConnectionToken

func InvalidConnectionToken(cause error) *Error

func InvalidFileContent

func InvalidFileContent(path string, cause error) *Error

func ManagementInaccessible

func ManagementInaccessible(cause error) *Error

func MemberHasNoAccessToEnv

func MemberHasNoAccessToEnv(cause error) *Error

func MissingCIInformation

func MissingCIInformation(servicename string, cause error) *Error

func MustBeLoggedIn

func MustBeLoggedIn(cause error) *Error

func MustOwnTheOrganization

func MustOwnTheOrganization(cause error) *Error

func NameDoesNotMatch

func NameDoesNotMatch(cause error) *Error

func NewError

func NewError(
	name string,
	help string,
	meta map[string]interface{},
	cause error,
) *Error

NewError function creates a new keysone error

func NoCIServices

func NoCIServices(cause error) *Error

func NoSuchService

func NoSuchService(servicename string, cause error) *Error

func NoWorkingDirectory

func NoWorkingDirectory(cause error) *Error

func NotAKeystoneProject

func NotAKeystoneProject(path string, cause error) *Error

func OrganizationDoesNotExist

func OrganizationDoesNotExist(cause error) *Error

func OrganizationNameAlreadyTaken

func OrganizationNameAlreadyTaken(cause error) *Error

func OrganizationNotPaid

func OrganizationNotPaid(cause error) *Error

func PayloadErrors

func PayloadErrors(cause error) *Error

func PermissionDenied

func PermissionDenied(environment string, cause error) *Error

func ProjectDoesntExist

func ProjectDoesntExist(projectname string, projectid string, cause error) *Error

func RequiredFilesAreMissing

func RequiredFilesAreMissing(missingfiles []string, environmentname string, cause error) *Error

func RequiredSecretsAreMissing

func RequiredSecretsAreMissing(missingsecrets []string, environmentname string, cause error) *Error

func RestoreDenied

func RestoreDenied(cause error) *Error

func RoleDoesNotExist

func RoleDoesNotExist(rolename string, cause error) *Error

func RoleNeedsUpgrade

func RoleNeedsUpgrade(cause error) *Error

func SecretDoesNotExist

func SecretDoesNotExist(secret string, cause error) *Error

func SecretHasChanged

func SecretHasChanged(secret string, values string, cause error) *Error

func SecretRequired

func SecretRequired(secret string, cause error) *Error

func ServiceNotAvailable

func ServiceNotAvailable(cause error) *Error

func UnkownError

func UnkownError(cause error) *Error

func UnsupportedFlag

func UnsupportedFlag(flag string, cause error) *Error

func UsersDontExist

func UsersDontExist(message string, cause error) *Error

func YouDoNotOwnTheOrganization

func YouDoNotOwnTheOrganization(organizationname string, cause error) *Error

func YouHaveLocallyModifiedFiles

func YouHaveLocallyModifiedFiles(environment string, files []string, cause error) *Error

func (*Error) Cause

func (e *Error) Cause() error

Cause method return the originalerror that caused this one to be raised

func (*Error) Error

func (e *Error) Error() string

Error method returns the formatted error message

func (*Error) Help

func (e *Error) Help() string

Help method returns the help part of the error

func (*Error) Name

func (e *Error) Name() string

Name method returns the name of the error

func (*Error) Print

func (e *Error) Print()

Print method prints the error to stderr

func (*Error) SetCause

func (e *Error) SetCause(err error) *Error

SetCause method sets the original error that cause this one to be raised

Jump to

Keyboard shortcuts

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