Documentation
¶
Index ¶
- Constants
- func AppendUsageTip(err error, cmd *cobra.Command) error
- type AccessTokenExpiredError
- type ActivateServiceAccountError
- type ArgValidationError
- type AuthError
- type BuildRequestError
- type DSAInputPlanError
- type DSAInvalidPlanError
- type DatabaseInputFlavorError
- type DatabaseInvalidFlavorError
- type DatabaseInvalidStorageError
- type DeleteDefaultProfile
- type DeleteInexistentProfile
- type DependingFlagIsMissing
- type EmptyUpdateError
- type FileAlreadyExistsError
- type FlagValidationError
- type InputUnknownError
- type InvalidFormatError
- type InvalidProfileNameError
- type MultipleFlagsAreMissing
- type ObservabilityInputPlanError
- type ObservabilityInvalidPlanError
- type OneOfFlagsIsMissing
- type ProfileAlreadyExistsError
- type ProfileDoesNotExistError
- type ProjectIdError
- type RegionError
- type RequestFailedError
- type RequiredMutuallyExclusiveFlagsError
- type ServerCreateError
- type ServerCreateMissingFlagsError
- type ServerCreateMissingVolumeIdError
- type ServerCreateMissingVolumeTypeError
- type ServerNicAttachMissingNicIdError
- type ServerNicDetachMissingNicIdError
- type ServiceDisabledError
- type SessionExpiredError
- type SetInexistentProfile
- type SingleArgExpectedError
- type SingleOptionalArgExpectedError
- type SubcommandMissingError
Constants ¶
const ( MISSING_PROJECT_ID = `` /* 301-byte string literal not displayed */ MISSING_REGION = `` /* 285-byte string literal not displayed */ EMPTY_UPDATE = `` /* 130-byte string literal not displayed */ REQUIRED_MUTUALLY_EXCLUSIVE_FLAGS = `the following flags are mutually exclusive and at least one of them is required: %s` FAILED_AUTH = `` /* 173-byte string literal not displayed */ SESSION_EXPIRED = `` /* 190-byte string literal not displayed */ ACCESS_TOKEN_EXPIRED = `` /* 195-byte string literal not displayed */ FAILED_SERVICE_ACCOUNT_ACTIVATION = `` /* 204-byte string literal not displayed */ SET_INEXISTENT_PROFILE = `` /* 128-byte string literal not displayed */ DELETE_INEXISTENT_PROFILE = `the configuration profile %q does not exist. To list all profiles, run: $ stackit config profile list` DELETE_DEFAULT_PROFILE = `the default configuration profile %q cannot be deleted.` OBSERVABILITY_INVALID_INPUT_PLAN = `` /* 249-byte string literal not displayed */ OBSERVABILITY_INVALID_PLAN = `the provided instance plan is not valid. %s For more details on the available plans, run: $ stackit %s plans` 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` SINGLE_OPTIONAL_ARG_EXPECTED = `expected no more than 1 argument %q, %d were provided` SUBCOMMAND_UNKNOWN = `unknown subcommand %q` SUBCOMMAND_MISSING = `missing subcommand` INVALID_PROFILE_NAME = `` /* 164-byte string literal not displayed */ USAGE_TIP = `For usage help, run: $ %s --help` SERVICE_DISABLED = `This service isn't enabled for the current project. To enable it, run: $ stackit %s enable` IAAS_SERVER_MISSING_VOLUME_SIZE = `The "boot-volume-size" flag must be provided when "boot-volume-source-type" is "image".` IAAS_SERVER_MISSING_VOLUME_ID = `The "boot-volume-source-id" flag must be provided together with "boot-volume-source-type" flag.` IAAS_SERVER_MISSING_VOLUME_TYPE = `The "boot-volume-source-type" flag must be provided together with "boot-volume-source-id" flag.` IAAS_SERVER_MISSING_IMAGE_OR_VOLUME_FLAGS = `Either "image-id" or "boot-volume-source-type" and "boot-volume-source-id" flags must be provided.` IAAS_SERVER_NIC_ATTACH_MISSING_NIC_ID = `The "network-interface-id" flag must be provided if the "create" flag is not provided.` IAAS_SERVER_NIC_DETACH_MISSING_NIC_ID = `The "network-interface-id" flag must be provided if the "delete" flag is not provided.` PROFILE_ALREADY_EXISTS = `profile %[1]q already exists. To delete it, run: $ stackit config profile delete %[1]s` PROFILE_DOES_NOT_EXIST = `The profile %q does not exist. To list all profiles, run: $ stackit config profile list` FILE_ALREADY_EXISTS = `file %q already exists in the export path. Delete the existing file or define a different export path` FLAG_MUST_BE_PROVIDED_WHEN_ANOTHER_FLAG_IS_SET = `The flag %[1]q must be provided when %[2]q is set` MULTIPLE_FLAGS_MUST_BE_PROVIDED_WHEN_ANOTHER_FLAG_IS_SET = `The flags %[1]v must be provided when one of the flags %[2]v is set` ONE_OF_THE_FLAGS_MUST_BE_PROVIDED_WHEN_ANOTHER_FLAG_IS_SET = `One of the flags %[1]v must be provided when %[2]q is set` )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AccessTokenExpiredError ¶ added in v0.25.0
type AccessTokenExpiredError struct{}
func (*AccessTokenExpiredError) Error ¶ added in v0.25.0
func (e *AccessTokenExpiredError) Error() string
type ActivateServiceAccountError ¶
type ActivateServiceAccountError struct{}
func (*ActivateServiceAccountError) Error ¶
func (e *ActivateServiceAccountError) Error() string
type ArgValidationError ¶
func (*ArgValidationError) Error ¶
func (e *ArgValidationError) Error() string
type BuildRequestError ¶ added in v0.51.0
type BuildRequestError struct {
Reason string // Optional: specific reason why the request failed to build
Err error // Optional: underlying error
}
___BUILD_REQUEST_ERRORS______________________________________________________ BuildRequestError indicates that a request could not be built.
func NewBuildRequestError ¶ added in v0.51.0
func NewBuildRequestError(reason string, err error) *BuildRequestError
NewBuildRequestError creates a new BuildRequestError with optional reason and underlying error.
func (*BuildRequestError) Error ¶ added in v0.51.0
func (e *BuildRequestError) Error() string
func (*BuildRequestError) Unwrap ¶ added in v0.51.0
func (e *BuildRequestError) Unwrap() error
type DSAInputPlanError ¶
func (*DSAInputPlanError) Error ¶
func (e *DSAInputPlanError) Error() string
type DSAInvalidPlanError ¶
func (*DSAInvalidPlanError) Error ¶
func (e *DSAInvalidPlanError) Error() string
type DatabaseInputFlavorError ¶
func (*DatabaseInputFlavorError) Error ¶
func (e *DatabaseInputFlavorError) Error() string
type DatabaseInvalidFlavorError ¶
func (*DatabaseInvalidFlavorError) Error ¶
func (e *DatabaseInvalidFlavorError) Error() string
type DatabaseInvalidStorageError ¶
func (*DatabaseInvalidStorageError) Error ¶
func (e *DatabaseInvalidStorageError) Error() string
type DeleteDefaultProfile ¶ added in v0.8.0
type DeleteDefaultProfile struct {
DefaultProfile string
}
func (*DeleteDefaultProfile) Error ¶ added in v0.8.0
func (e *DeleteDefaultProfile) Error() string
type DeleteInexistentProfile ¶ added in v0.8.0
type DeleteInexistentProfile struct {
Profile string
}
func (*DeleteInexistentProfile) Error ¶ added in v0.8.0
func (e *DeleteInexistentProfile) Error() string
type DependingFlagIsMissing ¶ added in v0.47.0
func (*DependingFlagIsMissing) Error ¶ added in v0.47.0
func (e *DependingFlagIsMissing) Error() string
type EmptyUpdateError ¶
type EmptyUpdateError struct{}
func (*EmptyUpdateError) Error ¶
func (e *EmptyUpdateError) Error() string
type FileAlreadyExistsError ¶ added in v0.20.0
type FileAlreadyExistsError struct {
Filename string
}
func (*FileAlreadyExistsError) Error ¶ added in v0.20.0
func (e *FileAlreadyExistsError) Error() string
type FlagValidationError ¶
func (*FlagValidationError) Error ¶
func (e *FlagValidationError) Error() string
type InputUnknownError ¶
Used when an unexpected non-flag input (either arg or subcommand) is found
func (*InputUnknownError) Error ¶
func (e *InputUnknownError) Error() string
type InvalidFormatError ¶ added in v0.51.0
type InvalidFormatError struct {
Format string // The invalid format that was provided
}
InvalidFormatError indicates that an unsupported format was provided.
func NewInvalidFormatError ¶ added in v0.51.0
func NewInvalidFormatError(format string) *InvalidFormatError
NewInvalidFormatError creates a new InvalidFormatError with the provided format.
func (*InvalidFormatError) Error ¶ added in v0.51.0
func (e *InvalidFormatError) Error() string
type InvalidProfileNameError ¶ added in v0.8.0
type InvalidProfileNameError struct {
Profile string
}
func (*InvalidProfileNameError) Error ¶ added in v0.8.0
func (e *InvalidProfileNameError) Error() string
type MultipleFlagsAreMissing ¶ added in v0.47.0
func (*MultipleFlagsAreMissing) Error ¶ added in v0.47.0
func (e *MultipleFlagsAreMissing) Error() string
type ObservabilityInputPlanError ¶ added in v0.12.0
func (*ObservabilityInputPlanError) Error ¶ added in v0.12.0
func (e *ObservabilityInputPlanError) Error() string
type ObservabilityInvalidPlanError ¶ added in v0.12.0
func (*ObservabilityInvalidPlanError) Error ¶ added in v0.12.0
func (e *ObservabilityInvalidPlanError) Error() string
type OneOfFlagsIsMissing ¶ added in v0.47.0
func (*OneOfFlagsIsMissing) Error ¶ added in v0.47.0
func (e *OneOfFlagsIsMissing) Error() string
type ProfileAlreadyExistsError ¶ added in v0.20.0
type ProfileAlreadyExistsError struct {
Profile string
}
func (*ProfileAlreadyExistsError) Error ¶ added in v0.20.0
func (e *ProfileAlreadyExistsError) Error() string
type ProfileDoesNotExistError ¶ added in v0.20.0
type ProfileDoesNotExistError struct {
Profile string
}
func (*ProfileDoesNotExistError) Error ¶ added in v0.20.0
func (e *ProfileDoesNotExistError) Error() string
type ProjectIdError ¶
type ProjectIdError struct{}
func (*ProjectIdError) Error ¶
func (e *ProjectIdError) Error() string
type RegionError ¶ added in v0.47.0
type RegionError struct{}
func (*RegionError) Error ¶ added in v0.47.0
func (e *RegionError) Error() string
type RequestFailedError ¶ added in v0.51.0
type RequestFailedError struct {
Err error // Optional: underlying error
}
___REQUESTS_ERRORS___________________________________________________________ RequestFailedError indicates that an API request failed. If the provided error is an OpenAPI error, the status code and message from the error body will be included in the error message.
func NewRequestFailedError ¶ added in v0.51.0
func NewRequestFailedError(err error) *RequestFailedError
NewRequestFailedError creates a new RequestFailedError with optional details.
func (*RequestFailedError) Error ¶ added in v0.51.0
func (e *RequestFailedError) Error() string
func (*RequestFailedError) Unwrap ¶ added in v0.51.0
func (e *RequestFailedError) Unwrap() error
type RequiredMutuallyExclusiveFlagsError ¶ added in v0.6.0
type RequiredMutuallyExclusiveFlagsError struct {
Flags []string
}
func (*RequiredMutuallyExclusiveFlagsError) Error ¶ added in v0.6.0
func (e *RequiredMutuallyExclusiveFlagsError) Error() string
type ServerCreateError ¶ added in v0.17.0
func (*ServerCreateError) Error ¶ added in v0.17.0
func (e *ServerCreateError) Error() string
type ServerCreateMissingFlagsError ¶ added in v0.17.0
func (*ServerCreateMissingFlagsError) Error ¶ added in v0.17.0
func (e *ServerCreateMissingFlagsError) Error() string
type ServerCreateMissingVolumeIdError ¶ added in v0.17.0
func (*ServerCreateMissingVolumeIdError) Error ¶ added in v0.17.0
func (e *ServerCreateMissingVolumeIdError) Error() string
type ServerCreateMissingVolumeTypeError ¶ added in v0.17.0
func (*ServerCreateMissingVolumeTypeError) Error ¶ added in v0.17.0
func (e *ServerCreateMissingVolumeTypeError) Error() string
type ServerNicAttachMissingNicIdError ¶ added in v0.19.0
func (*ServerNicAttachMissingNicIdError) Error ¶ added in v0.19.0
func (e *ServerNicAttachMissingNicIdError) Error() string
type ServerNicDetachMissingNicIdError ¶ added in v0.19.0
func (*ServerNicDetachMissingNicIdError) Error ¶ added in v0.19.0
func (e *ServerNicDetachMissingNicIdError) Error() string
type ServiceDisabledError ¶ added in v0.8.1
type ServiceDisabledError struct {
Service string
}
func (*ServiceDisabledError) Error ¶ added in v0.8.1
func (e *ServiceDisabledError) Error() string
type SessionExpiredError ¶ added in v0.25.0
type SessionExpiredError struct{}
func (*SessionExpiredError) Error ¶ added in v0.25.0
func (e *SessionExpiredError) Error() string
type SetInexistentProfile ¶ added in v0.8.0
type SetInexistentProfile struct {
Profile string
}
func (*SetInexistentProfile) Error ¶ added in v0.8.0
func (e *SetInexistentProfile) Error() string
type SingleArgExpectedError ¶
func (*SingleArgExpectedError) Error ¶
func (e *SingleArgExpectedError) Error() string
type SingleOptionalArgExpectedError ¶
func (*SingleOptionalArgExpectedError) Error ¶
func (e *SingleOptionalArgExpectedError) Error() string
type SubcommandMissingError ¶
func (*SubcommandMissingError) Error ¶
func (e *SubcommandMissingError) Error() string