alicloud

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2018 License: MPL-2.0 Imports: 63 Imported by: 0

Documentation

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")
)
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")
)
View Source
const (
	ECSCode     = ServiceCode("ECS")
	ESSCode     = ServiceCode("ESS")
	RAMCode     = ServiceCode("RAM")
	VPCCode     = ServiceCode("VPC")
	SLBCode     = ServiceCode("SLB")
	RDSCode     = ServiceCode("RDS")
	OSSCode     = ServiceCode("OSS")
	CONTAINCode = ServiceCode("CS")
	DOMAINCode  = ServiceCode("DOMAIN")
	CDNCode     = ServiceCode("CDN")
	CMSCode     = ServiceCode("CMS")
	KMSCode     = ServiceCode("KMS")
	OTSCode     = ServiceCode("OTS")
	PVTZCode    = ServiceCode("PVTZ")
	LOGCode     = ServiceCode("LOG")
	FCCode      = ServiceCode("FC")
	DDSCode     = ServiceCode("DDS")
	STSCode     = ServiceCode("STS")
	CENCode     = ServiceCode("CEN")
	KVSTORECode = ServiceCode("KVSTORE")
)
View Source
const (
	ECSDomain = CommonRequestDomain("ecs.aliyuncs.com")
	ESSDomain = CommonRequestDomain("ess.aliyuncs.com")
)
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"
	// 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"

	// 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"
	// kv-store
	InvalidKVStoreInstanceIdNotFound = "InvalidInstanceId.NotFound"
)
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 (
	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"
)
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 ApiVersion20140515 = "2014-05-15"
View Source
const ApiVersion20140526 = "2014-05-26"
View Source
const ApiVersion20140828 = "2014-08-28"
View Source
const ApiVersion20160428 = "2016-04-28"
View Source
const ApiVersion20160815 = "2016-08-15"
View Source
const BackendServerPort = -520
View Source
const BusinessInfoKey = "Terraform"
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 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 DOT_SEPARATED = "."
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 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 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 AssembleIkeConfig

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

func AssembleIpsecConfig

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

func AssembleNetworkSubnetToString

func AssembleNetworkSubnetToString(list []interface{}) string

func AssemblePolicyDocument

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

func AssembleRolePolicyDocument

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

func BoolPointer

func BoolPointer(b bool) *bool

func BuildCmsCommonRequest

func BuildCmsCommonRequest(region string) *requests.CommonRequest

func CommonRequestInit

func CommonRequestInit(region string, code ServiceCode, domain CommonRequestDomain) *requests.CommonRequest

func CompareJsonTemplateAreEquivalent

func CompareJsonTemplateAreEquivalent(tem1, tem2 string) (bool, error)

func CompareYmalTemplateAreEquivalent

func CompareYmalTemplateAreEquivalent(tem1, tem2 string) (bool, error)

func ConvertIntegerToInt

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

func EssCommonRequestInit

func EssCommonRequestInit(region string, code ServiceCode, domain CommonRequestDomain) *requests.CommonRequest

func GetAllRouterInterfaceSpec

func GetAllRouterInterfaceSpec() (specifications []string)

func GetIntersection

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

func GetNotFoundErrorFromString

func GetNotFoundErrorFromString(str string) error

func GetNotFoundMessage

func GetNotFoundMessage(product, id string) string

func GetTimeErrorFromString

func GetTimeErrorFromString(str string) error

func GetTimeoutMessage

func GetTimeoutMessage(product, status string) string

func GetUserHomeDir

func GetUserHomeDir() (string, error)

func Int32Pointer

func Int32Pointer(i int32) *int32

func IsExceptedError

func IsExceptedError(err error, expectCode string) bool

func IsExceptedErrors

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

func LoadEndpoint

func LoadEndpoint(region string, serviceCode ServiceCode) string

func NotFoundDBInstance

func NotFoundDBInstance(err error) bool

func NotFoundError

func NotFoundError(err error) bool

func ParseIkeConfig

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

func ParseIpsecConfig

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

func ParsePolicyDocument

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

func Provider

func Provider() terraform.ResourceProvider

Provider returns a schema.Provider for alicloud

func RamEntityNotExist

func RamEntityNotExist(err error) bool

func RemoveTags

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

func String

func String(v string) *string

func StringPointer

func StringPointer(s string) *string

func TransformPeriod2Time

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

turn period to TimeType

func TransformTime2Period

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

turn TimeType to Period

func Trim

func Trim(v string) string

Remove useless blank in the string.

func VSwitchesDecriptionAttributes

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

Types

type ActionResult

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

type AdjustmentType string

type AliyunClient

type AliyunClient struct {
	Region   common.Region
	RegionId string
	//In order to build ots table client, add accesskey and secretkey in aliyunclient temporarily.
	AccessKey       string
	SecretKey       string
	SecurityToken   string
	OtsInstanceName string
	// contains filtered or unexported fields
}

AliyunClient of aliyun

func (*AliyunClient) AccountId

func (client *AliyunClient) AccountId() (string, error)

func (*AliyunClient) ActivateRouterInterface

func (client *AliyunClient) ActivateRouterInterface(interfaceId string) error

func (*AliyunClient) ActiveScalingConfigurationById

func (client *AliyunClient) ActiveScalingConfigurationById(sgId, configId string) error

func (*AliyunClient) AllocateDBPublicConnection

func (client *AliyunClient) AllocateDBPublicConnection(instanceId, prefix, port string) error

func (*AliyunClient) AttachKeyPair

func (client *AliyunClient) AttachKeyPair(keyname string, instanceIds []interface{}) error

func (*AliyunClient) BuildCmsAlarmRequest

func (client *AliyunClient) BuildCmsAlarmRequest(id string) *requests.CommonRequest

func (*AliyunClient) BuildSlbCommonRequest

func (client *AliyunClient) BuildSlbCommonRequest() *requests.CommonRequest

func (*AliyunClient) BuildVpcCommonRequest

func (client *AliyunClient) BuildVpcCommonRequest(region string) *requests.CommonRequest

func (*AliyunClient) DeactivateRouterInterface

func (client *AliyunClient) DeactivateRouterInterface(interfaceId string) error

func (*AliyunClient) DeleteOtsTable

func (client *AliyunClient) DeleteOtsTable(instanceName, tableName string) (bool, error)

func (*AliyunClient) DeleteScalingGroupById

func (client *AliyunClient) DeleteScalingGroupById(sgId string) error

func (*AliyunClient) DeleteScalingRuleById

func (client *AliyunClient) DeleteScalingRuleById(ruleId string) error

func (*AliyunClient) DeleteScheduleById

func (client *AliyunClient) DeleteScheduleById(scheduleId string) error

func (*AliyunClient) DescribeAlarm

func (client *AliyunClient) DescribeAlarm(id string) (alarm cms.AlarmInListAlarm, err error)

func (*AliyunClient) DescribeAvailableResources

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

func (*AliyunClient) DescribeBackupPolicy

func (client *AliyunClient) DescribeBackupPolicy(instanceId string) (policy *rds.DescribeBackupPolicyResponse, err error)

func (*AliyunClient) DescribeCenAttachedChildInstanceById

func (client *AliyunClient) DescribeCenAttachedChildInstanceById(instanceId, cenId string) (c cbn.ChildInstance, err error)

func (*AliyunClient) DescribeCenBandwidthPackage

func (client *AliyunClient) DescribeCenBandwidthPackage(cenBwpId string) (c cbn.CenBandwidthPackage, err error)

func (*AliyunClient) DescribeCenInstance

func (client *AliyunClient) DescribeCenInstance(cenId string) (c cbn.Cen, err error)

func (*AliyunClient) DescribeContainerApplication

func (client *AliyunClient) DescribeContainerApplication(clusterName, appName string) (app cs.GetProjectResponse, err error)

func (*AliyunClient) DescribeCustomerGateway

func (client *AliyunClient) DescribeCustomerGateway(cgwId string) (v vpc.DescribeCustomerGatewayResponse, err error)

func (*AliyunClient) DescribeDBInstanceById

func (client *AliyunClient) 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 (*AliyunClient) DescribeDBInstanceNetInfoByIpType

func (client *AliyunClient) DescribeDBInstanceNetInfoByIpType(instanceId string, ipType IPType) (*rds.DBInstanceNetInfo, error)

func (*AliyunClient) DescribeDBInstanceNetInfos

func (client *AliyunClient) DescribeDBInstanceNetInfos(instanceId string) ([]rds.DBInstanceNetInfo, error)

func (*AliyunClient) DescribeDBSecurityIps

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

func (*AliyunClient) DescribeDatabaseAccount

func (client *AliyunClient) DescribeDatabaseAccount(instanceId, accountName string) (ds *rds.DBInstanceAccount, err error)

func (*AliyunClient) DescribeDatabaseByName

func (client *AliyunClient) DescribeDatabaseByName(instanceId, dbName string) (ds *rds.Database, err error)

func (*AliyunClient) DescribeDiskById

func (client *AliyunClient) DescribeDiskById(instanceId, diskId string) (disk ecs.Disk, err error)

func (*AliyunClient) DescribeDisksByType

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

func (*AliyunClient) DescribeEipAddress

func (client *AliyunClient) DescribeEipAddress(allocationId string) (eip vpc.EipAddress, err error)

func (*AliyunClient) DescribeEndpointByCode

func (client *AliyunClient) DescribeEndpointByCode(region string, code ServiceCode) (string, error)

func (*AliyunClient) DescribeEssAlarmById

func (client *AliyunClient) DescribeEssAlarmById(alarmTaskId string) (alarm ess.Alarm, err error)

func (*AliyunClient) DescribeFcFunction

func (client *AliyunClient) DescribeFcFunction(service, name string) (function *fc.GetFunctionOutput, err error)

func (*AliyunClient) DescribeFcService

func (client *AliyunClient) DescribeFcService(name string) (service *fc.GetServiceOutput, err error)

func (*AliyunClient) DescribeFcTrigger

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

func (*AliyunClient) DescribeForwardEntry

func (client *AliyunClient) DescribeForwardEntry(forwardTableId string, forwardEntryId string) (entry vpc.ForwardTableEntry, err error)

func (*AliyunClient) DescribeImageById

func (client *AliyunClient) DescribeImageById(id string) (image ecs.Image, err error)

func (*AliyunClient) DescribeInstanceAttribute

func (client *AliyunClient) DescribeInstanceAttribute(id string) (instance ecs.DescribeInstanceAttributeResponse, err error)

func (*AliyunClient) DescribeInstanceById

func (client *AliyunClient) DescribeInstanceById(id string) (instance ecs.Instance, err error)

func (*AliyunClient) DescribeKeyPair

func (client *AliyunClient) DescribeKeyPair(keyName string) (keypair ecs.KeyPair, err error)

func (*AliyunClient) DescribeLifecycleHookById

func (client *AliyunClient) DescribeLifecycleHookById(hookId string) (hook ess.LifecycleHook, err error)

func (*AliyunClient) DescribeLoadBalancerAttribute

func (client *AliyunClient) DescribeLoadBalancerAttribute(slbId string) (loadBalancer *slb.DescribeLoadBalancerAttributeResponse, err error)

func (*AliyunClient) DescribeLoadBalancerListenerAttribute

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

func (*AliyunClient) DescribeLoadBalancerRuleAttribute

func (client *AliyunClient) DescribeLoadBalancerRuleAttribute(ruleId string) (*slb.DescribeRuleAttributeResponse, error)

func (*AliyunClient) DescribeLoadBalancerRuleId

func (client *AliyunClient) DescribeLoadBalancerRuleId(slbId string, port int, domain, url string) (string, error)

func (*AliyunClient) DescribeLogMachineGroup

func (client *AliyunClient) DescribeLogMachineGroup(projectName, groupName string) (group *sls.MachineGroup, err error)

func (*AliyunClient) DescribeLogProject

func (client *AliyunClient) DescribeLogProject(name string) (project *sls.LogProject, err error)

func (*AliyunClient) DescribeLogStore

func (client *AliyunClient) DescribeLogStore(projectName, name string) (store *sls.LogStore, err error)

func (*AliyunClient) DescribeLogStoreIndex

func (client *AliyunClient) DescribeLogStoreIndex(projectName, name string) (index *sls.Index, err error)

func (*AliyunClient) DescribeMultiIZByRegion

func (client *AliyunClient) DescribeMultiIZByRegion() (izs []string, err error)

return multiIZ list of current region

func (*AliyunClient) DescribeNatGateway

func (client *AliyunClient) DescribeNatGateway(natGatewayId string) (nat vpc.NatGateway, err error)

func (*AliyunClient) DescribeOtsInstance

func (client *AliyunClient) DescribeOtsInstance(name string) (inst ots.InstanceInfo, err error)

func (*AliyunClient) DescribeOtsInstanceVpc

func (client *AliyunClient) DescribeOtsInstanceVpc(name string) (inst ots.VpcInfo, err error)

func (*AliyunClient) DescribeOtsTable

func (client *AliyunClient) DescribeOtsTable(instanceName, tableName string) (table *tablestore.DescribeTableResponse, err error)

func (*AliyunClient) DescribePvtzZoneInfo

func (client *AliyunClient) DescribePvtzZoneInfo(zoneId string) (zone pvtz.DescribeZoneInfoResponse, err error)

func (*AliyunClient) DescribeRKVInstanceById

func (client *AliyunClient) DescribeRKVInstanceById(id string) (instance *r_kvstore.DBInstanceAttribute, err error)

func (*AliyunClient) DescribeRKVInstancebackupPolicy

func (client *AliyunClient) DescribeRKVInstancebackupPolicy(id string) (policy *r_kvstore.DescribeBackupPolicyResponse, err error)

func (*AliyunClient) DescribeRouterInterface

func (client *AliyunClient) DescribeRouterInterface(regionId, interfaceId string) (ri vpc.RouterInterfaceTypeInDescribeRouterInterfaces, err error)

func (*AliyunClient) DescribeScalingConfifurations

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

func (*AliyunClient) DescribeScalingConfigurationById

func (client *AliyunClient) DescribeScalingConfigurationById(configId string) (config ess.ScalingConfiguration, err error)

func (*AliyunClient) DescribeScalingGroupById

func (client *AliyunClient) DescribeScalingGroupById(sgId string) (group ess.ScalingGroup, err error)

func (*AliyunClient) DescribeScalingInstances

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

func (*AliyunClient) DescribeScalingRuleById

func (client *AliyunClient) DescribeScalingRuleById(sgId, ruleId string) (rule ess.ScalingRule, err error)

func (*AliyunClient) DescribeScheduleById

func (client *AliyunClient) DescribeScheduleById(scheduleId string) (task ess.ScheduledTask, err error)

func (*AliyunClient) DescribeSecurityGroupAttribute

func (client *AliyunClient) DescribeSecurityGroupAttribute(securityGroupId string) (group ecs.DescribeSecurityGroupAttributeResponse, err error)

func (*AliyunClient) DescribeSecurityGroupRule

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

func (*AliyunClient) DescribeSlbVServerGroupAttribute

func (client *AliyunClient) DescribeSlbVServerGroupAttribute(groupId string) (*slb.DescribeVServerGroupAttributeResponse, error)

func (*AliyunClient) DescribeSnatEntry

func (client *AliyunClient) DescribeSnatEntry(snatTableId string, snatEntryId string) (snat vpc.SnatTableEntry, err error)

func (*AliyunClient) DescribeSslVpnClientCert

func (client *AliyunClient) DescribeSslVpnClientCert(id string) (v vpc.DescribeSslVpnClientCertResponse, err error)

func (*AliyunClient) DescribeSslVpnServer

func (client *AliyunClient) DescribeSslVpnServer(sslId string) (v vpc.SslVpnServer, err error)

func (*AliyunClient) DescribeTags

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

func (*AliyunClient) DescribeVpc

func (client *AliyunClient) DescribeVpc(vpcId string) (v vpc.DescribeVpcAttributeResponse, err error)

func (*AliyunClient) DescribeVpnConnection

func (client *AliyunClient) DescribeVpnConnection(id string) (v vpc.DescribeVpnConnectionResponse, err error)

func (*AliyunClient) DescribeVpnGateway

func (client *AliyunClient) DescribeVpnGateway(vpnId string) (v vpc.DescribeVpnGatewayResponse, err error)

func (*AliyunClient) DescribeVswitch

func (client *AliyunClient) DescribeVswitch(vswitchId string) (v vpc.DescribeVSwitchAttributesResponse, err error)

func (*AliyunClient) DescribeZone

func (client *AliyunClient) DescribeZone(zoneID string) (zone ecs.Zone, err error)

DescribeZone validate zoneId is valid in region

func (*AliyunClient) DescribeZoneRecord

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

func (*AliyunClient) DiskAvailable

func (client *AliyunClient) DiskAvailable(zone ecs.Zone, diskCategory DiskCategory) error

func (*AliyunClient) EssRemoveInstances

func (client *AliyunClient) EssRemoveInstances(groupId string, instanceIds []string) error

func (*AliyunClient) Fcconn

func (client *AliyunClient) Fcconn() (*fc.Client, error)

func (*AliyunClient) GetApplicationClientByClusterName

func (client *AliyunClient) GetApplicationClientByClusterName(name string) (c *cs.ProjectClient, err error)

func (*AliyunClient) GetCallerIdentity

func (client *AliyunClient) GetCallerIdentity() (*sts.GetCallerIdentityResponse, error)

func (*AliyunClient) GetContainerClusterByName

func (client *AliyunClient) GetContainerClusterByName(name string) (cluster cs.ClusterType, err error)

func (*AliyunClient) GetSecurityIps

func (client *AliyunClient) GetSecurityIps(instanceId string) ([]string, error)

func (*AliyunClient) GrantAccountPrivilege

func (client *AliyunClient) GrantAccountPrivilege(instanceId, account, dbName, privilege string) error

func (*AliyunClient) InstanceTypeValidation

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

func (*AliyunClient) JoinSecurityGroups

func (client *AliyunClient) JoinSecurityGroups(instanceId string, securityGroupIds []string) error

func (*AliyunClient) JudgeRegionValidation

func (client *AliyunClient) JudgeRegionValidation(key, region string) error

func (*AliyunClient) JudgeRolePolicyPrincipal

func (client *AliyunClient) JudgeRolePolicyPrincipal(roleName string) error

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

func (*AliyunClient) LeaveSecurityGroups

func (client *AliyunClient) LeaveSecurityGroups(instanceId string, securityGroupIds []string) error

func (*AliyunClient) ModifyDBBackupPolicy

func (client *AliyunClient) ModifyDBBackupPolicy(instanceId, backupTime, backupPeriod, retentionPeriod, backupLog, LogBackupRetentionPeriod string) error

func (*AliyunClient) ModifyDBSecurityIps

func (client *AliyunClient) ModifyDBSecurityIps(instanceId, ips string) error

func (*AliyunClient) QueryInstanceSystemDisk

func (client *AliyunClient) QueryInstanceSystemDisk(id string) (disk ecs.Disk, err error)

func (*AliyunClient) QueryInstancesWithKeyPair

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

func (*AliyunClient) QueryOssBucketById

func (client *AliyunClient) QueryOssBucketById(id string) (info *oss.BucketInfo, err error)

func (*AliyunClient) QueryRouteEntry

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

func (*AliyunClient) QueryRouteTableById

func (client *AliyunClient) QueryRouteTableById(routeTableId string) (rt vpc.RouteTable, err error)

func (*AliyunClient) ReleaseDBPublicConnection

func (client *AliyunClient) ReleaseDBPublicConnection(instanceId, connection string) error

func (*AliyunClient) ResourceAvailable

func (client *AliyunClient) ResourceAvailable(zone ecs.Zone, resourceType ResourceType) error

ResourceAvailable check resource available for zone

func (*AliyunClient) RevokeAccountPrivilege

func (client *AliyunClient) RevokeAccountPrivilege(instanceId, account, dbName string) error

func (*AliyunClient) WaitForAccount

func (client *AliyunClient) WaitForAccount(instanceId string, accountName string, status Status, timeout int) error

func (*AliyunClient) WaitForAccountPrivilege

func (client *AliyunClient) WaitForAccountPrivilege(instanceId, accountName, dbName, privilege string, timeout int) error

func (*AliyunClient) WaitForAccountPrivilegeRevoked

func (client *AliyunClient) WaitForAccountPrivilegeRevoked(instanceId, accountName, dbName string, timeout int) error

func (*AliyunClient) WaitForAllRouteEntries

func (client *AliyunClient) WaitForAllRouteEntries(routeTableId string, status Status, timeout int) error

func (*AliyunClient) WaitForCenBandwidthPackage

func (client *AliyunClient) WaitForCenBandwidthPackage(cenBwpId string, status Status, timeout int) error

func (*AliyunClient) WaitForCenBandwidthPackageUpdate

func (client *AliyunClient) WaitForCenBandwidthPackageUpdate(cenBwpId string, bandwidth int, timeout int) error

func (*AliyunClient) WaitForCenChildInstanceAttached

func (client *AliyunClient) WaitForCenChildInstanceAttached(instanceId string, cenId string, status Status, timeout int) error

func (*AliyunClient) WaitForCenChildInstanceDetached

func (client *AliyunClient) WaitForCenChildInstanceDetached(instanceId string, cenId string, timeout int) error

func (*AliyunClient) WaitForCenInstance

func (client *AliyunClient) WaitForCenInstance(cenId string, status Status, timeout int) error

func (*AliyunClient) WaitForCmsAlarm

func (client *AliyunClient) WaitForCmsAlarm(id string, enabled bool, timeout int) error

func (*AliyunClient) WaitForContainerApplication

func (client *AliyunClient) WaitForContainerApplication(clusterName, appName string, status Status, timeout int) error

func (*AliyunClient) WaitForCustomerGateway

func (client *AliyunClient) WaitForCustomerGateway(id string, status Status, timeout int) error

func (*AliyunClient) WaitForDBConnection

func (client *AliyunClient) WaitForDBConnection(instanceId string, netType IPType, timeout int) error

func (*AliyunClient) WaitForDBInstance

func (client *AliyunClient) WaitForDBInstance(instanceId string, status Status, timeout int) error

WaitForInstance waits for instance to given status

func (*AliyunClient) WaitForEcsDisk

func (client *AliyunClient) WaitForEcsDisk(diskId string, status Status, timeout int) error

WaitForInstance waits for instance to given status

func (*AliyunClient) WaitForEcsInstance

func (client *AliyunClient) WaitForEcsInstance(instanceId string, status Status, timeout int) error

WaitForInstance waits for instance to given status

func (*AliyunClient) WaitForEip

func (client *AliyunClient) WaitForEip(allocationId string, status Status, timeout int) error

func (*AliyunClient) WaitForListener

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

func (*AliyunClient) WaitForLoadBalancer

func (client *AliyunClient) WaitForLoadBalancer(loadBalancerId string, status Status, timeout int) error

func (*AliyunClient) WaitForOtsInstance

func (client *AliyunClient) WaitForOtsInstance(name string, status Status, timeout int) error

func (*AliyunClient) WaitForRKVInstance

func (client *AliyunClient) WaitForRKVInstance(instanceId string, status Status, timeout int) error

func (*AliyunClient) WaitForRouterInterface

func (client *AliyunClient) WaitForRouterInterface(regionId, interfaceId string, status Status, timeout int) error

func (*AliyunClient) WaitForScalingGroup

func (client *AliyunClient) WaitForScalingGroup(groupId string, status Status, timeout int) error

WaitForScalingGroup waits for group to given status

func (*AliyunClient) WaitForSslVpnClientCert

func (client *AliyunClient) WaitForSslVpnClientCert(id string, status Status, timeout int) error

func (*AliyunClient) WaitForVSwitch

func (client *AliyunClient) WaitForVSwitch(vswitchId string, status Status, timeout int) error

func (*AliyunClient) WaitForVpc

func (client *AliyunClient) WaitForVpc(vpcId string, status Status, timeout int) error

func (*AliyunClient) WaitForVpn

func (client *AliyunClient) WaitForVpn(vpnId string, status Status, timeout int) error

type Catcher

type Catcher struct {
	Reason           string
	RetryCount       int
	RetryWaitSeconds int
}

type CommonRequestDomain

type CommonRequestDomain string

type ComparisonOperator

type ComparisonOperator string

type Config

type Config struct {
	AccessKey       string
	SecretKey       string
	Region          common.Region
	RegionId        string
	SecurityToken   string
	OtsInstanceName string
	LogEndpoint     string
	AccountId       string
	FcEndpoint      string
}

Config of aliyun

func (*Config) Client

func (c *Config) Client() (*AliyunClient, error)

Client for AliyunClient

type DBAccountPrivilege

type DBAccountPrivilege string

type DBAccountType

type DBAccountType string

type DestinationResource

type DestinationResource string

type Direction

type Direction string

type DiskCategory

type DiskCategory string

type DiskType

type DiskType string

type Effect

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

type Endpoint

type Endpoint struct {
	Name      string    `xml:"name,attr"`
	RegionIds RegionIds `xml:"RegionIds"`
	Products  Products  `xml:"Products"`
}

type Endpoints

type Endpoints struct {
	Endpoint []Endpoint `xml:"Endpoint"`
}

xml

type Engine

type Engine string

type FlagType

type FlagType string

type GroupInnerAccessPolicy

type GroupInnerAccessPolicy string

type GroupRuleNicType

type GroupRuleNicType string

type GroupRulePolicy

type GroupRulePolicy string

type HealthCheckHttpCodeType

type HealthCheckHttpCodeType string

type HealthCheckType

type HealthCheckType string

type IPType

type IPType string

type IkeConfig

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

type ImageOwnerAlias

type ImageOwnerAlias string

type IndexFiledType

type IndexFiledType string

type InstanceAccessedByType

type InstanceAccessedByType string

type InstanceCreationType

type InstanceCreationType string

type InstanceNetWork

type InstanceNetWork string

type InternetChargeType

type InternetChargeType string

type Invoker

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

func NewInvoker

func NewInvoker() Invoker

func (*Invoker) AddCatcher

func (a *Invoker) AddCatcher(catcher Catcher)

func (*Invoker) Run

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

type IpsecConfig

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

type KeyState

type KeyState string

type LifecycleRuleStatus

type LifecycleRuleStatus string

type LifecycleTransition

type LifecycleTransition string

type ListenerErr

type ListenerErr struct {
	ErrType string
	Err     error
}

func (*ListenerErr) Error

func (e *ListenerErr) Error() string

type LoadBalancerSpecType

type LoadBalancerSpecType string

type MetricType

type MetricType string

type MultiAzPolicy

type MultiAzPolicy string

type NatGatewaySpec

type NatGatewaySpec string

type NetType

type NetType string

type NetworkType

type NetworkType string

type NextHopType

type NextHopType string

type OptimizedType

type OptimizedType string

type OtsInstanceType

type OtsInstanceType string

type PayType

type PayType string

type Period

type Period int

type Policy

type Policy struct {
	Statement []PolicyStatement
	Version   string
}

type PolicyStatement

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

type PrimaryKeyTypeString

type PrimaryKeyTypeString string

type Principal

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

type Product

type Product struct {
	ProductName string `xml:"ProductName"`
	DomainName  string `xml:"DomainName"`
}

type Products

type Products struct {
	Product []Product `xml:"Product"`
}

type Protocol

type Protocol string

Protocol represents network protocol

type ProviderError

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

An Error represents a custom error for Terraform failure response

func (*ProviderError) Error

func (e *ProviderError) Error() string

func (*ProviderError) ErrorCode

func (err *ProviderError) ErrorCode() string

func (*ProviderError) Message

func (err *ProviderError) Message() string

type RecurrenceType

type RecurrenceType string

type RegionIds

type RegionIds struct {
	RegionId string `xml:"RegionId"`
}

type RegionalFeature

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

type RenewalStatus string

type ResourceType

type ResourceType string

type Role

type Role string

type RolePolicy

type RolePolicy struct {
	Statement []RolePolicyStatement
	Version   string
}

func ParseRolePolicyDocument

func ParseRolePolicyDocument(policyDocument string) (RolePolicy, error)

type RolePolicyStatement

type RolePolicyStatement struct {
	Effect    Effect
	Action    string
	Principal Principal
}

type RouterType

type RouterType string

type SchedulerType

type SchedulerType string

type SecurityGroup

type SecurityGroup struct {
	Attributes   ecs.DescribeSecurityGroupAttributeResponse
	CreationTime string
}

type ServiceCode

type ServiceCode string

Load endpoints from endpoints.xml or environment variables to meet specified application scenario, like private cloud.

type Spec

type Spec string

type SpotStrategyType

type SpotStrategyType string

type Statistics

type Statistics string

type Status

type Status string

type StickySessionType

type StickySessionType string

type Tag

type Tag struct {
	Key   string
	Value string
}

type TagResourceType

type TagResourceType string

type TimeType

type TimeType string

Source Files

Jump to

Keyboard shortcuts

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