errors

package
v0.1.0-test-skip-publish Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MISSING_PROJECT_ID = `` /* 301-byte string literal not displayed */

	EMPTY_UPDATE = `` /* 130-byte string literal not displayed */

	FAILED_AUTH = `` /* 173-byte string literal not displayed */

	FAILED_SERVICE_ACCOUNT_ACTIVATION = `` /* 204-byte string literal not displayed */

	DSA_INVALID_INPUT_PLAN = `` /* 281-byte string literal not displayed */

	DSA_INVALID_PLAN = `the provided instance plan is not valid.
	
%s

For more details on the available plans, run:
  $ stackit %s plans`

	DATABASE_INVALID_INPUT_FLAVOR = `` /* 272-byte string literal not displayed */

	DATABASE_INVALID_FLAVOR = `` /* 129-byte string literal not displayed */

	DATABASE_INVALID_STORAGE = `` /* 172-byte string literal not displayed */

	FLAG_VALIDATION = `the provided flag --%s is invalid: %s`

	ARG_VALIDATION = `the provided argument "%s" is invalid: %s`

	ARG_UNKNOWN = `unknown argument %q`

	ARG_MISSING = `missing argument %q`

	SINGLE_ARG_EXPECTED = `expected 1 argument %q, %d were provided`

	SUBCOMMAND_UNKNOWN = `unkwown subcommand %q`

	SUBCOMMAND_MISSING = `missing subcommand`

	USAGE_TIP = `For usage help, run:
  $ %s --help`
)

Variables

This section is empty.

Functions

func AppendUsageTip

func AppendUsageTip(err error, cmd *cobra.Command) error

Returns a wrapped error whose message adds a tip on how to check out --help for the command

Types

type ActivateServiceAccountError

type ActivateServiceAccountError struct{}

func (*ActivateServiceAccountError) Error

type ArgValidationError

type ArgValidationError struct {
	Arg     string
	Details string
}

func (*ArgValidationError) Error

func (e *ArgValidationError) Error() string

type AuthError

type AuthError struct{}

func (*AuthError) Error

func (e *AuthError) Error() string

type DSAInputPlanError

type DSAInputPlanError struct {
	Cmd  *cobra.Command
	Args []string
}

func (*DSAInputPlanError) Error

func (e *DSAInputPlanError) Error() string

type DSAInvalidPlanError

type DSAInvalidPlanError struct {
	Service string
	Details string
}

func (*DSAInvalidPlanError) Error

func (e *DSAInvalidPlanError) Error() string

type DatabaseInputFlavorError

type DatabaseInputFlavorError struct {
	Service   string
	Operation string
	Cmd       *cobra.Command
	Args      []string
}

func (*DatabaseInputFlavorError) Error

func (e *DatabaseInputFlavorError) Error() string

type DatabaseInvalidFlavorError

type DatabaseInvalidFlavorError struct {
	Service string
	Details string
}

func (*DatabaseInvalidFlavorError) Error

type DatabaseInvalidStorageError

type DatabaseInvalidStorageError struct {
	Service  string
	Details  string
	FlavorId string
}

func (*DatabaseInvalidStorageError) Error

type EmptyUpdateError

type EmptyUpdateError struct{}

func (*EmptyUpdateError) Error

func (e *EmptyUpdateError) Error() string

type FlagValidationError

type FlagValidationError struct {
	Flag    string
	Details string
}

func (*FlagValidationError) Error

func (e *FlagValidationError) Error() string

type InputUnknownError

type InputUnknownError struct {
	ProvidedInput string
	Cmd           *cobra.Command
}

Used when an unexpected non-flag input (either arg or subcommand) is found

func (*InputUnknownError) Error

func (e *InputUnknownError) Error() string

type ProjectIdError

type ProjectIdError struct{}

func (*ProjectIdError) Error

func (e *ProjectIdError) Error() string

type SingleArgExpectedError

type SingleArgExpectedError struct {
	Cmd      *cobra.Command
	Expected string
	Count    int
}

func (*SingleArgExpectedError) Error

func (e *SingleArgExpectedError) Error() string

type SubcommandMissingError

type SubcommandMissingError struct {
	Cmd *cobra.Command
}

func (*SubcommandMissingError) Error

func (e *SubcommandMissingError) Error() string

Jump to

Keyboard shortcuts

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