errors

package
v0.0.0-...-e7c744b Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorNotSupportedCloudType        = errors.New("Not supported cloud type")
	ErrorNotSupportedDistributionType = errors.New("Not supported distribution type")
	ErrorAmazonImageFieldIsEmpty      = errors.New("Required field 'image' is empty ")
	ErrorInstancetypeFieldIsEmpty     = errors.New("Required field 'instanceType' is empty ")

	ErrorAmazonEksFieldIsEmpty         = errors.New("Required field 'eks' is empty.")
	ErrorAmazonEksNodePoolFieldIsEmpty = errors.New("At least one 'nodePool' is required.")

	ErrorNodePoolMinMaxFieldError      = errors.New("'maxCount' must be greater than 'minCount'")
	ErrorNodePoolCountFieldError       = errors.New("'count' must be greater than or equal to 'minCount' and lower than or equal to 'maxCount'")
	ErrorMaxFieldRequiredError         = errors.New("'maxCount' must be set in case 'autoscaling' is set to true")
	ErrorAzureFieldIsEmpty             = errors.New("Azure is <nil>")
	ErrorNodePoolEmpty                 = errors.New("Required field 'nodePools' is empty.")
	ErrorNotDifferentInterfaces        = errors.New("There is no change in data")
	ErrorNilCluster                    = errors.New("<nil> cluster")
	ErrorWrongKubernetesVersion        = errors.New("Wrong kubernetes version for master/nodes. The required minimum kubernetes version is 1.8.x ")
	ErrorNotSupportedKubernetesVersion = errors.New("Not supported Kubernetes version")
	ErrorDifferentKubernetesVersion    = errors.New("Different kubernetes version for master and nodes")
	ErrorLocationEmpty                 = errors.New("Location field is empty")
	ErrorNodePoolNotProvided           = errors.New("At least one 'nodepool' is required for creating or updating a cluster")
	ErrorNotValidLocation              = errors.New("not valid location")
	ErrorNotValidNodeInstanceType      = errors.New("not valid nodeInstanceType")
	ErrorNotValidMasterVersion         = errors.New("not valid master version")
	ErrorNotValidNodeVersion           = errors.New("not valid node version")
	ErrorNotValidKubernetesVersion     = errors.New("not valid kubernetesVersion")
	ErrorResourceGroupRequired         = errors.New("resource group is required")
	ErrorBucketDeleteNotEmpty          = errors.New("non empty buckets can not be deleted")
	ErrorGkeSubnetRequiredFieldIsEmpty = errors.New("'subnet' field required if 'vpc' is set")
	ErrorGkeVPCRequiredFieldIsEmpty    = errors.New("'vpc' field required if 'subnet' is set")

	ErrorMissingCloudSpecificProperties = errors.New("missing cloud specific properties")
)

### [ Errors ] ### //

Functions

func NewMultiErrorWithFormatter

func NewMultiErrorWithFormatter(err error) error

Types

type BadRequestBehavior

type BadRequestBehavior struct{}

BadRequestBehavior can be used to add the BadRequest() bool behavior to error implementations.

func (BadRequestBehavior) BadRequest

func (BadRequestBehavior) BadRequest() bool

BadRequest returns true.

type ClientErrorBehavior

type ClientErrorBehavior struct{}

ClientErrorBehavior can be used to add the ClientError() bool behavior to error implementations.

func (ClientErrorBehavior) ClientError

func (ClientErrorBehavior) ClientError() bool

ClientError returns true.

type ValidationBehavior

type ValidationBehavior struct{}

ValidationBehavior can be used to add the Validation() bool behavior to error implementations.

func (ValidationBehavior) Validation

func (ValidationBehavior) Validation() bool

Validation returns true.

Jump to

Keyboard shortcuts

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