errors

package
v0.2.12 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound                           = vErr.New("failed to find object")
	ErrNoNodeAvailable                    = vErr.New("no node available in the cluster")
	ErrNoPortIsConfigured                 = vErr.New("no port is configured for the Kubernetes service")
	ErrSpecAndExistingLbNotMatch          = vErr.New("the spec and the existing load balancer do not match")
	ErrNodesAreNotSameSubnet              = vErr.New("nodes are not in the same subnet")
	ErrServiceConfigIsNil                 = vErr.New("service config is nil")
	ErrEmptyLoadBalancerAnnotation        = vErr.New("load balancer annotation is empty")
	ErrTimeoutWaitingLoadBalancerReady    = vErr.New("timeout waiting for load balancer to be ready")
	ErrLoadBalancerIdNotInAnnotation      = vErr.New("loadbalancer ID has been not set in service annotation")
	ErrServerObjectIsNil                  = vErr.New("server object is nil")
	ErrVngCloudNotReturnNilPoolObject     = vErr.New("VNG CLOUD should not return nil pool object")
	ErrVngCloudNotReturnNilListenerObject = vErr.New("VNG CLOUD should not return nil listener object")
	ErrIngressNotFound                    = vErr.New("failed to find ingress")
	ErrSecurityGroupNotFound              = vErr.New("failed to find security group")
	ErrNetworkIDNotFound                  = vErr.New("failed to find network ID")
	ErrNoCertificateFound                 = vErr.New("no certificate found, should use annotation to specify certificate")
	ErrListenerProtocolNotMatch           = vErr.New("listener protocol does not match")
	ErrLoadBalancerStatusError            = vErr.New("load balancer status error")
)
View Source
var ErrLoadBalancerIDNotFoundAnnotation = vErr.New("failed to find LoadBalancerID from Annotation")
View Source
var ErrLoadBalancerNameNotFoundAnnotation = vErr.New("failed to find LoadBalancerName from Annotation")

Functions

func IsErrConflictService

func IsErrConflictService(pErr error) bool

func IsErrConflictServiceAndCloud

func IsErrConflictServiceAndCloud(pErr error) bool

func IsErrNoDefaultSecgroup

func IsErrNoDefaultSecgroup(pErr error) bool

func IsErrNodeAddressNotFound

func IsErrNodeAddressNotFound(pErr error) bool

func IsErrServicePortEmpty

func IsErrServicePortEmpty(pErr error) bool

func IsNoNodeAvailable

func IsNoNodeAvailable(pErr error) bool

func NewErrConflictService

func NewErrConflictService(pPort int, pProtocol, pInfo string) vconError.IErrorBuilder

func NewErrConflictServiceAndCloud

func NewErrConflictServiceAndCloud(pInfo string) vconError.IErrorBuilder

func NewErrNoDefaultSecgroup

func NewErrNoDefaultSecgroup(pProjectUUID, pInfo string) vconError.IErrorBuilder

func NewErrNodeAddressNotFound

func NewErrNodeAddressNotFound(pNodeName, pInfo string) vconError.IErrorBuilder

func NewErrServicePortEmpty

func NewErrServicePortEmpty() vconError.IErrorBuilder

func NewNoNodeAvailable

func NewNoNodeAvailable() vconError.IErrorBuilder

Types

type ErrConflictService

type ErrConflictService struct {
	Port     int
	Protocol string
	vconError.BaseError
}

func (*ErrConflictService) Error

func (s *ErrConflictService) Error() string

type ErrConflictServiceAndCloud

type ErrConflictServiceAndCloud struct {
	vconError.BaseError
}

func (*ErrConflictServiceAndCloud) Error

type ErrNoDefaultSecgroup

type ErrNoDefaultSecgroup struct {
	ProjectUUID string
	vconError.BaseError
}

func (*ErrNoDefaultSecgroup) Error

func (s *ErrNoDefaultSecgroup) Error() string

type ErrNodeAddressNotFound

type ErrNodeAddressNotFound struct {
	NodeName string
	vconError.BaseError
}

func (*ErrNodeAddressNotFound) Error

func (s *ErrNodeAddressNotFound) Error() string

type ErrServicePortEmpty

type ErrServicePortEmpty struct {
	vconError.BaseError
}

func (*ErrServicePortEmpty) Error

func (s *ErrServicePortEmpty) Error() string

type NoNodeAvailable

type NoNodeAvailable struct {
	vconError.BaseError
}

func (*NoNodeAvailable) Error

func (s *NoNodeAvailable) Error() string

Jump to

Keyboard shortcuts

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