Documentation ¶
Index ¶
- func DumpAPIError(err error) (*model.ApiError, *apierrors.ErrorTypeEnum)
- func HandleHTTPResponse(response *http.Response, result interface{}, debug bool) (error, []byte)
- func ParseVPCPath(nsxResourcePath string) (orgID string, projectID string, vpcID string, resourceID string)
- func ShouldGroundPoint(err error) bool
- func ShouldRegenerate(err error) bool
- func ShouldRetry(err error) bool
- func VerifyNsxCertWithThumbprint(der []byte, thumbprint string) error
- type APITransactionAborted
- type BackendResourceNotFound
- type BadJSONWebTokenProviderRequest
- type BadXSRFToken
- type CannotConnectToServer
- type CertificateError
- type ClientCertificateNotTrusted
- type ConnectionError
- type DetailedRealizationTimeoutError
- type ErrorDetail
- type GeneralManagerError
- type GeneralNsxError
- type GeneralNsxLibInvalidInput
- type GeneralSearchError
- type GeneralServerBusy
- type IPBlockAllExhaustedError
- type InvalidCredentials
- type InvalidInput
- type InvalidLicense
- type ManagerError
- type MultipleResourcesFound
- type NSGroupIsFull
- type NSGroupMemberNotFound
- type NoEffectiveOption
- type NotImplemented
- type NsxError
- type NsxIndexingInProgress
- type NsxLibInvalidInput
- type NsxLibInvalidInputImpl
- type NsxOverlapAddresses
- type NsxOverlapVlan
- type NsxPendingDelete
- type NsxSearchError
- type NsxSearchErrorImpl
- type NsxSearchInvalidQuery
- type NsxSearchOutOfSync
- type NsxSearchTimeout
- type NsxSegmentWithVM
- type ObjectAlreadyExists
- type ObjectNotGenerated
- type PageMaxError
- type PodIPNotFound
- type PodNotRunning
- type PortAddress
- type RealizationError
- type RealizationErrorStateError
- type RealizationTimeoutError
- type ResourceInUse
- type ResourceNotFound
- type RestrictionError
- type SecurityGroupMaximumCapacityReached
- type ServerBusy
- type ServerBusyImpl
- type ServiceClusterUnavailable
- type ServiceUnavailable
- type StaleRevision
- type Timeout
- type TooManyRequests
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DumpAPIError ¶
func DumpAPIError(err error) (*model.ApiError, *apierrors.ErrorTypeEnum)
if ApiError is nil, check ErrorTypeEnum, such as ServiceUnavailable if both return value are nil, the error is not on the list there is no httpstatus, ApiError does't include it
func HandleHTTPResponse ¶
func ParseVPCPath ¶
func ShouldGroundPoint ¶
ShouldGroundPoint checks if it's a error which grounds an endpoint.
func ShouldRegenerate ¶
ShouldRegenerate check if it's a error should regenerate pool.
func VerifyNsxCertWithThumbprint ¶ added in v0.0.3
Types ¶
type APITransactionAborted ¶
type APITransactionAborted struct {
// contains filtered or unexported fields
}
func CreateAPITransactionAborted ¶
func CreateAPITransactionAborted() *APITransactionAborted
type BackendResourceNotFound ¶
type BackendResourceNotFound struct {
// contains filtered or unexported fields
}
func CreateBackendResourceNotFound ¶
func CreateBackendResourceNotFound(details string, manager string, operation string) BackendResourceNotFound
type BadJSONWebTokenProviderRequest ¶
type BadJSONWebTokenProviderRequest struct {
// contains filtered or unexported fields
}
func CreateBadJSONWebTokenProviderRequest ¶
func CreateBadJSONWebTokenProviderRequest(msg string) *BadJSONWebTokenProviderRequest
type BadXSRFToken ¶
type BadXSRFToken struct {
// contains filtered or unexported fields
}
func CreateBadXSRFToken ¶
func CreateBadXSRFToken() *BadXSRFToken
type CannotConnectToServer ¶
type CannotConnectToServer struct {
// contains filtered or unexported fields
}
func CreateCannotConnectToServer ¶
func CreateCannotConnectToServer() *CannotConnectToServer
type CertificateError ¶
type CertificateError struct {
// contains filtered or unexported fields
}
func CreateCertificateError ¶
func CreateCertificateError(msg string) *CertificateError
type ClientCertificateNotTrusted ¶
type ClientCertificateNotTrusted struct {
// contains filtered or unexported fields
}
func CreateClientCertificateNotTrusted ¶
func CreateClientCertificateNotTrusted() *ClientCertificateNotTrusted
type ConnectionError ¶
type ConnectionError struct {
// contains filtered or unexported fields
}
func CreateConnectionError ¶
func CreateConnectionError(host string) *ConnectionError
type DetailedRealizationTimeoutError ¶
type DetailedRealizationTimeoutError struct {
// contains filtered or unexported fields
}
type ErrorDetail ¶
type ErrorDetail struct { StatusCode int ErrorCode int RelatedErrorCodes []int RelatedStatusCodes []string Details string }
ErrorDetail is error detail which info extracted from http.Response.Body.
func (*ErrorDetail) Error ¶
func (e *ErrorDetail) Error() string
type GeneralManagerError ¶
type GeneralManagerError struct {
// contains filtered or unexported fields
}
func CreateGeneralManagerError ¶
func CreateGeneralManagerError(manager string, operation string, details string) *GeneralManagerError
type GeneralNsxError ¶
type GeneralNsxError struct {
// contains filtered or unexported fields
}
type GeneralNsxLibInvalidInput ¶
type GeneralNsxLibInvalidInput struct {
NsxLibInvalidInputImpl
}
func CreateNsxLibInvalidInput ¶
func CreateNsxLibInvalidInput(errorMessage string) *GeneralNsxLibInvalidInput
type GeneralSearchError ¶
type GeneralSearchError struct {
NsxSearchErrorImpl
}
func CreateGeneralNsxSearchError ¶
func CreateGeneralNsxSearchError() *GeneralSearchError
type GeneralServerBusy ¶
type GeneralServerBusy struct {
ServerBusyImpl
}
func CreateGeneralServerBusy ¶
type IPBlockAllExhaustedError ¶
type IPBlockAllExhaustedError struct {
Desc string
}
func (IPBlockAllExhaustedError) Error ¶
func (err IPBlockAllExhaustedError) Error() string
type InvalidCredentials ¶
type InvalidCredentials struct {
// contains filtered or unexported fields
}
func CreateInvalidCredentials ¶
func CreateInvalidCredentials(msg string) *InvalidCredentials
type InvalidInput ¶
type InvalidInput struct {
// contains filtered or unexported fields
}
func CreateInvalidInput ¶
func CreateInvalidInput(operation string, argVal string, argName string) *InvalidInput
type InvalidLicense ¶
type InvalidLicense struct {
// contains filtered or unexported fields
}
func CreateInvalidLicense ¶
func CreateInvalidLicense(msg string) *InvalidLicense
type ManagerError ¶
type ManagerError interface { NsxError // contains filtered or unexported methods }
type MultipleResourcesFound ¶
type MultipleResourcesFound struct {
// contains filtered or unexported fields
}
func CreateMultipleResourcesFound ¶
func CreateMultipleResourcesFound(manager string, operation string) *MultipleResourcesFound
type NSGroupIsFull ¶
type NSGroupIsFull struct {
// contains filtered or unexported fields
}
func CreateNSGroupIsFull ¶
func CreateNSGroupIsFull(nsgroupID string) *NSGroupIsFull
type NSGroupMemberNotFound ¶
type NSGroupMemberNotFound struct {
// contains filtered or unexported fields
}
func CreateNSGroupMemberNotFound ¶
func CreateNSGroupMemberNotFound(nsgroupID string, memberID string) *NSGroupMemberNotFound
type NoEffectiveOption ¶
type NoEffectiveOption struct {
Desc string
}
func (NoEffectiveOption) Error ¶
func (err NoEffectiveOption) Error() string
type NotImplemented ¶
type NotImplemented struct {
// contains filtered or unexported fields
}
func CreateNotImplemented ¶
func CreateNotImplemented(operation string) *NotImplemented
type NsxError ¶
type NsxError interface { Error() string // contains filtered or unexported methods }
type NsxIndexingInProgress ¶
type NsxIndexingInProgress struct {
NsxSearchErrorImpl
}
func CreateNsxIndexingInProgress ¶
func CreateNsxIndexingInProgress() *NsxIndexingInProgress
type NsxLibInvalidInput ¶
type NsxLibInvalidInput interface { NsxError // contains filtered or unexported methods }
type NsxLibInvalidInputImpl ¶
type NsxLibInvalidInputImpl struct {
// contains filtered or unexported fields
}
type NsxOverlapAddresses ¶
type NsxOverlapAddresses struct {
NsxLibInvalidInputImpl
}
func CreateNsxOverlapAddresses ¶
func CreateNsxOverlapAddresses(details string) *NsxOverlapAddresses
type NsxOverlapVlan ¶
type NsxOverlapVlan struct {
NsxLibInvalidInputImpl
}
func CreateNsxOverlapVlan ¶
func CreateNsxOverlapVlan() *NsxOverlapVlan
type NsxPendingDelete ¶
type NsxPendingDelete struct {
// contains filtered or unexported fields
}
func CreateNsxPendingDelete ¶
func CreateNsxPendingDelete() *NsxPendingDelete
type NsxSearchError ¶
type NsxSearchError interface { NsxError // contains filtered or unexported methods }
type NsxSearchErrorImpl ¶
type NsxSearchErrorImpl struct {
// contains filtered or unexported fields
}
type NsxSearchInvalidQuery ¶
type NsxSearchInvalidQuery struct {
// contains filtered or unexported fields
}
func CreateNsxSearchInvalidQuery ¶
func CreateNsxSearchInvalidQuery(reason string) *NsxSearchInvalidQuery
type NsxSearchOutOfSync ¶
type NsxSearchOutOfSync struct {
NsxSearchErrorImpl
}
func CreateNsxSearchOutOfSync ¶
func CreateNsxSearchOutOfSync() *NsxSearchOutOfSync
type NsxSearchTimeout ¶
type NsxSearchTimeout struct {
NsxSearchErrorImpl
}
func CreateNsxSearchTimeout ¶
func CreateNsxSearchTimeout() *NsxSearchTimeout
type NsxSegmentWithVM ¶
type NsxSegmentWithVM struct {
// contains filtered or unexported fields
}
func CreateNsxSegmentWithVM ¶
func CreateNsxSegmentWithVM() *NsxSegmentWithVM
type ObjectAlreadyExists ¶
type ObjectAlreadyExists struct {
// contains filtered or unexported fields
}
ObjectAlreadyExists means object already exsists on the backend
func CreateObjectAlreadyExists ¶
func CreateObjectAlreadyExists(objectType string) *ObjectAlreadyExists
type ObjectNotGenerated ¶
type ObjectNotGenerated struct {
// contains filtered or unexported fields
}
func CreateObjectNotGenerated ¶
func CreateObjectNotGenerated(objectType string) *ObjectNotGenerated
type PageMaxError ¶
type PageMaxError struct {
Desc string
}
PageMaxError For client usage
func (PageMaxError) Error ¶
func (err PageMaxError) Error() string
type PodIPNotFound ¶
type PodIPNotFound struct {
Desc string
}
func (PodIPNotFound) Error ¶
func (err PodIPNotFound) Error() string
type PodNotRunning ¶
type PodNotRunning struct {
Desc string
}
func (PodNotRunning) Error ¶
func (err PodNotRunning) Error() string
type PortAddress ¶
type PortAddress struct { // Port is the port number. Port int `json:"port"` // IPs is a list of IPs associated to port number. IPs []string `json:"ips"` }
PortAddress is used when named port is specified.
func MergeAddressByPort ¶
func MergeAddressByPort(portAddressOriginal []PortAddress) []PortAddress
type RealizationError ¶
type RealizationError struct {
// contains filtered or unexported fields
}
func CreateRealizationError ¶
func CreateRealizationError(operation string, argVal string, argName string) *RealizationError
type RealizationErrorStateError ¶
type RealizationErrorStateError struct {
// contains filtered or unexported fields
}
func CreateRealizationErrorStateError ¶
func CreateRealizationErrorStateError(resourceType string, resourceID string, error string) *RealizationErrorStateError
type RealizationTimeoutError ¶
type RealizationTimeoutError struct {
// contains filtered or unexported fields
}
func CreateRealizationTimeoutError ¶
func CreateRealizationTimeoutError(resourceType string, resourceID string, attempts string, sleep string) *RealizationTimeoutError
type ResourceInUse ¶
type ResourceInUse struct {
// contains filtered or unexported fields
}
func CreateResourceInUse ¶
func CreateResourceInUse() *ResourceInUse
type ResourceNotFound ¶
type ResourceNotFound struct {
// contains filtered or unexported fields
}
ResourceNotFound indicates resource not found by backend
func CreateResourceNotFound ¶
func CreateResourceNotFound(manager string, operation string) *ResourceNotFound
type RestrictionError ¶
type RestrictionError struct {
Desc string
}
func (RestrictionError) Error ¶
func (err RestrictionError) Error() string
type SecurityGroupMaximumCapacityReached ¶
type SecurityGroupMaximumCapacityReached struct {
// contains filtered or unexported fields
}
func CreateSecurityGroupMaximumCapacityReached ¶
func CreateSecurityGroupMaximumCapacityReached(sgID string) *SecurityGroupMaximumCapacityReached
type ServerBusy ¶
type ServerBusy interface { ManagerError // contains filtered or unexported methods }
type ServerBusyImpl ¶
type ServerBusyImpl struct {
// contains filtered or unexported fields
}
type ServiceClusterUnavailable ¶
type ServiceClusterUnavailable struct {
// contains filtered or unexported fields
}
func CreateServiceClusterUnavailable ¶
func CreateServiceClusterUnavailable(clusterID string) *ServiceClusterUnavailable
type StaleRevision ¶
type StaleRevision struct {
// contains filtered or unexported fields
}
func CreateStaleRevision ¶
type Timeout ¶
type Timeout struct {
// contains filtered or unexported fields
}
func CreateTimeout ¶
Click to show internal directories.
Click to hide internal directories.