Documentation ¶
Index ¶
Constants ¶
View Source
const ( ErrForbidden = "Forbidden.RAM" // InvalidVSwitchIDIPNotEnough AssignPrivateIpAddresses const error message // Reference: https://help.aliyun.com/document_detail/85917.html InvalidVSwitchIDIPNotEnough = "InvalidVSwitchId.IpNotEnough" // ErrEniPerInstanceLimitExceeded CreateNetworkInterfaces const error message // Reference: https://help.aliyun.com/document_detail/85917.html ErrEniPerInstanceLimitExceeded = "EniPerInstanceLimitExceeded" // ErrSecurityGroupInstanceLimitExceed CreateNetworkInterfaces const error message // Reference: https://help.aliyun.com/document_detail/85917.html ErrSecurityGroupInstanceLimitExceed = "SecurityGroupInstanceLimitExceed" // ErrInvalidIPIPUnassigned see https://help.aliyun.com/document_detail/85919.html // for API UnassignPrivateIpAddresses ErrInvalidIPIPUnassigned = "InvalidIp.IpUnassigned" // ErrInvalidENINotFound .. // for API UnassignPrivateIpAddresses DetachNetworkInterface ErrInvalidENINotFound = "InvalidEniId.NotFound" // ErrInvalidENIState .. // for API DeleteNetworkInterface ErrInvalidENIState = "InvalidOperation.InvalidEniState" // ErrInvalidAllocationIDNotFound InvalidAllocationId.NotFound EIP not found ErrInvalidAllocationIDNotFound = "InvalidAllocationId.NotFound" // ErrIncorrectEIPStatus .. // for API UnassociateEipAddress ReleaseEipAddress ErrIncorrectEIPStatus = "IncorrectEipStatus" // ErrAssociationDuplicated .. // for API AssociateEipAddress ErrAssociationDuplicated = "InvalidAssociation.Duplicated" // ErrIPNotInCbwp for eip ErrIPNotInCbwp = "OperationUnsupported.IpNotInCbwp" // ErrTaskConflict for eip ErrTaskConflict = "TaskConflict" // ErrThrottling . ErrThrottling = "Throttling" )
Variables ¶
View Source
var (
ErrNotFound = errors.New("not found")
)
define well known err
Functions ¶
func ErrStatusCodeAssert ¶
ErrStatusCodeAssert check err is match errCode
Types ¶
Click to show internal directories.
Click to hide internal directories.