alicloud

package
v1.21.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2018 License: MPL-2.0 Imports: 57 Imported by: 0

Documentation

Overview

common functions used by datahub

Index

Constants

View Source
const (
	ClassicNet = InstanceNetWork("classic")
	VpcNet     = InstanceNetWork("vpc")
)
View Source
const (
	PrePaid  = PayType("PrePaid")
	PostPaid = PayType("PostPaid")
	Prepaid  = PayType("Prepaid")
	Postpaid = PayType("Postpaid")
)
View Source
const (
	Internet = NetType("Internet")
	Intranet = NetType("Intranet")
)
View Source
const (
	Classic = NetworkType("Classic")
	Vpc     = NetworkType("Vpc")
)
View Source
const (
	Hour  = TimeType("Hour")
	Day   = TimeType("Day")
	Week  = TimeType("Week")
	Month = TimeType("Month")
	Year  = TimeType("Year")
)
View Source
const (
	Pending     = Status("Pending")
	Creating    = Status("Creating")
	Running     = Status("Running")
	Available   = Status("Available")
	Unavailable = Status("Unavailable")
	Modifying   = Status("Modifying")
	Deleting    = Status("Deleting")
	Starting    = Status("Starting")
	Stopping    = Status("Stopping")
	Stopped     = Status("Stopped")
	Normal      = Status("Normal")
	Changing    = Status("Changing")

	Associating   = Status("Associating")
	Unassociating = Status("Unassociating")
	InUse         = Status("InUse")
	DiskInUse     = Status("In_use")

	Active   = Status("Active")
	Inactive = Status("Inactive")
	Idle     = Status("Idle")

	SoldOut = Status("SoldOut")

	InService      = Status("InService")
	Removing       = Status("Removing")
	DisabledStatus = Status("Disabled")

	Init            = Status("Init")
	Provisioning    = Status("Provisioning")
	Updating        = Status("Updating")
	FinancialLocked = Status("FinancialLocked")

	PUBLISHED   = Status("Published")
	NOPUBLISHED = Status("NonPublished")
)
View Source
const (
	Inner   = IPType("Inner")
	Private = IPType("Private")
	Public  = IPType("Public")
)
View Source
const (
	ResourceTypeInstance = ResourceType("Instance")
	ResourceTypeDisk     = ResourceType("Disk")
	ResourceTypeVSwitch  = ResourceType("VSwitch")
	ResourceTypeRds      = ResourceType("Rds")
	IoOptimized          = ResourceType("IoOptimized")
	ResourceTypeRkv      = ResourceType("KVStore")
)
View Source
const (
	PayByBandwidth = InternetChargeType("PayByBandwidth")
	PayByTraffic   = InternetChargeType("PayByTraffic")
)
View Source
const (
	PageSizeSmall  = 10
	PageSizeMedium = 20
	PageSizeLarge  = 50
)
View Source
const (
	Http  = Protocol("http")
	Https = Protocol("https")
	Tcp   = Protocol("tcp")
	Udp   = Protocol("udp")
	All   = Protocol("all")
	Icmp  = Protocol("icmp")
	Gre   = Protocol("gre")
)

Constants of protocol definition

View Source
const (
	IOOptimized   = OptimizedType("optimized")
	NoneOptimized = OptimizedType("none")
)
View Source
const (
	TagResourceImage         = TagResourceType("image")
	TagResourceInstance      = TagResourceType("instance")
	TagResourceSnapshot      = TagResourceType("snapshot")
	TagResourceDisk          = TagResourceType("disk")
	TagResourceSecurityGroup = TagResourceType("securitygroup")
)
View Source
const (
	// common
	NotFound       = "NotFound"
	WaitForTimeout = "WaitForTimeout"
	// ecs
	InstanceNotFound        = "Instance.Notfound"
	MessageInstanceNotFound = "instance is not found"
	EcsThrottling           = "Throttling"
	EcsInternalError        = "InternalError"
	// disk
	InternalError       = "InternalError"
	DependencyViolation = "DependencyViolation"
	// eip
	EipIncorrectStatus         = "IncorrectEipStatus"
	InstanceIncorrectStatus    = "IncorrectInstanceStatus"
	HaVipIncorrectStatus       = "IncorrectHaVipStatus"
	COMMODITYINVALID_COMPONENT = "COMMODITY.INVALID_COMPONENT"
	// slb
	LoadBalancerNotFound        = "InvalidLoadBalancerId.NotFound"
	UnsupportedProtocalPort     = "UnsupportedOperationonfixedprotocalport"
	ListenerNotFound            = "The specified resource does not exist"
	ListenerAlreadyExists       = "ListenerAlreadyExists"
	SlbOrderFailed              = "OrderFailed"
	VServerGroupNotFoundMessage = "The specified VServerGroupId does not exist"
	RspoolVipExist              = "RspoolVipExist"
	InvalidParameter            = "InvalidParameter"
	InvalidRuleIdNotFound       = "InvalidRuleId.NotFound"
	RuleDomainExist             = "DomainExist"
	BackendServerConfiguring    = "BackendServer.configuring"

	// slb acl
	SlbAclNumberOverLimit               = "AclNumberOverLimit"
	SlbAclInvalidActionRegionNotSupport = "InvalidAction.RegionNotSupport"
	SlbAclNotExists                     = "AclNotExist"
	SlbAclEntryEmpty                    = "AclEntryEmpty"
	SlbAclNameExist                     = "AclNameExist"

	SlbCACertificateIdNotFound = "CACertificateId.NotFound"
	// slb server certificate
	SlbServerCertificateIdNotFound = "ServerCertificateId.NotFound"

	// security_group
	InvalidInstanceIdAlreadyExists = "InvalidInstanceId.AlreadyExists"
	InvalidSecurityGroupIdNotFound = "InvalidSecurityGroupId.NotFound"
	SgDependencyViolation          = "DependencyViolation"

	//Nat gateway
	NatGatewayInvalidRegionId            = "Invalid.RegionId"
	DependencyViolationBandwidthPackages = "DependencyViolation.BandwidthPackages"
	VswitchStatusError                   = "VswitchStatusError"
	EIP_NOT_IN_GATEWAY                   = "EIP_NOT_IN_GATEWAY"
	InvalidNatGatewayIdNotFound          = "InvalidNatGatewayId.NotFound"
	// vpc
	VpcQuotaExceeded     = "QuotaExceeded.Vpc"
	InvalidVpcIDNotFound = "InvalidVpcID.NotFound"
	ForbiddenVpcNotFound = "Forbidden.VpcNotFound"
	Throttling           = "Throttling"
	IncorrectVpcStatus   = "IncorrectVpcStatus"

	//apigatway
	ApiGroupNotFound = "NotFoundApiGroup"
	RepeatedCommit   = "RepeatedCommit"

	// vswitch
	VswitcInvalidRegionId    = "InvalidRegionId.NotFound"
	InvalidVswitchIDNotFound = "InvalidVswitchID.NotFound"
	//vroute entry
	IncorrectRouteEntryStatus            = "IncorrectRouteEntryStatus"
	InvalidStatusRouteEntry              = "InvalidStatus.RouteEntry"
	TaskConflict                         = "TaskConflict"
	RouterEntryForbbiden                 = "Forbbiden"
	RouterEntryConflictDuplicated        = "RouterEntryConflict.Duplicated"
	InvalidCidrBlockOverlapped           = "InvalidCidrBlock.Overlapped"
	IncorrectOppositeInterfaceInfoNotSet = "IncorrectOppositeInterfaceInfo.NotSet"
	InvalidSnatTableIdNotFound           = "InvalidSnatTableId.NotFound"
	// Forward
	InvalidIpNotInNatgw           = "InvalidIp.NotInNatgw"
	InvalidForwardTableIdNotFound = "InvalidForwardTableId.NotFound"
	InvalidForwardEntryIdNotFound = "InvalidForwardEntryId.NotFound"

	// ess
	InvalidScalingGroupIdNotFound               = "InvalidScalingGroupId.NotFound"
	IncorrectScalingConfigurationLifecycleState = "IncorrectScalingConfigurationLifecycleState"
	IncorrectScalingGroupStatus                 = "IncorrectScalingGroupStatus"
	IncorrectCapacityMaxSize                    = "IncorrectCapacity.MaxSize"
	IncorrectCapacityMinSize                    = "IncorrectCapacity.MinSize"
	ScalingActivityInProgress                   = "ScalingActivityInProgress"
	EssThrottling                               = "Throttling"
	InvalidScalingRuleIdNotFound                = "InvalidScalingRuleId.NotFound"
	InvalidLifecycleHookIdNotFound              = "InvalidLifecycleHookId.NotExist"
	InvalidEssAlarmTaskNotFound                 = "404"

	// rds
	InvalidDBInstanceIdNotFound            = "InvalidDBInstanceId.NotFound"
	InvalidDBNameNotFound                  = "InvalidDBName.NotFound"
	InvalidDBInstanceNameNotFound          = "InvalidDBInstanceName.NotFound"
	InvalidCurrentConnectionStringNotFound = "InvalidCurrentConnectionString.NotFound"
	NetTypeExists                          = "NetTypeExists"
	InvalidAccountNameDuplicate            = "InvalidAccountName.Duplicate"
	InvalidAccountNameNotFound             = "InvalidAccountName.NotFound"
	InvalidConnectionStringDuplicate       = "InvalidConnectionString.Duplicate"
	AtLeastOneNetTypeExists                = "AtLeastOneNetTypeExists"
	ConnectionOperationDenied              = "OperationDenied"
	ConnectionConflictMessage              = "The requested resource is sold out in the specified zone; try other types of resources or other regions and zones"
	DBInternalError                        = "InternalError"
	// oss
	OssBucketNotFound          = "NoSuchBucket"
	OssBodyNotFound            = "404 Not Found"
	NoSuchCORSConfiguration    = "NoSuchCORSConfiguration"
	NoSuchWebsiteConfiguration = "NoSuchWebsiteConfiguration"

	// RAM Instance Not Found
	RamInstanceNotFound   = "Forbidden.InstanceNotFound"
	AliyunGoClientFailure = "AliyunGoClientFailure"

	// dns
	RecordForbiddenDNSChange    = "RecordForbidden.DNSChange"
	FobiddenNotEmptyGroup       = "Fobidden.NotEmptyGroup"
	DomainRecordNotBelongToUser = "DomainRecordNotBelongToUser"
	InvalidDomainNotFound       = "InvalidDomain.NotFound"
	InvalidDomainNameNoExist    = "InvalidDomainName.NoExist"

	// ram user
	DeleteConflictUserGroup        = "DeleteConflict.User.Group"
	DeleteConflictUserAccessKey    = "DeleteConflict.User.AccessKey"
	DeleteConflictUserLoginProfile = "DeleteConflict.User.LoginProfile"
	DeleteConflictUserMFADevice    = "DeleteConflict.User.MFADevice"
	DeleteConflictUserPolicy       = "DeleteConflict.User.Policy"

	// ram mfa
	DeleteConflictVirtualMFADeviceUser = "DeleteConflict.VirtualMFADevice.User"

	// ram group
	DeleteConflictGroupUser   = "DeleteConflict.Group.User"
	DeleteConflictGroupPolicy = "DeleteConflict.Group.Policy"

	// ram role
	DeleteConflictRolePolicy = "DeleteConflict.Role.Policy"

	// ram policy
	DeleteConflictPolicyUser    = "DeleteConflict.Policy.User"
	DeleteConflictPolicyGroup   = "DeleteConflict.Policy.Group"
	DeleteConflictPolicyVersion = "DeleteConflict.Policy.Version"

	//unknown Error
	UnknownError = "UnknownError"

	// Keypair error
	KeyPairNotFound           = "InvalidKeyPair.NotFound"
	KeyPairServiceUnavailable = "ServiceUnavailable"

	// Container
	ErrorClusterNotFound = "ErrorClusterNotFound"

	// cdn
	ServiceBusy = "ServiceBusy"

	// KMS
	ForbiddenKeyNotFound = "Forbidden.KeyNotFound"
	// RAM
	InvalidRamRoleNotFound       = "InvalidRamRole.NotFound"
	RoleAttachmentUnExpectedJson = "unexpected end of JSON input"
	InvalidInstanceIdNotFound    = "InvalidInstanceId.NotFound"

	RouterInterfaceIncorrectStatus                        = "IncorrectStatus"
	DependencyViolationRouterInterfaceReferedByRouteEntry = "DependencyViolation.RouterInterfaceReferedByRouteEntry"

	// CS
	ErrorClusterNameAlreadyExist = "ErrorClusterNameAlreadyExist"
	ApplicationNotFound          = "Not Found"
	ApplicationErrorIgnore       = "Unable to reach primary cluster manager"
	ApplicationConfirmConflict   = "Conflicts with unconfirmed updates for operation"

	// privatezone
	ZoneNotExists    = "Zone.NotExists"
	ZoneVpcNotExists = "ZoneVpc.NotExists.VpcId"
	// log
	ProjectNotExist      = "ProjectNotExist"
	IndexConfigNotExist  = "IndexConfigNotExist"
	IndexAlreadyExist    = "IndexAlreadyExist"
	LogStoreNotExist     = "LogStoreNotExist"
	InternalServerError  = "InternalServerError"
	GroupNotExist        = "GroupNotExist"
	MachineGroupNotExist = "MachineGroupNotExist"

	// OTS
	OTSObjectNotExist = "OTSObjectNotExist"

	// FC
	ServiceNotFound  = "ServiceNotFound"
	FunctionNotFound = "FunctionNotFound"
	TriggerNotFound  = "TriggerNotFound"
	AccessDenied     = "AccessDenied"

	// Vpn
	VpnNotFound              = "InvalidVpnGatewayInstanceId.NotFound"
	VpnForbidden             = "Forbidden"
	VpnForbiddenRelease      = "ForbiddenRelease"
	VpnForbiddenSubUser      = "Forbbiden.SubUser"
	CgwNotFound              = "InvalidCustomerGatewayInstanceId.NotFound"
	ResQuotaFull             = "Resource.QuotaFull"
	VpnConnNotFound          = "InvalidVpnConnectionInstanceId.NotFound"
	InvalidIpAddress         = "InvalidIpAddress.AlreadyExist"
	SslVpnServerNotFound     = "InvalidSslVpnServerId.NotFound"
	SslVpnClientCertNotFound = "InvalidSslVpnClientCertId.NotFound"
	VpnConfiguring           = "VpnGateway.Configuring"
	VpnInvalidSpec           = "InvalidSpec.NotFound"
	VpnEnable                = "enable"
	// CEN
	OperationBlocking                = "Operation.Blocking"
	ParameterCenInstanceIdNotExist   = "ParameterCenInstanceId"
	CenQuotaExceeded                 = "QuotaExceeded.CenCountExceeded"
	InvalidCenInstanceStatus         = "InvalidOperation.CenInstanceStatus"
	InvalidChildInstanceStatus       = "InvalidOperation.ChildInstanceStatus"
	ParameterInstanceIdNotExist      = "ParameterInstanceId"
	ForbiddenRelease                 = "Forbidden.Release"
	InvalidCenBandwidthLimitsNotZero = "InvalidOperation.CenBandwidthLimitsNotZero"
	ParameterBwpInstanceId           = "ParameterBwpInstanceId"
	InvalidBwpInstanceStatus         = "InvalidOperation.BwpInstanceStatus"
	InvalidBwpBusinessStatus         = "InvalidOperation.BwpBusinessStatus"
	ParameterIllegal                 = "ParameterIllegal"
	ParameterIllegalCenInstanceId    = "ParameterIllegal.CenInstanceId"
	InstanceNotExist                 = "Instance.NotExist"
	// kv-store
	InvalidKVStoreInstanceIdNotFound = "InvalidInstanceId.NotFound"
	// MNS
	QueueNotExist        = "QueueNotExist"
	TopicNotExist        = "TopicNotExist"
	SubscriptionNotExist = "SubscriptionNotExist"
	//HaVip
	InvalidHaVipIdNotFound = "InvalidHaVipId.NotFound"
	InvalidVipStatus       = "InvalidVip.Status"
	IncorrectHaVipStatus   = "IncorrectHaVipStatus"
)
View Source
const (
	Average = "Average"
	Minimum = "Minimum"
	Maximum = "Maximum"
)
View Source
const (
	MoreThan        = ">"
	MoreThanOrEqual = ">="
	LessThan        = "<"
	LessThanOrEqual = "<="
	Equal           = "=="
	NotEqual        = "!="
)
View Source
const (
	GroupRuleInternet = GroupRuleNicType("internet")
	GroupRuleIntranet = GroupRuleNicType("intranet")
)
View Source
const (
	DirectionIngress = Direction("ingress")
	DirectionEgress  = Direction("egress")
)
View Source
const (
	GroupRulePolicyAccept = GroupRulePolicy("accept")
	GroupRulePolicyDrop   = GroupRulePolicy("drop")
)
View Source
const (
	GroupInnerAccept = GroupInnerAccessPolicy("Accept")
	GroupInnerDrop   = GroupInnerAccessPolicy("Drop")
)
View Source
const (
	NoSpot             = SpotStrategyType("NoSpot")
	SpotWithPriceLimit = SpotStrategyType("SpotWithPriceLimit")
	SpotAsPriceGo      = SpotStrategyType("SpotAsPriceGo")
)

Constants of SpotStrategyType

View Source
const (
	ZoneResource         = DestinationResource("Zone")
	IoOptimizedResource  = DestinationResource("IoOptimized")
	InstanceTypeResource = DestinationResource("InstanceType")
	SystemDiskResource   = DestinationResource("SystemDisk")
	DataDiskResource     = DestinationResource("DataDisk")
	NetworkResource      = DestinationResource("Network")
)
View Source
const (
	RenewAutoRenewal = RenewalStatus("AutoRenewal")
	RenewNormal      = RenewalStatus("Normal")
	RenewNotRenewal  = RenewalStatus("NotRenewal")
)
View Source
const (
	DiskTypeAll    = DiskType("all")
	DiskTypeSystem = DiskType("system")
	DiskTypeData   = DiskType("data")
)
View Source
const (
	DiskAll             = DiskCategory("all") //Default
	DiskCloud           = DiskCategory("cloud")
	DiskEphemeralSSD    = DiskCategory("ephemeral_ssd")
	DiskCloudEfficiency = DiskCategory("cloud_efficiency")
	DiskCloudSSD        = DiskCategory("cloud_ssd")
)
View Source
const (
	ImageOwnerSystem      = ImageOwnerAlias("system")
	ImageOwnerSelf        = ImageOwnerAlias("self")
	ImageOwnerOthers      = ImageOwnerAlias("others")
	ImageOwnerMarketplace = ImageOwnerAlias("marketplace")
	ImageOwnerDefault     = ImageOwnerAlias("") //Return the values for system, self, and others
)
View Source
const (
	Gt  = ComparisonOperator(">")
	Gte = ComparisonOperator(">=")
	Lt  = ComparisonOperator("<")
	Lte = ComparisonOperator("<=")
)
View Source
const (
	Avg = Statistics("Average")
	Min = Statistics("Minimum")
	Max = Statistics("Maximum")
)
View Source
const (
	OneMinite     = Period(60)
	TwoMinite     = Period(120)
	FiveMinite    = Period(300)
	FifteenMinite = Period(900)
)
View Source
const (
	System = MetricType("system")
	Custom = MetricType("custom")
)
View Source
const (
	Continue = ActionResult("CONTINUE")
	Abandon  = ActionResult("ABANDON")
)
View Source
const (
	ScaleOut = LifecycleTransition("SCALE_OUT")
	ScaleIn  = LifecycleTransition("SCALE_IN")
)
View Source
const (
	QuantityChangeInCapacity = AdjustmentType("QuantityChangeInCapacity")
	PercentChangeInCapacity  = AdjustmentType("PercentChangeInCapacity")
	TotalCapacity            = AdjustmentType("TotalCapacity")
)
View Source
const (
	Daily   = RecurrenceType("Daily")
	Weekly  = RecurrenceType("Weekly")
	Monthly = RecurrenceType("Monthly")
)
View Source
const (
	AutoCreated = InstanceCreationType("AutoCreated")
	Attached    = InstanceCreationType("Attached")
)
View Source
const (
	Priority = MultiAzPolicy("PRIORITY")
	Balance  = MultiAzPolicy("BALANCE")
)
View Source
const (
	Enabled         = KeyState("Enabled")
	Disabled        = KeyState("Disabled")
	PendingDeletion = KeyState("PendingDeletion")
)
View Source
const (
	TextType   = IndexFiledType("text")
	LongType   = IndexFiledType("long")
	DoubleType = IndexFiledType("double")
	JsonType   = IndexFiledType("json")
)
View Source
const (
	ExpirationStatusEnabled  = LifecycleRuleStatus("Enabled")
	ExpirationStatusDisabled = LifecycleRuleStatus("Disabled")
)
View Source
const (
	IntegerType = PrimaryKeyTypeString("Integer")
	StringType  = PrimaryKeyTypeString("String")
	BinaryType  = PrimaryKeyTypeString("Binary")
)
View Source
const (
	AnyNetwork   = InstanceAccessedByType("Any")
	VpcOnly      = InstanceAccessedByType("Vpc")
	VpcOrConsole = InstanceAccessedByType("ConsoleOrVpc")
)
View Source
const (
	OtsCapacity        = OtsInstanceType("Capacity")
	OtsHighPerformance = OtsInstanceType("HighPerformance")
)
View Source
const (
	MySQL      = Engine("MySQL")
	SQLServer  = Engine("SQLServer")
	PPAS       = Engine("PPAS")
	PostgreSQL = Engine("PostgreSQL")
)
View Source
const (
	ReadOnly  = DBAccountPrivilege("ReadOnly")
	ReadWrite = DBAccountPrivilege("ReadWrite")
)
View Source
const (
	DBAccountNormal = DBAccountType("Normal")
	DBAccountSuper  = DBAccountType("Super")
)
View Source
const (
	WRRScheduler = SchedulerType("wrr")
	WLCScheduler = SchedulerType("wlc")
)
View Source
const (
	OnFlag  = FlagType("on")
	OffFlag = FlagType("off")
)
View Source
const (
	AclTypeBlack = AclType("black")
	AclTypeWhite = AclType("white")
)
View Source
const (
	IPVersion4 = IPVersion("ipv4")
	IPVersion6 = IPVersion("ipv6")
)
View Source
const (
	InsertStickySessionType = StickySessionType("insert")
	ServerStickySessionType = StickySessionType("server")
)
View Source
const (
	HTTP_2XX = HealthCheckHttpCodeType("http_2xx")
	HTTP_3XX = HealthCheckHttpCodeType("http_3xx")
	HTTP_4XX = HealthCheckHttpCodeType("http_4xx")
	HTTP_5XX = HealthCheckHttpCodeType("http_5xx")
)
View Source
const (
	TCPHealthCheckType  = HealthCheckType("tcp")
	HTTPHealthCheckType = HealthCheckType("http")
)
View Source
const (
	S1Small  = "slb.s1.small"
	S2Small  = "slb.s2.small"
	S2Medium = "slb.s2.medium"
	S3Small  = "slb.s3.small"
	S3Medium = "slb.s3.medium"
	S3Large  = "slb.s3.large"
)
View Source
const (
	NatGatewaySmallSpec  = NatGatewaySpec("Small")
	NatGatewayMiddleSpec = NatGatewaySpec("Middle")
	NatGatewayLargeSpec  = NatGatewaySpec("Large")
)
View Source
const (
	EcsInstance = "EcsInstance"
	SlbInstance = "SlbInstance"
	Nat         = "Nat"
	HaVip       = "HaVip"
)
View Source
const (
	VRouter = RouterType("VRouter")
	VBR     = RouterType("VBR")

	InitiatingSide = Role("InitiatingSide")
	AcceptingSide  = Role("AcceptingSide")

	Mini2   = Spec("Mini.2")
	Mini5   = Spec("Mini.5")
	Small1  = Spec("Small.1")
	Small2  = Spec("Small.2")
	Small5  = Spec("Small.5")
	Middle1 = Spec("Middle.1")
	Middle2 = Spec("Middle.2")
	Middle5 = Spec("Middle.5")
	Large1  = Spec("Large.1")
	Large2  = Spec("Large.2")
	Large5  = Spec("Large.5")
	Xlarge1 = Spec("Xlarge.1")

	Negative = Spec(("Negative"))
)
View Source
const (
	NextHopIntance         = NextHopType("Instance") //Default
	NextHopTunnel          = NextHopType("Tunnel")
	NextHopRouterInterface = NextHopType("RouterInterface")
	NextHopHaVip           = NextHopType("HaVip")
	NextHopVpnGateway      = NextHopType("VpnGateway")
)
View Source
const (
	Ssl_Cert_Expiring = Status("expiring-soon")
	Ssl_Cert_Normal   = Status("normal")
	Ssl_Cert_Expired  = Status("expired")
)
View Source
const (
	IKE_VERSION_1       = string("ikev1")
	IKE_VERSION_2       = string("ikev2")
	IKE_MODE_MAIN       = string("main")
	IKE_MODE_AGGRESSIVE = string("aggressive")
	VPN_ENC_AES         = string("aes")
	VPN_ENC_AES_192     = string("aes192")
	VPN_ENC_AES_256     = string("aes256")
	VPN_ENC_AES_DES     = string("des")
	VPN_ENC_AES_3DES    = string("3des")
	VPN_AUTH_MD5        = string("md5")
	VPN_AUTH_SHA        = string("sha1")
	VPN_PFS_G1          = string("group1")
	VPN_PFS_G2          = string("group2")
	VPN_PFS_G5          = string("group5")
	VPN_PFS_G14         = string("group14")
	VPN_PFS_G24         = string("group24")
	VPN_UDP_PROTO       = string("UDP")
	VPN_TCP_PROTO       = string("TCP")
	SSL_VPN_ENC_AES_128 = string("AES-128-CBC")
	SSL_VPN_ENC_AES_192 = string("AES-192-CBC")
	SSL_VPN_ENC_AES_256 = string("AES-256-CBC")
	SSL_VPN_ENC_NONE    = string("none")
)
View Source
const (
	KubernetesClusterNetworkTypeFlannel = "flannel"
	KubernetesClusterNetworkTypeTerway  = "terway"

	KubernetesClusterLoggingTypeSLS = "SLS"
)
View Source
const (
	SlbSpecification  = RegionalFeature("SLB_SPECIFICATION")
	SlbPayByBandwidth = RegionalFeature("SLB_PAY_BY_BANDWIDTH")
	FunctionCompute   = RegionalFeature("FUNCTION_COMPUTE")
	PrivateZone       = RegionalFeature("PRIVATE_ZONE")
	RdsMultiAZ        = RegionalFeature("RDS_MULTI_AZ")
	ClassicNetwork    = RegionalFeature("CLASSIC_NETWORK")
)
View Source
const AllPortRange = "-1/-1"
View Source
const BackendServerPort = -520
View Source
const COLON_SEPARATED = ":"
View Source
const COMMA_SEPARATED = ","
View Source
const CharityPageUrl = "http://promotion.alicdn.com/help/oss/error.html"
View Source
const ChildInstanceTypeVbr = "VBR"
View Source
const ChildInstanceTypeVpc = "VPC"
View Source
const DB_DEFAULT_CONNECT_PORT = "3306"

default connect port of db

View Source
const DEFAULT_REGION = "cn-beijing"

default region for all resource

View Source
const DefaultCenTimeout = 60
View Source
const DefaultCenTimeoutLong = 180
View Source
const DefaultIntervalLong = 20
View Source
const DefaultIntervalMedium = 10
View Source
const DefaultIntervalShort = 5
View Source
const DefaultLongTimeout = 1000

timeout for long time progerss product, rds e.g.

View Source
const DefaultTimeout = 120

timeout for common product, ecs e.g.

View Source
const DefaultTimeoutMedium = 500
View Source
const (
	DoesNotExist = "does not exist"
)

It is proactive defense to the case that SDK extends new datahub objects.

View Source
const GenerationFour = "ecs-4"
View Source
const GenerationOne = "ecs-1"
View Source
const GenerationThree = "ecs-3"
View Source
const GenerationTwo = "ecs-2"
View Source
const INT_MAX = 2147483647
View Source
const (
	KubernetesMasterNumber = 3
)
View Source
const LOCAL_HOST_IP = "127.0.0.1"
View Source
const MULTI_IZ_SYMBOL = "MAZ"

symbol of multiIZ

View Source
const ScalingGroup = "scaling_group"
View Source
const ServerSideEncryptionAes256 = "AES256"
View Source
const UserId = "userId"

Variables

View Source
var BACKUP_TIME = []string{
	"00:00Z-01:00Z", "01:00Z-02:00Z", "02:00Z-03:00Z", "03:00Z-04:00Z", "04:00Z-05:00Z",
	"05:00Z-06:00Z", "06:00Z-07:00Z", "07:00Z-08:00Z", "08:00Z-09:00Z", "09:00Z-10:00Z",
	"10:00Z-11:00Z", "11:00Z-12:00Z", "12:00Z-13:00Z", "13:00Z-14:00Z", "14:00Z-15:00Z",
	"15:00Z-16:00Z", "16:00Z-17:00Z", "17:00Z-18:00Z", "18:00Z-19:00Z", "19:00Z-20:00Z",
	"20:00Z-21:00Z", "21:00Z-22:00Z", "22:00Z-23:00Z", "23:00Z-24:00Z",
}
View Source
var CHARACTER_SET_NAME = []string{
	"utf8", "gbk", "latin1", "utf8mb4",
	"Chinese_PRC_CI_AS", "Chinese_PRC_CS_AS", "SQL_Latin1_General_CP1_CI_AS", "SQL_Latin1_General_CP1_CS_AS", "Chinese_PRC_BIN",
}
View Source
var ClientErrorCatcher = Catcher{AliyunGoClientFailure, 10, 5}
View Source
var DiskInvalidOperation = []string{"IncorrectDiskStatus", "IncorrectInstanceStatus", "OperationConflict", InternalError, "InvalidOperation.Conflict", "IncorrectDiskStatus.Initializing"}
View Source
var EcsNotFound = []string{"InvalidInstanceId.NotFound", "Forbidden.InstanceNotFound"}
View Source
var HalfIoOptimizedFamily = map[string]string{"ecs.s2": "", "ecs.s3": "", "ecs.m1": "", "ecs.m2": "", "ecs.c1": "", "ecs.c2": ""}
View Source
var (
	KubernetesClusterNodeCIDRMasksByDefault = 24
)
View Source
var NoneIoOptimizedFamily = map[string]string{"ecs.t1": "", "ecs.t2": "", "ecs.s1": ""}
View Source
var NoneIoOptimizedInstanceType = map[string]string{"ecs.s2.small": ""}
View Source
var OperationDeniedDBStatus = []string{"OperationDenied.DBStatus", "OperationDenied.DBInstanceStatus", DBInternalError}
View Source
var OutdatedDiskCategory = map[DiskCategory]DiskCategory{
	DiskCloud: DiskCloud}
View Source
var ServiceBusyCatcher = Catcher{"ServiceUnavailable", 10, 5}
View Source
var SlbIsBusy = []string{"SystemBusy", "OperationBusy", "ServiceIsStopping", "BackendServer.configuring", "ServiceIsConfiguring"}
View Source
var SupportedDiskCategory = map[DiskCategory]DiskCategory{
	DiskCloudSSD:        DiskCloudSSD,
	DiskCloudEfficiency: DiskCloudEfficiency,
	DiskEphemeralSSD:    DiskEphemeralSSD,
	DiskCloud:           DiskCloud,
}
View Source
var ThrottlingCatcher = Catcher{Throttling, 10, 10}
View Source
var ValidProtocols = []Protocol{Http, Https, Tcp, Udp}

ValidProtocols network protocol list

View Source
var WEEK_ENUM = []string{"Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"}

Functions

func AddTags

func AddTags(client *ecs.Client, args *AddTagsArgs) error

func BoolPointer added in v1.10.0

func BoolPointer(b bool) *bool

func ConvertIntegerToInt added in v1.9.4

func ConvertIntegerToInt(value requests.Integer) (v int, err error)

func GetAllRouterInterfaceSpec added in v0.1.1

func GetAllRouterInterfaceSpec() (specifications []string)

func GetNotFoundErrorFromString

func GetNotFoundErrorFromString(str string) error

func GetNotFoundMessage added in v1.8.1

func GetNotFoundMessage(product, id string) string

func GetTimeErrorFromString added in v1.8.1

func GetTimeErrorFromString(str string) error

func GetTimeoutMessage added in v1.8.1

func GetTimeoutMessage(product, status string) string

func GetUserHomeDir added in v1.9.4

func GetUserHomeDir() (string, error)

func Int32Pointer added in v1.10.0

func Int32Pointer(i int32) *int32

func IsExceptedError added in v0.1.1

func IsExceptedError(err error, expectCode string) bool

func IsExceptedErrors added in v1.9.2

func IsExceptedErrors(err error, expectCodes []string) bool

func NotFoundError added in v0.1.1

func NotFoundError(err error) bool

func Provider

func Provider() terraform.ResourceProvider

Provider returns a schema.Provider for alicloud

func RamEntityNotExist added in v1.2.0

func RamEntityNotExist(err error) bool

func RemoveTags

func RemoveTags(client *ecs.Client, args *RemoveTagsArgs) error

func String

func String(v string) *string

func StringPointer added in v1.10.0

func StringPointer(s string) *string

func Trim added in v1.7.2

func Trim(v string) string

Remove useless blank in the string.

func VSwitchesDecriptionAttributes added in v1.7.2

func VSwitchesDecriptionAttributes(d *schema.ResourceData, vsws []vpc.VSwitch, meta interface{}) error

Types

type AclType added in v1.20.0

type AclType string

type ActionResult added in v1.13.0

type ActionResult string

type AddTagsArgs

type AddTagsArgs struct {
	ResourceId   string
	ResourceType ecs.TagResourceType //image, instance, snapshot or disk
	RegionId     common.Region
	Tag          []Tag
}

type AdjustmentType added in v1.9.4

type AdjustmentType string

type Catcher added in v1.9.6

type Catcher struct {
	Reason           string
	RetryCount       int
	RetryWaitSeconds int
}

type CenService added in v1.20.0

type CenService struct {
	// contains filtered or unexported fields
}

func (*CenService) CreateCenRouteEntryParas added in v1.20.0

func (s *CenService) CreateCenRouteEntryParas(vtbId string) (childInstanceId string, instanceType string, err error)

func (*CenService) DescribeCenAttachedChildInstanceById added in v1.20.0

func (s *CenService) DescribeCenAttachedChildInstanceById(instanceId, cenId string) (c cbn.ChildInstance, err error)

func (*CenService) DescribeCenBandwidthLimit added in v1.20.0

func (s *CenService) DescribeCenBandwidthLimit(cenId, localRegionId, oppositeRegionId string) (c cbn.CenInterRegionBandwidthLimit, err error)

func (*CenService) DescribeCenBandwidthPackage added in v1.20.0

func (s *CenService) DescribeCenBandwidthPackage(cenBwpId string) (c cbn.CenBandwidthPackage, err error)

func (*CenService) DescribeCenBandwidthPackageById added in v1.20.0

func (s *CenService) DescribeCenBandwidthPackageById(cenBwpId string) (c cbn.CenBandwidthPackage, err error)

func (*CenService) DescribeCenInstance added in v1.20.0

func (s *CenService) DescribeCenInstance(cenId string) (c cbn.Cen, err error)

func (*CenService) DescribePublishedRouteEntriesById added in v1.20.0

func (s *CenService) DescribePublishedRouteEntriesById(id string) (c cbn.PublishedRouteEntry, err error)

func (*CenService) GetCenAndRegionIds added in v1.20.0

func (s *CenService) GetCenAndRegionIds(id string) (retString []string, err error)

func (*CenService) GetCenIdAndAnotherId added in v1.20.0

func (s *CenService) GetCenIdAndAnotherId(id string) (string, string, error)

func (*CenService) GetCenInstanceType added in v1.20.0

func (s *CenService) GetCenInstanceType(id string) (c string, e error)

func (*CenService) SetCenInterRegionBandwidthLimit added in v1.20.0

func (s *CenService) SetCenInterRegionBandwidthLimit(cenId, localRegionId, oppositeRegionId string, bandwidthLimit int) (err error)

func (*CenService) WaitForCenBandwidthPackage added in v1.20.0

func (s *CenService) WaitForCenBandwidthPackage(cenBwpId string, status Status, timeout int) error

func (*CenService) WaitForCenBandwidthPackageAttachment added in v1.20.0

func (s *CenService) WaitForCenBandwidthPackageAttachment(cenBwpId string, status Status, timeout int) error

func (*CenService) WaitForCenBandwidthPackageUpdate added in v1.20.0

func (s *CenService) WaitForCenBandwidthPackageUpdate(cenBwpId string, bandwidth int, timeout int) error

func (*CenService) WaitForCenChildInstanceAttached added in v1.20.0

func (s *CenService) WaitForCenChildInstanceAttached(instanceId string, cenId string, status Status, timeout int) error

func (*CenService) WaitForCenChildInstanceDetached added in v1.20.0

func (s *CenService) WaitForCenChildInstanceDetached(instanceId string, cenId string, timeout int) error

func (*CenService) WaitForCenInstance added in v1.20.0

func (s *CenService) WaitForCenInstance(cenId string, status Status, timeout int) error

func (*CenService) WaitForCenInterRegionBandwidthLimitActive added in v1.20.0

func (s *CenService) WaitForCenInterRegionBandwidthLimitActive(cenId string, localRegionId string, oppositeRegionId string, timeout int) error

func (*CenService) WaitForCenInterRegionBandwidthLimitDestroy added in v1.20.0

func (s *CenService) WaitForCenInterRegionBandwidthLimitDestroy(cenId string, localRegionId string, oppositeRegionId string, timeout int) error

func (*CenService) WaitForRouterEntryPublished added in v1.20.0

func (s *CenService) WaitForRouterEntryPublished(id string, status Status, timeout int) error

type CloudApiService added in v1.20.0

type CloudApiService struct {
	// contains filtered or unexported fields
}

func (*CloudApiService) DescribeApiGroup added in v1.20.0

func (s *CloudApiService) DescribeApiGroup(groupId string) (apiGroup *cloudapi.DescribeApiGroupResponse, err error)

type CmsService added in v1.20.0

type CmsService struct {
	// contains filtered or unexported fields
}

func (*CmsService) BuildCmsAlarmRequest added in v1.20.0

func (s *CmsService) BuildCmsAlarmRequest(id string) *requests.CommonRequest

func (*CmsService) BuildCmsCommonRequest added in v1.20.0

func (s *CmsService) BuildCmsCommonRequest(region string) *requests.CommonRequest

func (*CmsService) DescribeAlarm added in v1.20.0

func (s *CmsService) DescribeAlarm(id string) (alarm cms.AlarmInListAlarm, err error)

func (*CmsService) WaitForCmsAlarm added in v1.20.0

func (s *CmsService) WaitForCmsAlarm(id string, enabled bool, timeout int) error

type ComparisonOperator added in v1.15.0

type ComparisonOperator string

type CsService added in v1.20.0

type CsService struct {
	// contains filtered or unexported fields
}

func (*CsService) DescribeContainerApplication added in v1.20.0

func (s *CsService) DescribeContainerApplication(clusterName, appName string) (app cs.GetProjectResponse, err error)

func (*CsService) GetContainerClusterAndCertsByName added in v1.20.0

func (s *CsService) GetContainerClusterAndCertsByName(name string) (*cs.ClusterType, *cs.ClusterCerts, error)

func (*CsService) GetContainerClusterByName added in v1.20.0

func (s *CsService) GetContainerClusterByName(name string) (cluster cs.ClusterType, err error)

func (*CsService) WaitForContainerApplication added in v1.20.0

func (s *CsService) WaitForContainerApplication(clusterName, appName string, status Status, timeout int) error

type DBAccountPrivilege added in v1.8.0

type DBAccountPrivilege string

type DBAccountType added in v1.8.0

type DBAccountType string

type DestinationResource added in v1.9.3

type DestinationResource string

type Direction added in v1.9.4

type Direction string

type DiskCategory added in v1.9.4

type DiskCategory string

type DiskType added in v1.9.4

type DiskType string

type EcsService added in v1.20.0

type EcsService struct {
	// contains filtered or unexported fields
}

func (*EcsService) AttachKeyPair added in v1.20.0

func (s *EcsService) AttachKeyPair(keyname string, instanceIds []interface{}) error

func (*EcsService) DescribeAvailableResources added in v1.20.0

func (s *EcsService) DescribeAvailableResources(d *schema.ResourceData, meta interface{}, destination DestinationResource) (zoneId string, validZones []ecs.AvailableZone, err error)

func (*EcsService) DescribeDiskById added in v1.20.0

func (s *EcsService) DescribeDiskById(instanceId, diskId string) (disk ecs.Disk, err error)

func (*EcsService) DescribeDisksByType added in v1.20.0

func (s *EcsService) DescribeDisksByType(instanceId string, diskType DiskType) (disk []ecs.Disk, err error)

func (*EcsService) DescribeImageById added in v1.20.0

func (s *EcsService) DescribeImageById(id string) (image ecs.Image, err error)

func (*EcsService) DescribeInstanceAttribute added in v1.20.0

func (s *EcsService) DescribeInstanceAttribute(id string) (instance ecs.DescribeInstanceAttributeResponse, err error)

func (*EcsService) DescribeInstanceById added in v1.20.0

func (s *EcsService) DescribeInstanceById(id string) (instance ecs.Instance, err error)

func (*EcsService) DescribeKeyPair added in v1.20.0

func (s *EcsService) DescribeKeyPair(keyName string) (keypair ecs.KeyPair, err error)

func (*EcsService) DescribeSecurityGroupAttribute added in v1.20.0

func (s *EcsService) DescribeSecurityGroupAttribute(securityGroupId string) (group ecs.DescribeSecurityGroupAttributeResponse, err error)

func (*EcsService) DescribeSecurityGroupRule added in v1.20.0

func (s *EcsService) DescribeSecurityGroupRule(groupId, direction, ipProtocol, portRange, nicType, cidr_ip, policy string, priority int) (rule ecs.Permission, err error)

func (*EcsService) DescribeTags added in v1.20.0

func (s *EcsService) DescribeTags(resourceId string, resourceType TagResourceType) (tags []ecs.Tag, err error)

func (*EcsService) DescribeZone added in v1.20.0

func (s *EcsService) DescribeZone(zoneID string) (zone ecs.Zone, err error)

DescribeZone validate zoneId is valid in region

func (*EcsService) DiskAvailable added in v1.20.0

func (s *EcsService) DiskAvailable(zone ecs.Zone, diskCategory DiskCategory) error

func (*EcsService) InstanceTypeValidation added in v1.20.0

func (s *EcsService) InstanceTypeValidation(targetType, zoneId string, validZones []ecs.AvailableZone) error

func (*EcsService) JoinSecurityGroups added in v1.20.0

func (s *EcsService) JoinSecurityGroups(instanceId string, securityGroupIds []string) error

func (*EcsService) JudgeRegionValidation added in v1.20.0

func (s *EcsService) JudgeRegionValidation(key, region string) error

func (*EcsService) LeaveSecurityGroups added in v1.20.0

func (s *EcsService) LeaveSecurityGroups(instanceId string, securityGroupIds []string) error

func (*EcsService) QueryInstanceSystemDisk added in v1.20.0

func (s *EcsService) QueryInstanceSystemDisk(id string) (disk ecs.Disk, err error)

func (*EcsService) QueryInstancesWithKeyPair added in v1.20.0

func (s *EcsService) QueryInstancesWithKeyPair(instanceIdsStr, keypair string) (instanceIds []string, instances []ecs.Instance, err error)

func (*EcsService) ResourceAvailable added in v1.20.0

func (s *EcsService) ResourceAvailable(zone ecs.Zone, resourceType ResourceType) error

ResourceAvailable check resource available for zone

func (*EcsService) WaitForEcsDisk added in v1.20.0

func (s *EcsService) WaitForEcsDisk(diskId string, status Status, timeout int) error

WaitForInstance waits for instance to given status

func (*EcsService) WaitForEcsInstance added in v1.20.0

func (s *EcsService) WaitForEcsInstance(instanceId string, status Status, timeout int) error

WaitForInstance waits for instance to given status

type Effect added in v1.2.0

type Effect string
const (
	Allow Effect = "Allow"
	Deny  Effect = "Deny"
)

type Engine added in v1.8.0

type Engine string

type EssService added in v1.20.0

type EssService struct {
	// contains filtered or unexported fields
}

func (*EssService) ActiveScalingConfigurationById added in v1.20.0

func (s *EssService) ActiveScalingConfigurationById(sgId, configId string) error

func (*EssService) DeleteScalingGroupById added in v1.20.0

func (s *EssService) DeleteScalingGroupById(sgId string) error

func (*EssService) DeleteScalingRuleById added in v1.20.0

func (s *EssService) DeleteScalingRuleById(ruleId string) error

func (*EssService) DeleteScheduleById added in v1.20.0

func (s *EssService) DeleteScheduleById(scheduleId string) error

func (*EssService) DescribeEssAlarmById added in v1.20.0

func (s *EssService) DescribeEssAlarmById(alarmTaskId string) (alarm ess.Alarm, err error)

func (*EssService) DescribeLifecycleHookById added in v1.20.0

func (s *EssService) DescribeLifecycleHookById(hookId string) (hook ess.LifecycleHook, err error)

func (*EssService) DescribeScalingConfifurations added in v1.20.0

func (s *EssService) DescribeScalingConfifurations(groupId string) (configs []ess.ScalingConfiguration, err error)

func (*EssService) DescribeScalingConfigurationById added in v1.20.0

func (s *EssService) DescribeScalingConfigurationById(configId string) (config ess.ScalingConfiguration, err error)

func (*EssService) DescribeScalingGroupById added in v1.20.0

func (s *EssService) DescribeScalingGroupById(sgId string) (group ess.ScalingGroup, err error)

func (*EssService) DescribeScalingInstances added in v1.20.0

func (srv *EssService) DescribeScalingInstances(groupId, configurationId string, instanceIds []string, creationType string) (instances []ess.ScalingInstance, err error)

func (*EssService) DescribeScalingRuleById added in v1.20.0

func (s *EssService) DescribeScalingRuleById(sgId, ruleId string) (rule ess.ScalingRule, err error)

func (*EssService) DescribeScheduleById added in v1.20.0

func (s *EssService) DescribeScheduleById(scheduleId string) (task ess.ScheduledTask, err error)

func (*EssService) EssRemoveInstances added in v1.20.0

func (srv *EssService) EssRemoveInstances(groupId string, instanceIds []string) error

func (*EssService) WaitForScalingGroup added in v1.20.0

func (s *EssService) WaitForScalingGroup(groupId string, status Status, timeout int) error

WaitForScalingGroup waits for group to given status

type FcService added in v1.20.0

type FcService struct {
	// contains filtered or unexported fields
}

func (*FcService) DescribeFcFunction added in v1.20.0

func (s *FcService) DescribeFcFunction(service, name string) (function *fc.GetFunctionOutput, err error)

func (*FcService) DescribeFcService added in v1.20.0

func (s *FcService) DescribeFcService(name string) (service *fc.GetServiceOutput, err error)

func (*FcService) DescribeFcTrigger added in v1.20.0

func (s *FcService) DescribeFcTrigger(service, function, name string) (trigger *fc.GetTriggerOutput, err error)

type FlagType added in v1.11.0

type FlagType string

type GroupInnerAccessPolicy added in v1.9.4

type GroupInnerAccessPolicy string

type GroupRuleNicType

type GroupRuleNicType string

type GroupRulePolicy

type GroupRulePolicy string

type HaVipService added in v1.20.0

type HaVipService struct {
	// contains filtered or unexported fields
}

func (*HaVipService) DescribeHaVip added in v1.20.0

func (s *HaVipService) DescribeHaVip(haVipId string) (v vpc.HaVip, err error)

func (*HaVipService) DescribeHaVipAttachment added in v1.20.0

func (s *HaVipService) DescribeHaVipAttachment(haVipId string, instanceId string) (err error)

func (*HaVipService) WaitForHaVip added in v1.20.0

func (s *HaVipService) WaitForHaVip(haVipId string, status Status, timeout int) error

func (*HaVipService) WaitForHaVipAttachment added in v1.20.0

func (s *HaVipService) WaitForHaVipAttachment(haVipId string, instanceId string, timeout int) error

type HealthCheckHttpCodeType added in v1.11.0

type HealthCheckHttpCodeType string

type HealthCheckType added in v1.11.0

type HealthCheckType string

type IPType added in v1.8.0

type IPType string

type IPVersion added in v1.20.0

type IPVersion string

type IkeConfig added in v1.14.0

type IkeConfig struct {
	IkeAuthAlg  string
	IkeEncAlg   string
	IkeLifetime int
	IkeMode     string
	IkePfs      string
	IkeVersion  string
	LocalId     string
	RemoteId    string
	Psk         string
}

type ImageOwnerAlias added in v1.9.4

type ImageOwnerAlias string

type IndexFiledType added in v1.9.5

type IndexFiledType string

type InstanceAccessedByType added in v1.10.0

type InstanceAccessedByType string

type InstanceCreationType added in v1.9.4

type InstanceCreationType string

type InstanceNetWork

type InstanceNetWork string

type InternetChargeType added in v1.8.1

type InternetChargeType string

type Invoker added in v1.9.6

type Invoker struct {
	// contains filtered or unexported fields
}

func NewInvoker added in v1.9.6

func NewInvoker() Invoker

func (*Invoker) AddCatcher added in v1.9.6

func (a *Invoker) AddCatcher(catcher Catcher)

func (*Invoker) Run added in v1.9.6

func (a *Invoker) Run(f func() error) error

type IpsecConfig added in v1.14.0

type IpsecConfig struct {
	IpsecAuthAlg  string
	IpsecEncAlg   string
	IpsecLifetime int
	IpsecPfs      string
}

type KeyState added in v1.7.0

type KeyState string

type KvstoreService added in v1.20.0

type KvstoreService struct {
	// contains filtered or unexported fields
}

func (*KvstoreService) DescribeRKVInstanceById added in v1.20.0

func (s *KvstoreService) DescribeRKVInstanceById(id string) (instance *r_kvstore.DBInstanceAttribute, err error)

func (*KvstoreService) DescribeRKVInstancebackupPolicy added in v1.20.0

func (s *KvstoreService) DescribeRKVInstancebackupPolicy(id string) (policy *r_kvstore.DescribeBackupPolicyResponse, err error)

func (*KvstoreService) WaitForRKVInstance added in v1.20.0

func (s *KvstoreService) WaitForRKVInstance(instanceId string, status Status, timeout int) error

type LifecycleRuleStatus added in v0.1.1

type LifecycleRuleStatus string

type LifecycleTransition added in v1.13.0

type LifecycleTransition string

type ListenerErr

type ListenerErr struct {
	ErrType string
	Err     error
}

func (*ListenerErr) Error

func (e *ListenerErr) Error() string

type LoadBalancerSpecType added in v1.11.0

type LoadBalancerSpecType string

type LogService added in v1.20.0

type LogService struct {
	// contains filtered or unexported fields
}

func (*LogService) DescribeLogMachineGroup added in v1.20.0

func (s *LogService) DescribeLogMachineGroup(projectName, groupName string) (group *sls.MachineGroup, err error)

func (*LogService) DescribeLogProject added in v1.20.0

func (s *LogService) DescribeLogProject(name string) (project *sls.LogProject, err error)

func (*LogService) DescribeLogStore added in v1.20.0

func (s *LogService) DescribeLogStore(projectName, name string) (store *sls.LogStore, err error)

func (*LogService) DescribeLogStoreIndex added in v1.20.0

func (s *LogService) DescribeLogStoreIndex(projectName, name string) (index *sls.Index, err error)

type MetricType added in v1.15.0

type MetricType string

type MnsService added in v1.20.0

type MnsService struct {
}

func (*MnsService) GetTopicNameAndSubscriptionName added in v1.20.0

func (s *MnsService) GetTopicNameAndSubscriptionName(subscriptionId string) (string, string)

func (*MnsService) QueueNotExistFunc added in v1.20.0

func (s *MnsService) QueueNotExistFunc(err error) bool

func (*MnsService) SubscriptionNotExistFunc added in v1.20.0

func (s *MnsService) SubscriptionNotExistFunc(err error) bool

func (*MnsService) TopicNotExistFunc added in v1.20.0

func (s *MnsService) TopicNotExistFunc(err error) bool

type MultiAzPolicy added in v1.16.0

type MultiAzPolicy string

type NatGatewaySpec added in v1.8.1

type NatGatewaySpec string

type NetType added in v1.8.0

type NetType string

type NetworkType added in v1.8.0

type NetworkType string

type NextHopType added in v1.9.4

type NextHopType string

type OptimizedType added in v1.9.3

type OptimizedType string

type OssService added in v1.20.0

type OssService struct {
	// contains filtered or unexported fields
}

func (*OssService) QueryOssBucketById added in v1.20.0

func (s *OssService) QueryOssBucketById(id string) (info *oss.BucketInfo, err error)

type OtsInstanceType added in v1.10.0

type OtsInstanceType string

type OtsService added in v1.20.0

type OtsService struct {
	// contains filtered or unexported fields
}

func (*OtsService) DeleteOtsTable added in v1.20.0

func (s *OtsService) DeleteOtsTable(instanceName, tableName string) (bool, error)

func (*OtsService) DescribeOtsInstance added in v1.20.0

func (s *OtsService) DescribeOtsInstance(name string) (inst ots.InstanceInfo, err error)

func (*OtsService) DescribeOtsInstanceVpc added in v1.20.0

func (s *OtsService) DescribeOtsInstanceVpc(name string) (inst ots.VpcInfo, err error)

func (*OtsService) DescribeOtsTable added in v1.20.0

func (s *OtsService) DescribeOtsTable(instanceName, tableName string) (table *tablestore.DescribeTableResponse, err error)

func (*OtsService) WaitForOtsInstance added in v1.20.0

func (s *OtsService) WaitForOtsInstance(name string, status Status, timeout int) error

type PayType added in v1.8.0

type PayType string

type Period added in v1.15.0

type Period int

type Policy added in v1.2.0

type Policy struct {
	Statement []PolicyStatement
	Version   string
}

type PolicyStatement added in v1.2.0

type PolicyStatement struct {
	Effect   Effect
	Action   interface{}
	Resource interface{}
}

type PrimaryKeyTypeString added in v1.9.2

type PrimaryKeyTypeString string

type Principal added in v1.2.0

type Principal struct {
	Service []string
	RAM     []string
}

type Protocol

type Protocol string

Protocol represents network protocol

type ProviderError added in v1.8.1

type ProviderError struct {
	// contains filtered or unexported fields
}

An Error represents a custom error for Terraform failure response

func (*ProviderError) Error added in v1.8.1

func (e *ProviderError) Error() string

func (*ProviderError) ErrorCode added in v1.8.1

func (err *ProviderError) ErrorCode() string

func (*ProviderError) Message added in v1.8.1

func (err *ProviderError) Message() string

type PvtzService added in v1.20.0

type PvtzService struct {
	// contains filtered or unexported fields
}

func (*PvtzService) DescribePvtzZoneInfo added in v1.20.0

func (s *PvtzService) DescribePvtzZoneInfo(zoneId string) (zone pvtz.DescribeZoneInfoResponse, err error)

func (*PvtzService) DescribeZoneRecord added in v1.20.0

func (s *PvtzService) DescribeZoneRecord(recordId int, zoneId string) (record pvtz.Record, err error)

type RamService added in v1.20.0

type RamService struct {
	// contains filtered or unexported fields
}

func (*RamService) AssemblePolicyDocument added in v1.20.0

func (s *RamService) AssemblePolicyDocument(document []interface{}, version string) (string, error)

func (*RamService) AssembleRolePolicyDocument added in v1.20.0

func (s *RamService) AssembleRolePolicyDocument(ramUser, service []interface{}, version string) (string, error)

func (*RamService) GetIntersection added in v1.20.0

func (s *RamService) GetIntersection(dataMap []map[string]interface{}, allDataMap map[string]interface{}) (allData []interface{})

func (*RamService) JudgeRolePolicyPrincipal added in v1.20.0

func (s *RamService) JudgeRolePolicyPrincipal(roleName string) error

Judge whether the role policy contains service "ecs.aliyuncs.com"

func (*RamService) ParsePolicyDocument added in v1.20.0

func (s *RamService) ParsePolicyDocument(policyDocument string) (statement []map[string]interface{}, version string, err error)

func (*RamService) ParseRolePolicyDocument added in v1.20.0

func (s *RamService) ParseRolePolicyDocument(policyDocument string) (RolePolicy, error)

type RdsService added in v1.20.0

type RdsService struct {
	// contains filtered or unexported fields
}

func (*RdsService) AllocateDBPublicConnection added in v1.20.0

func (s *RdsService) AllocateDBPublicConnection(instanceId, prefix, port string) error

func (*RdsService) DescribeBackupPolicy added in v1.20.0

func (s *RdsService) DescribeBackupPolicy(instanceId string) (policy *rds.DescribeBackupPolicyResponse, err error)

func (*RdsService) DescribeDBInstanceById added in v1.20.0

func (s *RdsService) DescribeDBInstanceById(id string) (instance *rds.DBInstanceAttribute, err error)
_______________                      _______________                       _______________
|              | ______param______\  |              |  _____request_____\  |              |
|   Business   |                     |    Service   |                      |    SDK/API   |
|              | __________________  |              |  __________________  |              |
|______________| \    (obj, err)     |______________|  \ (status, cont)    |______________|
                    |                                    |
                    |A. {instance, nil}                  |a. {200, content}
                    |B. {nil, error}                     |b. {200, nil}
               					  |c. {4xx, nil}

The API return 200 for resource not found. When getInstance is empty, then throw InstanceNotfound error. That the business layer only need to check error.

func (*RdsService) DescribeDBInstanceNetInfoByIpType added in v1.20.0

func (s *RdsService) DescribeDBInstanceNetInfoByIpType(instanceId string, ipType IPType) (*rds.DBInstanceNetInfo, error)

func (*RdsService) DescribeDBInstanceNetInfos added in v1.20.0

func (s *RdsService) DescribeDBInstanceNetInfos(instanceId string) ([]rds.DBInstanceNetInfo, error)

func (*RdsService) DescribeDBSecurityIps added in v1.20.0

func (s *RdsService) DescribeDBSecurityIps(instanceId string) (ips []rds.DBInstanceIPArray, err error)

func (*RdsService) DescribeDatabaseAccount added in v1.20.0

func (s *RdsService) DescribeDatabaseAccount(instanceId, accountName string) (ds *rds.DBInstanceAccount, err error)

func (*RdsService) DescribeDatabaseByName added in v1.20.0

func (s *RdsService) DescribeDatabaseByName(instanceId, dbName string) (ds *rds.Database, err error)

func (*RdsService) DescribeMultiIZByRegion added in v1.20.0

func (s *RdsService) DescribeMultiIZByRegion() (izs []string, err error)

return multiIZ list of current region

func (*RdsService) GetSecurityIps added in v1.20.0

func (s *RdsService) GetSecurityIps(instanceId string) ([]string, error)

func (*RdsService) GrantAccountPrivilege added in v1.20.0

func (s *RdsService) GrantAccountPrivilege(instanceId, account, dbName, privilege string) error

func (*RdsService) ModifyDBBackupPolicy added in v1.20.0

func (s *RdsService) ModifyDBBackupPolicy(instanceId, backupTime, backupPeriod, retentionPeriod, backupLog, LogBackupRetentionPeriod string) error

func (*RdsService) ModifyDBSecurityIps added in v1.20.0

func (s *RdsService) ModifyDBSecurityIps(instanceId, ips string) error

func (*RdsService) NotFoundDBInstance added in v1.20.0

func (s *RdsService) NotFoundDBInstance(err error) bool

func (*RdsService) ReleaseDBPublicConnection added in v1.20.0

func (s *RdsService) ReleaseDBPublicConnection(instanceId, connection string) error

func (*RdsService) RevokeAccountPrivilege added in v1.20.0

func (s *RdsService) RevokeAccountPrivilege(instanceId, account, dbName string) error

func (*RdsService) TransformPeriod2Time added in v1.20.0

func (s *RdsService) TransformPeriod2Time(period int, chargeType string) (ut int, tt common.TimeType)

turn period to TimeType

func (*RdsService) TransformTime2Period added in v1.20.0

func (s *RdsService) TransformTime2Period(ut int, tt common.TimeType) (period int)

turn TimeType to Period

func (*RdsService) WaitForAccount added in v1.20.0

func (s *RdsService) WaitForAccount(instanceId string, accountName string, status Status, timeout int) error

func (*RdsService) WaitForAccountPrivilege added in v1.20.0

func (s *RdsService) WaitForAccountPrivilege(instanceId, accountName, dbName, privilege string, timeout int) error

func (*RdsService) WaitForAccountPrivilegeRevoked added in v1.20.0

func (s *RdsService) WaitForAccountPrivilegeRevoked(instanceId, accountName, dbName string, timeout int) error

func (*RdsService) WaitForDBConnection added in v1.20.0

func (s *RdsService) WaitForDBConnection(instanceId string, netType IPType, timeout int) error

func (*RdsService) WaitForDBInstance added in v1.20.0

func (s *RdsService) WaitForDBInstance(instanceId string, status Status, timeout int) error

WaitForInstance waits for instance to given status

type RecurrenceType added in v1.9.4

type RecurrenceType string

type RegionalFeature added in v1.14.0

type RegionalFeature string

type RemoveTagsArgs

type RemoveTagsArgs struct {
	ResourceId   string
	ResourceType ecs.TagResourceType //image, instance, snapshot or disk
	RegionId     common.Region
	Tag          []Tag
}

type RenewalStatus added in v1.9.3

type RenewalStatus string

type ResourceType added in v1.8.0

type ResourceType string

type Role added in v1.8.1

type Role string

type RolePolicy added in v1.2.0

type RolePolicy struct {
	Statement []RolePolicyStatement
	Version   string
}

type RolePolicyStatement added in v1.2.0

type RolePolicyStatement struct {
	Effect    Effect
	Action    string
	Principal Principal
}

type RouteTableService added in v1.20.0

type RouteTableService struct {
	// contains filtered or unexported fields
}

func (*RouteTableService) DescribeRouteTable added in v1.20.0

func (s *RouteTableService) DescribeRouteTable(routeTableId string) (v vpc.RouterTableListType, err error)

func (*RouteTableService) DescribeRouteTableAttachment added in v1.20.0

func (s *RouteTableService) DescribeRouteTableAttachment(routeTableId string, vSwitchId string) (err error)

func (*RouteTableService) GetRouteTableIdAndVSwitchId added in v1.20.0

func (s *RouteTableService) GetRouteTableIdAndVSwitchId(d *schema.ResourceData, meta interface{}) (string, string, error)

func (*RouteTableService) WaitForRouteTable added in v1.20.0

func (s *RouteTableService) WaitForRouteTable(routeTableId string, timeout int) error

func (*RouteTableService) WaitForRouteTableAttachment added in v1.20.0

func (s *RouteTableService) WaitForRouteTableAttachment(routeTableId string, vSwitchId string, timeout int) error

type RouterType added in v1.8.1

type RouterType string

type SchedulerType added in v1.11.0

type SchedulerType string

type SecurityGroup added in v1.9.0

type SecurityGroup struct {
	Attributes   ecs.DescribeSecurityGroupAttributeResponse
	CreationTime string
	Tags         ecs.TagsInDescribeSecurityGroups
}

type SlbService added in v1.20.0

type SlbService struct {
	// contains filtered or unexported fields
}

func (*SlbService) BuildSlbCommonRequest added in v1.20.0

func (s *SlbService) BuildSlbCommonRequest() *requests.CommonRequest

func (*SlbService) DescribeLoadBalancerAttribute added in v1.20.0

func (s *SlbService) DescribeLoadBalancerAttribute(slbId string) (loadBalancer *slb.DescribeLoadBalancerAttributeResponse, err error)

func (*SlbService) DescribeLoadBalancerListenerAttribute added in v1.20.0

func (s *SlbService) DescribeLoadBalancerListenerAttribute(loadBalancerId string, port int, protocol Protocol) (listener map[string]interface{}, err error)

func (*SlbService) DescribeLoadBalancerRuleAttribute added in v1.20.0

func (s *SlbService) DescribeLoadBalancerRuleAttribute(ruleId string) (*slb.DescribeRuleAttributeResponse, error)

func (*SlbService) DescribeLoadBalancerRuleId added in v1.20.0

func (s *SlbService) DescribeLoadBalancerRuleId(slbId string, port int, domain, url string) (string, error)

func (*SlbService) DescribeSlbVServerGroupAttribute added in v1.20.0

func (s *SlbService) DescribeSlbVServerGroupAttribute(groupId string) (*slb.DescribeVServerGroupAttributeResponse, error)

func (*SlbService) FlattenSlbAclEntryMappings added in v1.20.0

func (s *SlbService) FlattenSlbAclEntryMappings(list []slb.AclEntry) []map[string]interface{}

Flattens an array of slb.AclEntry into a []map[string]string

func (*SlbService) SlbAddAccessControlListEntry added in v1.20.0

func (s *SlbService) SlbAddAccessControlListEntry(list []interface{}, aclId string) error

func (*SlbService) SlbRemoveAccessControlListEntry added in v1.20.0

func (s *SlbService) SlbRemoveAccessControlListEntry(list []interface{}, aclId string) error

func (*SlbService) WaitForListener added in v1.20.0

func (s *SlbService) WaitForListener(loadBalancerId string, port int, protocol Protocol, status Status, timeout int) error

func (*SlbService) WaitForLoadBalancer added in v1.20.0

func (s *SlbService) WaitForLoadBalancer(loadBalancerId string, status Status, timeout int) error

type Spec added in v1.8.1

type Spec string

type SpotStrategyType added in v1.9.4

type SpotStrategyType string

type Statistics added in v1.15.0

type Statistics string

type Status added in v1.8.0

type Status string

type StickySessionType added in v1.11.0

type StickySessionType string

type Tag

type Tag struct {
	Key   string
	Value string
}

type TagResourceType added in v1.9.4

type TagResourceType string

type TimeType added in v1.8.0

type TimeType string

type VpcService added in v1.20.0

type VpcService struct {
	// contains filtered or unexported fields
}

func (*VpcService) ActivateRouterInterface added in v1.20.0

func (s *VpcService) ActivateRouterInterface(interfaceId string) error

func (*VpcService) DeactivateRouterInterface added in v1.20.0

func (s *VpcService) DeactivateRouterInterface(interfaceId string) error

func (*VpcService) DescribeEipAddress added in v1.20.0

func (s *VpcService) DescribeEipAddress(allocationId string) (eip vpc.EipAddress, err error)

func (*VpcService) DescribeForwardEntry added in v1.20.0

func (s *VpcService) DescribeForwardEntry(forwardTableId string, forwardEntryId string) (entry vpc.ForwardTableEntry, err error)

func (*VpcService) DescribeNatGateway added in v1.20.0

func (s *VpcService) DescribeNatGateway(natGatewayId string) (nat vpc.NatGateway, err error)

func (*VpcService) DescribeRouterInterface added in v1.20.0

func (s *VpcService) DescribeRouterInterface(regionId, interfaceId string) (ri vpc.RouterInterfaceTypeInDescribeRouterInterfaces, err error)

func (*VpcService) DescribeSnatEntry added in v1.20.0

func (s *VpcService) DescribeSnatEntry(snatTableId string, snatEntryId string) (snat vpc.SnatTableEntry, err error)

func (*VpcService) DescribeVpc added in v1.20.0

func (s *VpcService) DescribeVpc(vpcId string) (v vpc.DescribeVpcAttributeResponse, err error)

func (*VpcService) DescribeVswitch added in v1.20.0

func (s *VpcService) DescribeVswitch(vswitchId string) (v vpc.DescribeVSwitchAttributesResponse, err error)

func (*VpcService) QueryRouteEntry added in v1.20.0

func (s *VpcService) QueryRouteEntry(routeTableId, cidrBlock, nextHopType, nextHopId string) (rn vpc.RouteEntry, err error)

func (*VpcService) QueryRouteTableById added in v1.20.0

func (s *VpcService) QueryRouteTableById(routeTableId string) (rt vpc.RouteTable, err error)

func (*VpcService) WaitForAllRouteEntries added in v1.20.0

func (s *VpcService) WaitForAllRouteEntries(routeTableId string, status Status, timeout int) error

func (*VpcService) WaitForEip added in v1.20.0

func (s *VpcService) WaitForEip(allocationId string, status Status, timeout int) error

func (*VpcService) WaitForRouterInterface added in v1.20.0

func (s *VpcService) WaitForRouterInterface(regionId, interfaceId string, status Status, timeout int) error

func (*VpcService) WaitForVSwitch added in v1.20.0

func (s *VpcService) WaitForVSwitch(vswitchId string, status Status, timeout int) error

func (*VpcService) WaitForVpc added in v1.20.0

func (s *VpcService) WaitForVpc(vpcId string, status Status, timeout int) error

type VpnGatewayService added in v1.20.0

type VpnGatewayService struct {
	// contains filtered or unexported fields
}

func (*VpnGatewayService) AssembleIkeConfig added in v1.20.0

func (s *VpnGatewayService) AssembleIkeConfig(ikeCfgParam []interface{}) (string, error)

func (*VpnGatewayService) AssembleIpsecConfig added in v1.20.0

func (s *VpnGatewayService) AssembleIpsecConfig(ipsecCfgParam []interface{}) (string, error)

func (*VpnGatewayService) AssembleNetworkSubnetToString added in v1.20.0

func (s *VpnGatewayService) AssembleNetworkSubnetToString(list []interface{}) string

func (*VpnGatewayService) DescribeCustomerGateway added in v1.20.0

func (s *VpnGatewayService) DescribeCustomerGateway(cgwId string) (v vpc.DescribeCustomerGatewayResponse, err error)

func (*VpnGatewayService) DescribeSslVpnClientCert added in v1.20.0

func (s *VpnGatewayService) DescribeSslVpnClientCert(id string) (v vpc.DescribeSslVpnClientCertResponse, err error)

func (*VpnGatewayService) DescribeSslVpnServer added in v1.20.0

func (s *VpnGatewayService) DescribeSslVpnServer(sslId string) (v vpc.SslVpnServer, err error)

func (*VpnGatewayService) DescribeVpnConnection added in v1.20.0

func (s *VpnGatewayService) DescribeVpnConnection(id string) (v vpc.DescribeVpnConnectionResponse, err error)

func (*VpnGatewayService) DescribeVpnGateway added in v1.20.0

func (s *VpnGatewayService) DescribeVpnGateway(vpnId string) (v vpc.DescribeVpnGatewayResponse, err error)

func (*VpnGatewayService) ParseIkeConfig added in v1.20.0

func (s *VpnGatewayService) ParseIkeConfig(ike vpc.IkeConfig) (ikeConfigs []map[string]interface{})

func (*VpnGatewayService) ParseIpsecConfig added in v1.20.0

func (s *VpnGatewayService) ParseIpsecConfig(ipsec vpc.IpsecConfig) (ipsecConfigs []map[string]interface{})

func (*VpnGatewayService) WaitForCustomerGateway added in v1.20.0

func (s *VpnGatewayService) WaitForCustomerGateway(id string, status Status, timeout int) error

func (*VpnGatewayService) WaitForSslVpnClientCert added in v1.20.0

func (s *VpnGatewayService) WaitForSslVpnClientCert(id string, status Status, timeout int) error

func (*VpnGatewayService) WaitForVpn added in v1.20.0

func (s *VpnGatewayService) WaitForVpn(vpnId string, status Status, timeout int) error

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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