errors

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidList             = utilerrors.New(codes.FailedPrecondition, errors.New("list did not return exactly 1 result"))
	ErrInvalidPersistence      = utilerrors.New(codes.InvalidArgument, errors.New("invalid persistence config"))
	ErrInvalidDataPersistence  = utilerrors.New(codes.InvalidArgument, errors.New("minimum of 2 data nodes required if no persistent storage"))
	ErrInvalidUpgradeOptions   = utilerrors.New(codes.InvalidArgument, errors.New("upgrade options not valid with current cluster config"))
	ErrClusterIDMissing        = utilerrors.New(codes.InvalidArgument, errors.New("request does not include cluster ID"))
	ErrOpensearchResponse      = utilerrors.New(codes.Unavailable, errors.New("opensearch request unsuccessful"))
	ErrNoOpensearchClient      = utilerrors.New(codes.Unavailable, errors.New("opensearch client is not set"))
	ErrLoggingCapabilityExists = utilerrors.New(codes.FailedPrecondition, errors.New("at least one cluster has logging capability installed"))
	ErrInvalidDuration         = utilerrors.New(codes.InvalidArgument, errors.New("duration must be integer and time unit, e.g 7d"))
	ErrRequestMissingMemory    = utilerrors.New(codes.InvalidArgument, errors.New("memory limit must be configured"))
	ErrMissingDataNode         = utilerrors.New(codes.InvalidArgument, errors.New("request must contain data nodes"))
	ErrRequestGtLimits         = utilerrors.New(codes.InvalidArgument, errors.New("cpu requests must not be more than cpu limits"))
	ErrReplicasZero            = utilerrors.New(codes.InvalidArgument, errors.New("replicas must be a positive nonzero integer"))
	ErrAlreadyExists           = utilerrors.New(codes.AlreadyExists, errors.New("object with that name already exists"))
	ErrObjectNotFound          = utilerrors.New(codes.NotFound, errors.New("object not found"))
	ErrSnapshotName            = utilerrors.New(codes.InvalidArgument, errors.New("snapshot name is required"))
)

Functions

func WrappedGetPrereqFailed added in v0.11.2

func WrappedGetPrereqFailed(inner error) *utilerrors.GRPCError

func WrappedOpensearchFailure added in v0.12.0

func WrappedOpensearchFailure(inner error) *utilerrors.GRPCError

Types

This section is empty.

Jump to

Keyboard shortcuts

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