aws

package
v0.3.10-0-alpha...-9b162f2 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: Apache-2.0 Imports: 68 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CLOUD_PROVIDER_AWS    = api.CLOUD_PROVIDER_AWS
	CLOUD_PROVIDER_AWS_CN = "AWS"
	CLOUD_PROVIDER_AWS_EN = "AWS"

	AWS_INTERNATIONAL_CLOUDENV = "InternationalCloud"
	AWS_CHINA_CLOUDENV         = "ChinaCloud"

	AWS_INTERNATIONAL_DEFAULT_REGION = "us-west-1"
	AWS_CHINA_DEFAULT_REGION         = "cn-north-1"
	AWS_API_VERSION                  = "2018-10-10"

	AWS_GLOBAL_ARN_PREFIX = "arn:aws:iam::aws:policy/"
	AWS_CHINA_ARN_PREFIX  = "arn:aws-cn:iam::aws:policy/"

	DEFAULT_S3_REGION_ID = "us-east-1"

	DefaultAssumeRoleName = "OrganizationAccountAccessRole"
)
View Source
const (
	EIP_STATUS_INUSE     = "InUse"
	EIP_STATUS_AVAILABLE = "Available"
)
View Source
const (
	ImageStatusCreating     ImageStatusType = "pending"
	ImageStatusAvailable    ImageStatusType = "available"
	ImageStatusCreateFailed ImageStatusType = "failed"

	ImageImportStatusCompleted   = "completed"
	ImageImportStatusUncompleted = "uncompleted"
	ImageImportStatusError       = "error"
	ImageImportStatusDeleted     = "deleted"
)
View Source
const (
	ImageOwnerTypeSystem = TImageOwnerType("system")
	ImageOwnerTypeSelf   = TImageOwnerType("self")
	ImageOwnerTypeOther  = TImageOwnerType("other")
)
View Source
const (
	InstanceStatusPending    = "pending"
	InstanceStatusRunning    = "running"
	InstanceStatusShutting   = "shutting-down"
	InstanceStatusTerminated = "terminated"
	InstanceStatusStopping   = "stopping"
	InstanceStatusStopped    = "stopped"
)
View Source
const (
	SERVICE_CONTROL_POLICY    = "SERVICE_CONTROL_POLICY"
	TAG_POLICY                = "TAG_POLICY"
	BACKUP_POLICY             = "BACKUP_POLICY"
	AISERVICES_OPT_OUT_POLICY = "AISERVICES_OPT_OUT_POLICY"
)
View Source
const (
	RDS_SERVICE_NAME = "rds"
	RDS_SERVICE_ID   = "RDS"

	EC2_SERVICE_NAME = "ec2"
	EC2_SERVICE_ID   = "EC2"

	IAM_SERVICE_NAME = "iam"
	IAM_SERVICE_ID   = "IAM"

	STS_SERVICE_NAME = "sts"
	STS_SERVICE_ID   = "STS"

	CLOUDWATCH_SERVICE_NAME = "monitoring"
	CLOUDWATCH_SERVICE_ID   = "CloudWatch"

	CLOUD_TRAIL_SERVICE_NAME = "CloudTrail"
	CLOUD_TRAIL_SERVICE_ID   = "cloudtrail"

	ROUTE53_SERVICE_NAME = "route53"
	ROUTE53_SERVICE_ID   = "Route 53"

	ELASTICACHE_SERVICE_NAME = "elasticache"
	ELASTICACHE_SERVICE_ID   = "ElastiCache"

	ELB_SERVICE_NAME = "elasticloadbalancing"
	ELB_SERVICE_ID   = "Elastic Load Balancing v2"

	EKS_SERVICE_NAME = "eks"
	EKS_SERVICE_ID   = "EKS"

	PRICING_SERVICE_NAME = "api.pricing"
	PRICING_SERVICE_ID   = "Pricing"
)
View Source
const (
	SCOPE_REGIONAL   = "REGIONAL"
	SCOPE_CLOUDFRONT = "CLOUDFRONT"
)

Variables

View Source
var (
	ImageOwnerAll        = []TImageOwnerType(nil)
	ImageOwnerSelf       = []TImageOwnerType{ImageOwnerTypeSelf}
	ImageOwnerSystem     = []TImageOwnerType{ImageOwnerTypeSystem}
	ImageOwnerSelfSystem = []TImageOwnerType{ImageOwnerTypeSystem, ImageOwnerTypeSelf}
)
View Source
var (
	SUSE_SLES              = regexp.MustCompile(`suse-sles-\d+-v?\d+-`)
	SUSE_SLES_SP           = regexp.MustCompile(`suse-sles-\d+-sp\d+-v?\d+-`)
	SUSE_SLES_RIGHTLINK    = regexp.MustCompile(`suse-sles-\d+-rightscale-v?\d+-`)
	SUSE_SLES_RIGHTLINK_SP = regexp.MustCompile(`suse-sles-\d+-sp\d+-rightscale-v?\d+-`)
	SUSE_SLES_SAPCAL       = regexp.MustCompile(`suse-sles-\d+-sapcal-v?\d+-`)
	SUSE_SLES_SAPCAL_SP    = regexp.MustCompile(`suse-sles-\d+-sp\d+-sapcal-v?\d+-`)
	SUSE_SLES_BYOS         = regexp.MustCompile(`suse-sles-\d+-byos-v?\d+-`)
	SUSE_SLES_BYOS_SP      = regexp.MustCompile(`suse-sles-\d+-sp\d+-byos-v?\d+-`)
	SUSE_SLES_SAP          = regexp.MustCompile(`suse-sles-sap-\d+-v\d+-`)
	SUSE_SLES_SAP_SP       = regexp.MustCompile(`suse-sles-sap-\d+-sp\d+-v\d+-`)
	SUSE_SLES_SAP_BYOS     = regexp.MustCompile(`suse-sles-sap-\d+-byos-v?\d+-`)
	SUSE_SLES_SAP_BYOS_SP  = regexp.MustCompile(`suse-sles-sap-\d+-sp\d+-byos-v?\d+-`)

	SUSE_CAASP_CLUSTER_BYOS = regexp.MustCompile(`suse-caasp-\d+-\d+-cluster-byos-v?\d+-`)
	SUSE_CAASP_ADMIN_BYOS   = regexp.MustCompile(`suse-caasp-\d+-\d+-admin-byos-v?\d+-`)

	SUSE_MANAGER_SERVER_BYOS = regexp.MustCompile(`suse-manager-\d+-\d+-server-byos-v?\d+-`)
	SUSE_MANAGER_PROXY_BYOS  = regexp.MustCompile(`suse-manager-\d+-\d+-proxy-byos-v?\d+-`)
)
View Source
var DBInstanceSpecs = map[string]SDBInstanceSpec{}/* 140 elements not displayed */
View Source
var JsonBuildHandler = request.NamedHandler{
	Name: "yunion.json.Build",
	Fn:   JsonBuild,
}
View Source
var LatitudeAndLongitude = map[string]cloudprovider.SGeographicInfo{
	"us-east-1":      api.RegionNothVirginia,
	"us-east-2":      api.RegionOhio,
	"us-west-1":      api.RegionNorthCalifornia,
	"us-west-2":      api.RegionOregon,
	"ap-south-1":     api.RegionMumbai,
	"ap-northeast-3": api.RegionOsaka,
	"ap-northeast-2": api.RegionSeoul,
	"ap-southeast-1": api.RegionSingapore,
	"ap-southeast-2": api.RegionSydney,
	"ap-northeast-1": api.RegionTokyo,
	"ap-east-1":      api.RegionHongkong,
	"ca-central-1":   api.RegionCanadaCentral,
	"cn-north-1":     api.RegionBeijing,
	"cn-northwest-1": api.RegionNingxia,
	"eu-central-1":   api.RegionFrankfurt,
	"eu-west-1":      api.RegionIreland,
	"eu-west-2":      api.RegionLondon,
	"eu-west-3":      api.RegionParis,
	"eu-north-1":     api.RegionStockholm,
	"sa-east-1":      api.RegionSaoPaulo,
	"us-gov-west-1":  api.RegionUSGOVWest,

	"af-south-1": api.RegionCapeTown,
	"me-south-1": api.RegionBahrain,

	"eu-south-1":     api.RegionMilan,
	"ap-southeast-4": api.RegionMelbourne,
	"ap-south-2":     api.RegionHyderabad,
	"eu-south-2":     api.RegionMadrid,
	"eu-central-2":   api.RegionAbuDhabi,
	"ap-southeast-3": api.RegionJakarta,
	"me-central-1":   api.RegionDubai,
	"il-central-1":   api.RegionColumbus,
}
View Source
var RegionLocations = map[string]string{
	"us-east-2":      "美国东部(俄亥俄州)",
	"us-east-1":      "美国东部(弗吉尼亚北部)",
	"us-west-1":      "美国西部(加利福尼亚北部)",
	"us-west-2":      "美国西部(俄勒冈)",
	"ap-east-1":      "亚太区域(香港)",
	"ap-south-1":     "亚太区域(孟买)",
	"ap-northeast-3": "亚太区域(大阪-本地)",
	"ap-northeast-2": "亚太区域(首尔)",
	"ap-southeast-1": "亚太区域(新加坡)",
	"ap-southeast-2": "亚太区域(悉尼)",
	"ap-northeast-1": "亚太区域(东京)",
	"ca-central-1":   "加拿大(中部)",
	"cn-north-1":     "中国(北京)",
	"cn-northwest-1": "中国(宁夏)",
	"eu-central-1":   "欧洲(法兰克福)",
	"eu-west-1":      "欧洲(爱尔兰)",
	"eu-west-2":      "欧洲(伦敦)",
	"eu-south-1":     "欧洲(米兰)",
	"eu-west-3":      "欧洲(巴黎)",
	"eu-north-1":     "欧洲(斯德哥尔摩)",
	"me-south-1":     "中东(巴林)",
	"sa-east-1":      "南美洲(圣保罗)",
	"us-gov-west-1":  "AWS GovCloud(美国西部)",
	"us-gov-east-1":  "AWS GovCloud(美国东部)",

	"af-south-1": "非洲(开普敦)",

	"ap-southeast-4": "亚太地区(墨尔本)",
	"ap-south-2":     "亚太地区(德拉巴)",
	"eu-south-2":     "欧洲(西班牙)",
	"eu-central-2":   "欧洲(苏黎世)",
	"me-central-1":   "中东(阿联酋)",
	"ap-southeast-3": "亚太地区(雅加达)",
	"il-central-1":   "以色列(特拉维夫)",
}
View Source
var RegionLocationsEN = map[string]string{
	"us-east-1":      "US East (N. Virginia)",
	"us-east-2":      "US East (Ohio)",
	"us-west-1":      "US West (N. California)",
	"us-west-2":      "US West (Oregon)",
	"af-south-1":     "Africa (Cape Town)",
	"ap-east-1":      "Asia Pacific (Hong Kong)",
	"ap-south-1":     "Asia Pacific (Mumbai)",
	"ap-northeast-3": "Asia Pacific (Osaka)",
	"ap-northeast-2": "Asia Pacific (Seoul)",
	"ap-southeast-1": "Asia Pacific (Singapore)",
	"ap-southeast-2": "Asia Pacific (Sydney)",
	"ap-northeast-1": "Asia Pacific (Tokyo)",
	"ca-central-1":   "Canada (Central)",
	"eu-central-1":   "Europe (Frankfurt)",
	"eu-west-1":      "Europe (Ireland)",
	"eu-west-2":      "Europe (London)",
	"eu-south-1":     "Europe (Milan)",
	"eu-west-3":      "Europe (Paris)",
	"eu-north-1":     "Europe (Stockholm)",
	"me-south-1":     "Middle East (Bahrain)",
	"sa-east-1":      "South America (São Paulo)",
	"cn-north-1":     "China (Beijing)",
	"cn-northwest-1": "China (Ninxia)",
	"us-gov-west-1":  "AWS GovCloud(US West)",
	"us-gov-east-1":  "AWS GovCloud(US East)",

	"ap-southeast-4": "Asia Pacific (Melbourne)",
	"ap-south-2":     "Asia Pacific (Hyderabad)",
	"eu-south-2":     "Europe (Spain)",
	"eu-central-2":   "Europe (Zurich)",
	"me-central-1":   "Middle East (UAE)",
	"ap-southeast-3": "Asia Pacific (Jakarta)",
	"il-central-1":   "Israel (Tel Aviv)",
}

https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html

View Source
var UnmarshalErrorHandler = request.NamedHandler{Name: "awssdk.ec2query.UnmarshalError", Fn: UnmarshalError}
View Source
var UnmarshalHandler = request.NamedHandler{Name: "yunion.query.Unmarshal", Fn: Unmarshal}
View Source
var UnmarshalJsonErrorHandler = request.NamedHandler{
	Name: "awssdk.ec2query.UnmarshalJsonError",
	Fn:   UnmarshalJsonError,
}
View Source
var UnmarshalJsonHandler = request.NamedHandler{Name: "yunion.query.UnmarshalJson", Fn: UnmarshalJson}
View Source
var (
	WAF_SCOPES = []string{
		SCOPE_REGIONAL,
		SCOPE_CLOUDFRONT,
	}
)

Functions

func AwsApiInt64ToOutput

func AwsApiInt64ToOutput(input *int64) int64

func AwsApiSliceStringToOutput

func AwsApiSliceStringToOutput(input []*string) []string

func Build

func Build(r *request.Request)

func FillZero

func FillZero(i interface{}) error

fill a pointer struct with zero value.

func GenDiskIops

func GenDiskIops(diskType string, sizeGB int) int64

io1类型的卷需要指定IOPS参数,最大不超过32000。这里根据aws网站的建议值进行设置 io2类型的卷需要指定IOPS参数,最大不超过64000。 GenDiskIops Base 100, 卷每增加2G。IOPS增加1。最多到3000 iops

func GetBucketName

func GetBucketName(regionId string, imageId string) string

func GetDefaultRegionId

func GetDefaultRegionId(accessUrl string) string

func InputToAwsApiInt64

func InputToAwsApiInt64(input int64) *int64

func InputToAwsApiSliceString

func InputToAwsApiSliceString(input []string) []*string

func IntVal

func IntVal(s *int64) int64

func JsonBuild

func JsonBuild(r *request.Request)

func NextDeviceName

func NextDeviceName(curDeviceNames []string) (string, error)

func StrVal

func StrVal(s *string) string

func ToAwsHealthCode

func ToAwsHealthCode(s string) string

func ToOnecloudHealthCode

func ToOnecloudHealthCode(s string) string

func Unmarshal

func Unmarshal(r *request.Request)

func UnmarshalError

func UnmarshalError(r *request.Request)

func UnmarshalJson

func UnmarshalJson(r *request.Request)

func UnmarshalJsonError

func UnmarshalJsonError(r *request.Request)

Types

type Action

type Action struct {
	TargetGroupArn string `json:"TargetGroupArn"`
	Type           string `json:"Type"`
}

type AssociatedVPC

type AssociatedVPC struct {
	VPCId     string `xml:"VPCId"`
	VPCRegion string `xml:"VPCRegion"`
}

type Association

type Association struct {
	Main                    bool    `xml:"main"`
	RouteTableAssociationId string  `xml:"routeTableAssociationId"`
	RouteTableId            string  `xml:"routeTableId"`
	GatewayId               *string `xml:"gatewayId"`
	SubnetId                *string `xml:"subnetId"`
}

type Attributes

type Attributes struct {
	Availabilityzone            string `json:"availabilityzone"`
	Classicnetworkingsupport    string `json:"classicnetworkingsupport"`
	GPUMemory                   string `json:"gpuMemory"`
	Instancesku                 string `json:"instancesku"`
	Marketoption                string `json:"marketoption"`
	RegionCode                  string `json:"regionCode"`
	Vpcnetworkingsupport        string `json:"vpcnetworkingsupport"`
	EnhancedNetworkingSupported string `json:"enhancedNetworkingSupported"`
	IntelTurboAvailable         string `json:"intelTurboAvailable"`
	Memory                      string `json:"memory"`
	DedicatedEbsThroughput      string `json:"dedicatedEbsThroughput"`
	Vcpu                        int    `json:"vcpu"`
	Gpu                         int    `json:"gpu"`
	Capacitystatus              string `json:"capacitystatus"`
	LocationType                string `json:"locationType"`
	Storage                     string `json:"storage"`
	InstanceFamily              string `json:"instanceFamily"`
	OperatingSystem             string `json:"operatingSystem"`
	IntelAvx2Available          string `json:"intelAvx2Available"`
	PhysicalProcessor           string `json:"physicalProcessor"`
	ClockSpeed                  string `json:"clockSpeed"`
	Ecu                         string `json:"ecu"`
	NetworkPerformance          string `json:"networkPerformance"`
	Servicename                 string `json:"servicename"`
	InstanceType                string `json:"instanceType"`
	InstanceSku                 string `json:"instancesku"`
	Tenancy                     string `json:"tenancy"`
	Usagetype                   string `json:"usagetype"`
	NormalizationSizeFactor     string `json:"normalizationSizeFactor"`
	IntelAvxAvailable           string `json:"intelAvxAvailable"`
	ProcessorFeatures           string `json:"processorFeatures"`
	Servicecode                 string `json:"servicecode"`
	LicenseModel                string `json:"licenseModel"`
	CurrentGeneration           string `json:"currentGeneration"`
	PreInstalledSw              string `json:"preInstalledSw"`
	Location                    string `json:"location"`
	ProcessorArchitecture       string `json:"processorArchitecture"`
	Operation                   string `json:"operation"`
	VolumeApiName               string `json:"volumeApiName"`
}

type Authentication

type Authentication struct {
	PasswordCount int64  `xml:"PasswordCount"`
	Type          string `xml:"Type"`
}

type AvailabilityZone

type AvailabilityZone struct {
	LoadBalancerAddresses []LoadBalancerAddress `xml:"LoadBalancerAddresses>member"`
	ZoneName              string                `xml:"ZoneName"`
	SubnetId              string                `xml:"SubnetId"`
}

type AwsClientConfig

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

func NewAwsClientConfig

func NewAwsClientConfig(accessUrl, accessKey, accessSecret, accountId string) *AwsClientConfig

func (*AwsClientConfig) CloudproviderConfig

func (cfg *AwsClientConfig) CloudproviderConfig(cpcfg cloudprovider.ProviderConfig) *AwsClientConfig

func (*AwsClientConfig) Debug

func (cfg *AwsClientConfig) Debug(debug bool) *AwsClientConfig

func (*AwsClientConfig) SetAssumeRole

func (cfg *AwsClientConfig) SetAssumeRole(roleName string) *AwsClientConfig

type AwsTags

type AwsTags struct {
	TagSet []SAwsTag `xml:"tagSet>item"`
	// rds
	TagList []SAwsRdsTag `xml:"TagList>Tag"`
	// elb
	Tags []SAwsLbTag `xml:"Tags>member"`
}

func (AwsTags) GetDescription

func (self AwsTags) GetDescription() string

func (AwsTags) GetName

func (self AwsTags) GetName() string

func (*AwsTags) GetSysTags

func (self *AwsTags) GetSysTags() map[string]string

func (*AwsTags) GetTags

func (self *AwsTags) GetTags() (map[string]string, error)

func (*AwsTags) SetTags

func (self *AwsTags) SetTags(tags map[string]string, replace bool) error

type AwsXmlRequest

type AwsXmlRequest struct {
	Spec  string
	Local string
	// contains filtered or unexported fields
}

func (AwsXmlRequest) MarshalXML

func (s AwsXmlRequest) MarshalXML(e *xml.Encoder, start xml.StartElement) error

StringMap marshals into XML.

type CacheNode

type CacheNode struct {
	CacheNodeCreateTime      time.Time `xml:"CacheNodeCreateTime"`
	CacheNodeId              string    `xml:"CacheNodeId"`
	CacheNodeStatus          string    `xml:"CacheNodeStatus"`
	CustomerAvailabilityZone string    `xml:"CustomerAvailabilityZone"`
	CustomerOutpostArn       string    `xml:"CustomerOutpostArn"`
	Endpoint                 Endpoint  `xml:"Endpoint"`
	ParameterGroupStatus     string    `xml:"ParameterGroupStatus"`
	SourceCacheNodeId        string    `xml:"SourceCacheNodeId"`
}

type CacheParameterGroupStatus

type CacheParameterGroupStatus struct {
	CacheNodeIdsToReboot    []string `xml:"CacheNodeIdsToReboot"`
	CacheParameterGroupName string   `xml:"CacheParameterGroupName"`
	ParameterApplyStatus    string   `xml:"ParameterApplyStatus"`
}

type CacheSecurityGroupMembership

type CacheSecurityGroupMembership struct {
	CacheSecurityGroupName string `xml:"CacheSecurityGroupName"`
	Status                 string `xml:"Status"`
}

type CacheSubnetGroup

type CacheSubnetGroup struct {
	ARN                         string   `xml:"Arn"`
	CacheSubnetGroupDescription string   `xml:"CacheSubnetGroupDescription"`
	CacheSubnetGroupName        string   `xml:"CacheSubnetGroupName"`
	Subnets                     []Subnet `xml:"Subnets>Subnet"`
	VpcId                       string   `xml:"VpcId"`
}

type Certificate

type Certificate struct {
	CertificateArn string `json:"CertificateArn"`
}

type ClusterLogging

type ClusterLogging struct {
	Types   []string `json:"types"`
	Enabled bool     `json:"enabled"`
}

type Condition

type Condition struct {
	Field                   string             `json:"field"`
	HTTPRequestMethodConfig *Config            `json:"httpRequestMethodConfig,omitempty"`
	Values                  []string           `json:"values"`
	SourceIPConfig          *Config            `json:"sourceIpConfig,omitempty"`
	QueryStringConfig       *QueryStringConfig `json:"queryStringConfig,omitempty"`
	HTTPHeaderConfig        *HTTPHeaderConfig  `json:"httpHeaderConfig,omitempty"`
	PathPatternConfig       *Config            `json:"pathPatternConfig,omitempty"`
	HostHeaderConfig        *Config            `json:"hostHeaderConfig,omitempty"`
}

type Config

type Config struct {
	Values []string `json:"values"`
}

type Datapoint

type Datapoint struct {
	Average            float64 `xml:"Average"`
	ExtendedStatistics struct {
		Key   string `xml:"Key"`
		Value string `xml:"Value"`
	} `xml:"ExtendedStatistics>entry"`
	Maximum     float64   `xml:"Maximum"`
	Minimum     float64   `xml:"Minimum"`
	SampleCount float64   `xml:"SampleCount"`
	Sum         float64   `xml:"Sum"`
	Timestamp   time.Time `xml:"Timestamp"`
	Unit        string    `xml:"Unit"`
}

func (Datapoint) GetValue

func (self Datapoint) GetValue() float64

type Datapoints

type Datapoints struct {
	Datapoints []Datapoint `xml:"Datapoints>member"`
	Label      string      `xml:"Label"`
}

type DefaultAction

type DefaultAction struct {
	TargetGroupArn string `json:"TargetGroupArn"`
	Type           string `json:"Type"`
}

type Dimension

type Dimension struct {
	Unit         string       `json:"unit"`
	EndRange     string       `json:"endRange"`
	Description  string       `json:"description"`
	AppliesTo    []string     `json:"appliesTo"`
	RateCode     string       `json:"rateCode"`
	BeginRange   string       `json:"beginRange"`
	PricePerUnit PricePerUnit `json:"pricePerUnit"`
}

type DnsZoneConfig

type DnsZoneConfig struct {
	Comment     string `xml:"Comment"`
	PrivateZone bool   `xml:"PrivateZone"`
}

type EbsInstanceBlockDevice

type EbsInstanceBlockDevice struct {
	AttachTime          time.Time `xml:"attachTime"`
	DeleteOnTermination bool      `xml:"deleteOnTermination"`
	Status              string    `xml:"status"`
	VolumeId            string    `xml:"volumeId"`
}

type ElastiCacheEngineVersion

type ElastiCacheEngineVersion struct {
	CacheParameterGroupFamily     string `xml:"CacheParameterGroupFamily"`
	Engine                        string `xml:"Engine"`
	CacheEngineVersionDescription string `xml:"CacheEngineVersionDescription"`
	EngineVersion                 string `xml:"EngineVersion"`
}

type Endpoint

type Endpoint struct {
	Address string `xml:"Address"`
	Port    int    `xml:"Port"`
}

type GeoLocationDetails

type GeoLocationDetails struct {
	ContinentCode   string `xml:"ContinentCode"`
	ContinentName   string `xml:"ContinentName"`
	CountryCode     string `xml:"CountryCode"`
	CountryName     string `xml:"CountryName"`
	SubdivisionCode string `xml:"SubdivisionCode"`
	SubdivisionName string `xml:"SubdivisionName"`
}

func (GeoLocationDetails) GetPolicyValue

func (self GeoLocationDetails) GetPolicyValue() cloudprovider.TDnsPolicyValue

type GlobalReplicationGroupInfo

type GlobalReplicationGroupInfo struct {
	GlobalReplicationGroupId         string `xml:"GlobalReplicationGroupId"`
	GlobalReplicationGroupMemberRole string `xml:"GlobalReplicationGroupMemberRole"`
}

type HTTPHeaderConfig

type HTTPHeaderConfig struct {
	HTTPHeaderName string   `json:"HttpHeaderName"`
	Values         []string `json:"values"`
}

type ImageExportTask

type ImageExportTask struct {
	ImageId  string
	RegionId string
	TaskId   string `xml:"exportTaskId"`
}

type ImageImportTask

type ImageImportTask struct {
	multicloud.SResourceBase

	ImageId  string `xml:"imageId"`
	TaskId   string `xml:"importTaskId"`
	Progress string `xml:"progress"`
	Status   string `xml:"status"`
	// contains filtered or unexported fields
}

func (*ImageImportTask) GetGlobalId

func (self *ImageImportTask) GetGlobalId() string

func (*ImageImportTask) GetId

func (self *ImageImportTask) GetId() string

func (*ImageImportTask) GetName

func (self *ImageImportTask) GetName() string

func (*ImageImportTask) GetStatus

func (self *ImageImportTask) GetStatus() string

func (*ImageImportTask) IsEmulated

func (self *ImageImportTask) IsEmulated() bool

func (*ImageImportTask) Refresh

func (self *ImageImportTask) Refresh() error

type ImageStatusType

type ImageStatusType string

type InstanceAttribute

type InstanceAttribute struct {
	UserData struct {
		Value string `xml:"value"`
	} `xml:"userData"`
}

type InstanceAttributeInput

type InstanceAttributeInput struct {
	UserData bool
}

type InstanceBlockDeviceMapping

type InstanceBlockDeviceMapping struct {
	DeviceName *string                `xml:"deviceName"`
	Ebs        EbsInstanceBlockDevice `xml:"ebs"`
}

type InstanceChargeType

type InstanceChargeType string

type InstanceType

type InstanceType struct {
	InstanceType string `xml:"instanceType"`
	MemoryInfo   struct {
		SizeInMiB int `xml:"sizeInMiB"`
	} `xml:"memoryInfo"`
}

type InternetGatewayAttachment

type InternetGatewayAttachment struct {
	State string `xml:"state"`
	VpcId string `xml:"vpcId"`
}

type LoadBalancerAddress

type LoadBalancerAddress struct {
	IPAddress    string `xml:"IpAddress"`
	AllocationID string `xml:"AllocationId"`
}

type LogDeliveryConfiguration

type LogDeliveryConfiguration struct {
	DestinationType string `xml:"DestinationType"`
	LogFormat       string `xml:"LogFormat"`
	LogType         string `xml:"LogType"`
	Message         string `xml:"Message"`
	Status          string `xml:"Status"`
}

type LoginProfile

type LoginProfile struct {
	UserName   string    `xml:"UserName"`
	CreateDate time.Time `xml:"CreateDate"`
}

type Matcher

type Matcher struct {
	HTTPCode string `json:"HttpCode"`
}

type NatGatewayAddress

type NatGatewayAddress struct {
	AllocationId       string `xml:"allocationId"`
	NetworkInterfaceId string `xml:"networkInterfaceId"`
	PrivateIp          string `xml:"privateIp"`
	PublicIp           string `xml:"publicIp"`
}

type NodeGroup

type NodeGroup struct {
	NodeGroupId      string            `xml:"NodeGroupId"`
	NodeGroupMembers []NodeGroupMember `xml:"NodeGroupMembers>NodeGroupMember"`
	PrimaryEndpoint  Endpoint          `xml:"PrimaryEndpoint"`
	ReaderEndpoint   Endpoint          `xml:"ReadEndpoint"`
	Slots            string            `xml:"Slots"`
	Status           string            `xml:"Status"`
}

type NodeGroupMember

type NodeGroupMember struct {
	CacheClusterId            string   `xml:"CacheClusterId"`
	CacheNodeId               string   `xml:"CacheNodeId"`
	CurrentRole               string   `xml:"CurrentRole"`
	PreferredAvailabilityZone string   `xml:"PreferredAvailabilityZone"`
	PreferredOutpostArn       string   `xml:"PreferredOutpostArn"`
	ReadEndpoint              Endpoint `xml:"ReadEndpoint"`
}

type NodeSnapshot

type NodeSnapshot struct {
	CacheClusterId      string    `xml:"CacheClusterId"`
	CacheNodeCreateTime time.Time `xml:"CacheNodeCreateTime"`
	CacheNodeId         string    `xml:"CacheNodeId"`
	CacheSize           string    `xml:"CacheSize"`
	NodeGroupId         string    `xml:"NodeGroupId"`
	SnapshotCreateTime  time.Time `xml:"SnapshotCreateTime"`
}

type NotificationConfiguration

type NotificationConfiguration struct {
	TopicArn    string `xml:"TopicArn"`
	TopicStatus string `xml:"TopicStatus"`
}

type PendingModifiedValues

type PendingModifiedValues struct {
	AuthTokenStatus      string   `xml:"AuthTokenStatus"`
	CacheNodeIdsToRemove []string `xml:"CacheNodeIdsToRemove"`
	CacheNodeType        string   `xml:"CacheNodeType"`
	EngineVersion        string   `xml:"EngineVersion"`
	NumCacheNodes        int64    `xml:"NumCacheNodes"`
}

type PricePerUnit

type PricePerUnit struct {
	Usd float64 `json:"USD"`
	CNY float64 `json:"CNY"`
}

type Product

type Product struct {
	ProductFamily string     `json:"productFamily"`
	Attributes    Attributes `json:"attributes"`
	Sku           string     `json:"sku"`
}

type ProductFilter

type ProductFilter struct {
	Type  string `json:"Type"`
	Field string `json:"Field"`
	Value string `json:"Value"`
}

type ProvisionedBandwidth

type ProvisionedBandwidth struct {
	ProvisionTime time.Time `xml:"provisionTime"`
	Provisioned   string    `xml:"provisioned"`
	RequestTime   time.Time `xml:"requestTime"`
	Requested     string    `xml:"requested"`
	Status        string    `xml:"status"`
}

type Query

type Query struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

type QueryStringConfig

type QueryStringConfig struct {
	Values []Query `json:"values"`
}

type RegularExpression

type RegularExpression struct {
	RegexString string
}

type RootDevice

type RootDevice struct {
	SnapshotId string
	Size       int    // GB
	Category   string // VolumeType
}

type SAMLProvider

type SAMLProvider struct {
	multicloud.SResourceBase
	AwsTags

	SAMLMetadataDocument string    `xml:"SAMLMetadataDocument"`
	Arn                  string    `xml:"Arn"`
	ValidUntil           time.Time `xml:"ValidUntil"`
	CreateDate           time.Time `xml:"CreateDate"`
	// contains filtered or unexported fields
}

func (*SAMLProvider) Delete

func (self *SAMLProvider) Delete() error

func (*SAMLProvider) GetAuthUrl

func (self *SAMLProvider) GetAuthUrl(apiServer string) string

func (*SAMLProvider) GetDescription

func (self *SAMLProvider) GetDescription() string

func (*SAMLProvider) GetGlobalId

func (self *SAMLProvider) GetGlobalId() string

func (*SAMLProvider) GetId

func (self *SAMLProvider) GetId() string

func (*SAMLProvider) GetMetadataDocument

func (self *SAMLProvider) GetMetadataDocument() (*samlutils.EntityDescriptor, error)

func (*SAMLProvider) GetName

func (self *SAMLProvider) GetName() string

func (*SAMLProvider) GetStatus

func (self *SAMLProvider) GetStatus() string

func (*SAMLProvider) UpdateMetadata

func (self *SAMLProvider) UpdateMetadata(metadata samlutils.EntityDescriptor) error

type SAMLProviders

type SAMLProviders struct {
	SAMLProviderList []SAMLProvider `xml:"SAMLProviderList>member"`
}

type SAWSImagePublisherInfo

type SAWSImagePublisherInfo struct {
	GetOSType     func(image SImage) string
	GetOSDist     func(image SImage) string
	GetOSVersion  func(image SImage) string
	GetOSBuildID  func(image SImage) string
	CompareBuilds func(v1, v2 string) int
}

type SAccount

type SAccount struct {
	ID     string `json:"id"`
	Name   string `json:"name"`
	Arn    string `json:"arn"`
	Email  string `json:"email"`
	Status string `json:"status"`

	JoinedMethod    string    `json:"joined_method"`
	JoinedTimestamp time.Time `json:"joined_timestamp"`

	IsMaster bool `json:"is_master"`
}

* {"arn":"arn:aws:organizations::285906155448:account/o-vgh74bqhdw/285906155448","email":"swordqiu@gmail.com","id":"285906155448","joined_method":"INVITED","joined_timestamp":"2021-02-09T03:55:27.724000Z","name":"qiu jian","status":"ACTIVE"}

type SAccountBalance

type SAccountBalance struct {
	AvailableAmount     float64
	AvailableCashAmount float64
	CreditAmount        float64
	MybankCreditAmount  float64
	Currency            string
}

type SAliasTarget

type SAliasTarget struct {
	DNSName              string `xml:"DNSName"`
	EvaluateTargetHealth *bool  `xml:"EvaluateTargetHealth"`
	HostedZoneId         string `xml:"HostedZoneId"`
}

type SAttachedPolicies

type SAttachedPolicies struct {
	IsTruncated      bool              `xml:"IsTruncated"`
	Marker           string            `xml:"Marker"`
	AttachedPolicies []SAttachedPolicy `xml:"AttachedPolicies>member"`
}

type SAttachedPolicy

type SAttachedPolicy struct {
	PolicyName string `xml:"PolicyName"`
	PolicyArn  string `xml:"PolicyArn"`
	// contains filtered or unexported fields
}

func (*SAttachedPolicy) Delete

func (self *SAttachedPolicy) Delete() error

func (*SAttachedPolicy) GetDescription

func (self *SAttachedPolicy) GetDescription() string

func (*SAttachedPolicy) GetDocument

func (self *SAttachedPolicy) GetDocument() (*jsonutils.JSONDict, error)

func (*SAttachedPolicy) GetGlobalId

func (self *SAttachedPolicy) GetGlobalId() string

func (*SAttachedPolicy) GetName

func (self *SAttachedPolicy) GetName() string

func (*SAttachedPolicy) UpdateDocument

func (self *SAttachedPolicy) UpdateDocument(document *jsonutils.JSONDict) error

type SAttachment

type SAttachment struct {
	AttachmentId        string    `xml:"attachmentId"`
	InstanceOwnerId     string    `xml:"instanceOwnerId"`
	DeviceIndex         int       `xml:"deviceIndex"`
	Status              string    `xml:"status"`
	AttachTime          time.Time `xml:"attachTime"`
	DeleteOnTermination bool      `xml:"deleteOnTermination"`
}

type SAwsClient

type SAwsClient struct {
	*AwsClientConfig
	// contains filtered or unexported fields
}

func NewAwsClient

func NewAwsClient(cfg *AwsClientConfig) (*SAwsClient, error)

func (*SAwsClient) AddUserToGroup

func (self *SAwsClient) AddUserToGroup(groupName, userName string) error

func (*SAwsClient) AssociateVPCWithHostedZone

func (client *SAwsClient) AssociateVPCWithHostedZone(vpcId string, regionId string, zoneId string) error

func (*SAwsClient) AttachGroupPolicy

func (self *SAwsClient) AttachGroupPolicy(groupName, policyArn string) error

func (*SAwsClient) AttachRolePolicy

func (self *SAwsClient) AttachRolePolicy(roleName, policyArn string) error

func (*SAwsClient) AttachUserPolicy

func (self *SAwsClient) AttachUserPolicy(userName string, policyArn string) error

func (*SAwsClient) ChangeResourceRecordSets

func (self *SAwsClient) ChangeResourceRecordSets(action, zoneId, name, id string, opts cloudprovider.DnsRecord) (string, error)

func (*SAwsClient) CreateDnsZone

func (client *SAwsClient) CreateDnsZone(opts *cloudprovider.SDnsZoneCreateOptions) (*SDnsZone, error)

func (*SAwsClient) CreateGroup

func (self *SAwsClient) CreateGroup(name string, path string) (*SGroup, error)

func (*SAwsClient) CreateICloudDnsZone

func (client *SAwsClient) CreateICloudDnsZone(opts *cloudprovider.SDnsZoneCreateOptions) (cloudprovider.ICloudDnsZone, error)

func (*SAwsClient) CreateICloudgroup

func (self *SAwsClient) CreateICloudgroup(name, desc string) (cloudprovider.ICloudgroup, error)

func (*SAwsClient) CreateICloudpolicy

func (*SAwsClient) CreateIClouduser

func (*SAwsClient) CreateLoginProfile

func (self *SAwsClient) CreateLoginProfile(name, password string) (*SLoginProfile, error)

func (*SAwsClient) CreatePolicy

func (self *SAwsClient) CreatePolicy(name, document, path, desc string) (*SPolicy, error)

func (*SAwsClient) CreatePolicyVersion

func (self *SAwsClient) CreatePolicyVersion(arn, document string, isDefault bool) error

func (*SAwsClient) CreateRole

func (self *SAwsClient) CreateRole(opts *cloudprovider.SRoleCreateOptions) (*SRole, error)

func (*SAwsClient) CreateSAMLProvider

func (self *SAwsClient) CreateSAMLProvider(name, metadata string) (*SAMLProvider, error)

func (*SAwsClient) CreateUser

func (self *SAwsClient) CreateUser(path string, username string) (*SUser, error)

func (*SAwsClient) DeleteDnsZone

func (client *SAwsClient) DeleteDnsZone(Id string) error

func (*SAwsClient) DeleteGroup

func (self *SAwsClient) DeleteGroup(name string) error

func (*SAwsClient) DeleteLoginProfile

func (self *SAwsClient) DeleteLoginProfile(name string) error

func (*SAwsClient) DeletePolicy

func (self *SAwsClient) DeletePolicy(arn string) error

func (*SAwsClient) DeleteRole

func (self *SAwsClient) DeleteRole(name string) error

func (*SAwsClient) DeleteSAMLProvider

func (self *SAwsClient) DeleteSAMLProvider(arn string) error

func (*SAwsClient) DeleteUser

func (self *SAwsClient) DeleteUser(name string) error

func (*SAwsClient) DetachGroupPolicy

func (self *SAwsClient) DetachGroupPolicy(groupName, policyArn string) error

func (*SAwsClient) DetachRolePolicy

func (self *SAwsClient) DetachRolePolicy(roleName string, policyArn string) error

func (*SAwsClient) DetachUserPolicy

func (self *SAwsClient) DetachUserPolicy(userName string, policyArn string) error

func (*SAwsClient) DisassociateVPCFromHostedZone

func (client *SAwsClient) DisassociateVPCFromHostedZone(vpcId string, regionId string, zoneId string) error

func (*SAwsClient) GetAccessEnv

func (self *SAwsClient) GetAccessEnv() string

func (*SAwsClient) GetAccountId

func (client *SAwsClient) GetAccountId() string

func (*SAwsClient) GetBucketCannedAcls

func (client *SAwsClient) GetBucketCannedAcls() []string

func (*SAwsClient) GetCallerIdentity

func (self *SAwsClient) GetCallerIdentity() (*SCallerIdentity, error)

func (*SAwsClient) GetCapabilities

func (self *SAwsClient) GetCapabilities() []string

func (*SAwsClient) GetCustomPolicyMaps

func (self *SAwsClient) GetCustomPolicyMaps() (map[string]string, error)

func (*SAwsClient) GetDnsZone

func (client *SAwsClient) GetDnsZone(id string) (*SDnsZoneDetails, error)

func (*SAwsClient) GetDnsZones

func (client *SAwsClient) GetDnsZones() ([]SDnsZone, error)

func (*SAwsClient) GetDocument

func (self *SAwsClient) GetDocument(arn, versionId string) (*jsonutils.JSONDict, error)

func (*SAwsClient) GetEcsMetrics

func (*SAwsClient) GetGroup

func (self *SAwsClient) GetGroup(name string, offset string, limit int) (*SGroupDetails, error)

func (*SAwsClient) GetICloudDnsZones

func (client *SAwsClient) GetICloudDnsZones() ([]cloudprovider.ICloudDnsZone, error)

func (*SAwsClient) GetICloudSAMLProviders

func (self *SAwsClient) GetICloudSAMLProviders() ([]cloudprovider.ICloudSAMLProvider, error)

func (*SAwsClient) GetICloudgroupByName

func (self *SAwsClient) GetICloudgroupByName(name string) (cloudprovider.ICloudgroup, error)

func (*SAwsClient) GetICloudgroups

func (self *SAwsClient) GetICloudgroups() ([]cloudprovider.ICloudgroup, error)

func (*SAwsClient) GetICloudroles

func (self *SAwsClient) GetICloudroles() ([]cloudprovider.ICloudrole, error)

func (*SAwsClient) GetIClouduserByName

func (self *SAwsClient) GetIClouduserByName(name string) (cloudprovider.IClouduser, error)

func (*SAwsClient) GetICloudusers

func (self *SAwsClient) GetICloudusers() ([]cloudprovider.IClouduser, error)

func (*SAwsClient) GetICustomCloudpolicies

func (self *SAwsClient) GetICustomCloudpolicies() ([]cloudprovider.ICloudpolicy, error)

func (*SAwsClient) GetIHostById

func (self *SAwsClient) GetIHostById(id string) (cloudprovider.ICloudHost, error)

func (*SAwsClient) GetIProjects

func (self *SAwsClient) GetIProjects() ([]cloudprovider.ICloudProject, error)

func (*SAwsClient) GetIRegionById

func (self *SAwsClient) GetIRegionById(id string) (cloudprovider.ICloudRegion, error)

func (*SAwsClient) GetIRegions

func (self *SAwsClient) GetIRegions() []cloudprovider.ICloudRegion

func (*SAwsClient) GetIStorageById

func (self *SAwsClient) GetIStorageById(id string) (cloudprovider.ICloudStorage, error)

func (*SAwsClient) GetISystemCloudpolicies

func (self *SAwsClient) GetISystemCloudpolicies() ([]cloudprovider.ICloudpolicy, error)

func (*SAwsClient) GetIVpcById

func (self *SAwsClient) GetIVpcById(id string) (cloudprovider.ICloudVpc, error)

func (*SAwsClient) GetIamLoginUrl

func (client *SAwsClient) GetIamLoginUrl() string

func (*SAwsClient) GetLoginProfile

func (self *SAwsClient) GetLoginProfile(name string) (*SLoginProfile, error)

func (*SAwsClient) GetMetrics

func (*SAwsClient) GetObjectCannedAcls

func (client *SAwsClient) GetObjectCannedAcls() []string

func (*SAwsClient) GetPolicy

func (self *SAwsClient) GetPolicy(arn string) (*SPolicy, error)

func (*SAwsClient) GetPolicyVersion

func (self *SAwsClient) GetPolicyVersion(arn, versionId string) (*SPolicyVersion, error)

func (*SAwsClient) GetRdsMetrics

func (*SAwsClient) GetRedisMetrics

func (self *SAwsClient) GetRedisMetrics(opts *cloudprovider.MetricListOptions) ([]cloudprovider.MetricValues, error)

func (*SAwsClient) GetRegion

func (self *SAwsClient) GetRegion(regionId string) (*SRegion, error)

func (*SAwsClient) GetRegions

func (self *SAwsClient) GetRegions() ([]SRegion, error)

只是使用fetchRegions初始化好的self.iregions. 本身并不从云服务器厂商拉取region信息

func (*SAwsClient) GetRole

func (self *SAwsClient) GetRole(roleName string) (*SRole, error)

func (*SAwsClient) GetSAMLProvider

func (self *SAwsClient) GetSAMLProvider(arn string) (*SAMLProvider, error)

func (*SAwsClient) GetSamlEntityId

func (client *SAwsClient) GetSamlEntityId() string

func (*SAwsClient) GetSubAccounts

func (awscli *SAwsClient) GetSubAccounts() ([]cloudprovider.SSubAccount, error)

func (*SAwsClient) GetUser

func (self *SAwsClient) GetUser(name string) (*SUser, error)

func (*SAwsClient) ListAttachedGroupPolicies

func (self *SAwsClient) ListAttachedGroupPolicies(name string, marker string, maxItems int) (*SAttachedPolicies, error)

func (*SAwsClient) ListAttachedRolePolicies

func (self *SAwsClient) ListAttachedRolePolicies(roleName string, marker string, maxItems int, pathPrefix string) (*SAttachedPolicies, error)

func (*SAwsClient) ListAttachedUserPolicies

func (self *SAwsClient) ListAttachedUserPolicies(userName string, marker string, maxItems int, pathPrefix string) (*SAttachedPolicies, error)

func (*SAwsClient) ListGeoLocations

func (client *SAwsClient) ListGeoLocations() ([]GeoLocationDetails, error)

func (*SAwsClient) ListGroupPolicies

func (self *SAwsClient) ListGroupPolicies(name string, offset string, limit int) (*SPolicies, error)

func (*SAwsClient) ListGroupUsers

func (self *SAwsClient) ListGroupUsers(groupName string) ([]SUser, error)

func (*SAwsClient) ListGroups

func (self *SAwsClient) ListGroups(offset string, limit int, pathPrefix string) (*SGroups, error)

func (*SAwsClient) ListGroupsForUser

func (self *SAwsClient) ListGroupsForUser(name string, offset string, limit int) (*SGroups, error)

func (*SAwsClient) ListPolicies

func (self *SAwsClient) ListPolicies(marker string, maxItems int, onlyAttached bool, pathPrefix string, policyUsageFilter string, scope string) (*SPolicies, error)

func (*SAwsClient) ListPolicyVersions

func (self *SAwsClient) ListPolicyVersions(marker string, maxItems int, arn string) (*SPolicyVersions, error)

func (*SAwsClient) ListResourceRecordSet

func (client *SAwsClient) ListResourceRecordSet(id string) ([]SDnsRecord, error)

func (*SAwsClient) ListRolePolicies

func (self *SAwsClient) ListRolePolicies(roleName string, marker string, maxItems int) (*SPolicyNames, error)

func (*SAwsClient) ListRoles

func (self *SAwsClient) ListRoles(offset string, limit int, prefix string) (*SRoles, error)

func (*SAwsClient) ListSAMLProviders

func (self *SAwsClient) ListSAMLProviders() ([]SAMLProvider, error)

func (*SAwsClient) ListUserPolicies

func (self *SAwsClient) ListUserPolicies(userName string, marker string, maxItems int) (*SUserPolicies, error)

func (*SAwsClient) ListUsers

func (self *SAwsClient) ListUsers(offset string, limit int, pathPrefix string) (*SUsers, error)

func (*SAwsClient) QueryAccountBalance

func (self *SAwsClient) QueryAccountBalance() (*SAccountBalance, error)

func (*SAwsClient) RemoveUserFromGroup

func (self *SAwsClient) RemoveUserFromGroup(groupName, userName string) error

func (*SAwsClient) ResetUserPassword

func (self *SAwsClient) ResetUserPassword(name, password string) error

func (*SAwsClient) UpdateLoginProfile

func (self *SAwsClient) UpdateLoginProfile(name, password string) error

func (*SAwsClient) UpdateSAMLProvider

func (self *SAwsClient) UpdateSAMLProvider(arn, metadata string) (*SAMLProvider, error)

type SAwsLbTag

type SAwsLbTag struct {
	Key   string `xml:"Key"`
	Value string `xml:"Value"`
}

type SAwsRdsTag

type SAwsRdsTag struct {
	Key   string `xml:"Key"`
	Value string `xml:"Value"`
}

type SAwsTag

type SAwsTag struct {
	Key   string `xml:"key"`
	Value string `xml:"value"`
}

type SBucket

type SBucket struct {
	multicloud.SBaseBucket
	AwsTags

	Name         string
	CreationDate time.Time
	Location     string
	// contains filtered or unexported fields
}

func (*SBucket) AbortMultipartUpload

func (b *SBucket) AbortMultipartUpload(ctx context.Context, key string, uploadId string) error

func (*SBucket) CompleteMultipartUpload

func (b *SBucket) CompleteMultipartUpload(ctx context.Context, key string, uploadId string, partEtags []string) error

func (*SBucket) CopyObject

func (b *SBucket) CopyObject(ctx context.Context, destKey string, srcBucket, srcKey string, cannedAcl cloudprovider.TBucketACLType, storageClassStr string, meta http.Header) error

func (*SBucket) CopyPart

func (b *SBucket) CopyPart(ctx context.Context, key string, uploadId string, partNumber int, srcBucket string, srcKey string, srcOffset int64, srcLength int64) (string, error)

func (*SBucket) DeleteCORS

func (b *SBucket) DeleteCORS() error

func (*SBucket) DeleteObject

func (b *SBucket) DeleteObject(ctx context.Context, key string) error

func (*SBucket) DeletePolicy

func (b *SBucket) DeletePolicy(id []string) ([]cloudprovider.SBucketPolicyStatement, error)

func (*SBucket) DeleteWebSiteConf

func (b *SBucket) DeleteWebSiteConf() error

func (*SBucket) GetAccessUrls

func (b *SBucket) GetAccessUrls() []cloudprovider.SBucketAccessUrl

func (*SBucket) GetAcl

func (b *SBucket) GetAcl() cloudprovider.TBucketACLType

func (*SBucket) GetCORSRules

func (b *SBucket) GetCORSRules() ([]cloudprovider.SBucketCORSRule, error)

func (*SBucket) GetCreatedAt

func (b *SBucket) GetCreatedAt() time.Time

func (*SBucket) GetGlobalId

func (b *SBucket) GetGlobalId() string

func (*SBucket) GetIRegion

func (b *SBucket) GetIRegion() cloudprovider.ICloudRegion

func (*SBucket) GetLocation

func (b *SBucket) GetLocation() string

func (*SBucket) GetName

func (b *SBucket) GetName() string

func (*SBucket) GetObject

func (b *SBucket) GetObject(ctx context.Context, key string, rangeOpt *cloudprovider.SGetObjectRange) (io.ReadCloser, error)

func (*SBucket) GetPolicy

func (b *SBucket) GetPolicy() ([]cloudprovider.SBucketPolicyStatement, error)

func (*SBucket) GetProjectId

func (b *SBucket) GetProjectId() string

func (*SBucket) GetStats

func (b *SBucket) GetStats() cloudprovider.SBucketStats

func (*SBucket) GetStorageClass

func (b *SBucket) GetStorageClass() string

func (*SBucket) GetTags

func (b *SBucket) GetTags() (map[string]string, error)

func (*SBucket) GetTempUrl

func (b *SBucket) GetTempUrl(method string, key string, expire time.Duration) (string, error)

func (*SBucket) GetWebsiteConf

func (b *SBucket) GetWebsiteConf() (cloudprovider.SBucketWebsiteConf, error)

func (*SBucket) GetWebsiteUrl

func (b *SBucket) GetWebsiteUrl() string

func (*SBucket) ListMultipartUploads

func (b *SBucket) ListMultipartUploads() ([]cloudprovider.SBucketMultipartUploads, error)

func (*SBucket) ListObjects

func (b *SBucket) ListObjects(prefix string, marker string, delimiter string, maxCount int) (cloudprovider.SListObjectResult, error)

func (*SBucket) NewMultipartUpload

func (b *SBucket) NewMultipartUpload(ctx context.Context, key string, cannedAcl cloudprovider.TBucketACLType, storageClassStr string, meta http.Header) (string, error)

func (*SBucket) PutObject

func (b *SBucket) PutObject(ctx context.Context, key string, body io.Reader, sizeBytes int64, cannedAcl cloudprovider.TBucketACLType, storageClassStr string, meta http.Header) error

func (*SBucket) SetAcl

func (b *SBucket) SetAcl(aclStr cloudprovider.TBucketACLType) error

func (*SBucket) SetCORS

func (b *SBucket) SetCORS(rules []cloudprovider.SBucketCORSRule) error

func (*SBucket) SetPolicy

func (*SBucket) SetTags

func (b *SBucket) SetTags(tags map[string]string, replace bool) error

func (*SBucket) SetWebsite

func (b *SBucket) SetWebsite(websitConf cloudprovider.SBucketWebsiteConf) error

func (*SBucket) UploadPart

func (b *SBucket) UploadPart(ctx context.Context, key string, uploadId string, partIndex int, part io.Reader, partSize int64, offset, totalSize int64) (string, error)

type SBucketPolicyStatement

type SBucketPolicyStatement struct {
	Version   string                          `json:"Version"`
	Id        string                          `json:"Id"`
	Statement []SBucketPolicyStatementDetails `json:"Statement"`
}

type SBucketPolicyStatementDetails

type SBucketPolicyStatementDetails struct {
	Sid       string                            `json:"Sid"`
	Principal map[string][]string               `json:"Principal"`
	Action    []string                          `json:"Action"`
	Resource  []string                          `json:"Resource"`
	Effect    string                            `json:"Effect"`
	Condition map[string]map[string]interface{} `json:"Condition"`
}

type SCallerIdentity

type SCallerIdentity struct {
	Arn     string `xml:"Arn"`
	UserId  string `xml:"UserId"`
	Account string `xml:"Account"`
}

type SDBInstance

type SDBInstance struct {
	multicloud.SDBInstanceBase
	AwsTags

	AllocatedStorage int `xml:"AllocatedStorage"`
	//AssociatedRoles     string             `xml:"AssociatedRoles"`
	DBParameterGroups   []SDBParameterGroup `xml:"DBParameterGroups>DBParameterGroup"`
	AvailabilityZone    string              `xml:"AvailabilityZone"`
	DBSecurityGroups    string              `xml:"DBSecurityGroups"`
	EngineVersion       string              `xml:"EngineVersion"`
	MasterUsername      string              `xml:"MasterUsername"`
	InstanceCreateTime  time.Time           `xml:"InstanceCreateTime"`
	DBInstanceClass     string              `xml:"DBInstanceClass"`
	HttpEndpointEnabled bool                `xml:"HttpEndpointEnabled"`
	//ReadReplicaDBInstanceIdentifiers string             `xml:"ReadReplicaDBInstanceIdentifiers"`
	MonitoringInterval               int                      `xml:"MonitoringInterval"`
	DBInstanceStatus                 string                   `xml:"DBInstanceStatus"`
	BackupRetentionPeriod            int                      `xml:"BackupRetentionPeriod"`
	OptionGroupMemberships           []SOptionGroupMembership `xml:"OptionGroupMemberships>OptionGroupMembership"`
	CACertificateIdentifier          string                   `xml:"CACertificateIdentifier"`
	DbInstancePort                   int                      `xml:"DbInstancePort"`
	DbiResourceId                    string                   `xml:"DbiResourceId"`
	PreferredBackupWindow            string                   `xml:"PreferredBackupWindow"`
	DeletionProtection               bool                     `xml:"DeletionProtection"`
	DBInstanceIdentifier             string                   `xml:"DBInstanceIdentifier"`
	DBInstanceArn                    string                   `xml:"DBInstanceArn"`
	Endpoint                         SEndpoint                `xml:"Endpoint"`
	Engine                           string                   `xml:"Engine"`
	PubliclyAccessible               bool                     `xml:"PubliclyAccessible"`
	IAMDatabaseAuthenticationEnabled bool                     `xml:"IAMDatabaseAuthenticationEnabled"`
	PerformanceInsightsEnabled       bool                     `xml:"PerformanceInsightsEnabled"`
	DBName                           string                   `xml:"DBName"`
	MultiAZ                          bool                     `xml:"MultiAZ"`
	//DomainMemberships                string                  `xml:"DomainMemberships"`
	StorageEncrypted           bool               `xml:"StorageEncrypted"`
	DBSubnetGroup              SDBSubnetGroup     `xml:"DBSubnetGroup"`
	VpcSecurityGroups          SVpcSecurityGroups `xml:"VpcSecurityGroups"`
	LicenseModel               string             `xml:"LicenseModel"`
	PreferredMaintenanceWindow string             `xml:"PreferredMaintenanceWindow"`
	StorageType                string             `xml:"StorageType"`
	AutoMinorVersionUpgrade    bool               `xml:"AutoMinorVersionUpgrade"`
	CopyTagsToSnapshot         bool               `xml:"CopyTagsToSnapshot"`
	// contains filtered or unexported fields
}

func (*SDBInstance) ChangeConfig

func (*SDBInstance) ClosePublicConnection

func (rds *SDBInstance) ClosePublicConnection() error

func (*SDBInstance) CreateIBackup

func (*SDBInstance) Delete

func (self *SDBInstance) Delete() error

func (*SDBInstance) GetBillingType

func (rds *SDBInstance) GetBillingType() string

func (*SDBInstance) GetCategory

func (self *SDBInstance) GetCategory() string

func (*SDBInstance) GetConnectionStr

func (rds *SDBInstance) GetConnectionStr() string

func (*SDBInstance) GetCreatedAt

func (rds *SDBInstance) GetCreatedAt() time.Time

func (*SDBInstance) GetDBNetworks

func (rds *SDBInstance) GetDBNetworks() ([]cloudprovider.SDBInstanceNetwork, error)

func (*SDBInstance) GetDescription

func (rds *SDBInstance) GetDescription() string

func (*SDBInstance) GetDiskSizeGB

func (rds *SDBInstance) GetDiskSizeGB() int

func (*SDBInstance) GetEngine

func (rds *SDBInstance) GetEngine() string

func (*SDBInstance) GetEngineVersion

func (rds *SDBInstance) GetEngineVersion() string

func (*SDBInstance) GetExpiredAt

func (rds *SDBInstance) GetExpiredAt() time.Time

func (*SDBInstance) GetGlobalId

func (rds *SDBInstance) GetGlobalId() string

func (*SDBInstance) GetIDBInstanceAccounts

func (rds *SDBInstance) GetIDBInstanceAccounts() ([]cloudprovider.ICloudDBInstanceAccount, error)

func (*SDBInstance) GetIDBInstanceBackups

func (rds *SDBInstance) GetIDBInstanceBackups() ([]cloudprovider.ICloudDBInstanceBackup, error)

func (*SDBInstance) GetIDBInstanceDatabases

func (rds *SDBInstance) GetIDBInstanceDatabases() ([]cloudprovider.ICloudDBInstanceDatabase, error)

func (*SDBInstance) GetIDBInstanceParameters

func (rds *SDBInstance) GetIDBInstanceParameters() ([]cloudprovider.ICloudDBInstanceParameter, error)

func (*SDBInstance) GetIVpcId

func (rds *SDBInstance) GetIVpcId() string

func (*SDBInstance) GetId

func (rds *SDBInstance) GetId() string

func (*SDBInstance) GetInstanceType

func (rds *SDBInstance) GetInstanceType() string

func (*SDBInstance) GetInternalConnectionStr

func (rds *SDBInstance) GetInternalConnectionStr() string

func (*SDBInstance) GetMaintainTime

func (rds *SDBInstance) GetMaintainTime() string

func (*SDBInstance) GetName

func (rds *SDBInstance) GetName() string

func (*SDBInstance) GetPort

func (rds *SDBInstance) GetPort() int

func (*SDBInstance) GetStorageType

func (rds *SDBInstance) GetStorageType() string

func (*SDBInstance) GetVcpuCount

func (rds *SDBInstance) GetVcpuCount() int

func (*SDBInstance) GetVmemSizeMB

func (rds *SDBInstance) GetVmemSizeMB() int

func (*SDBInstance) GetZone1Id

func (rds *SDBInstance) GetZone1Id() string

func (*SDBInstance) GetZone2Id

func (rds *SDBInstance) GetZone2Id() string

func (*SDBInstance) GetZone3Id

func (rds *SDBInstance) GetZone3Id() string

func (*SDBInstance) OpenPublicConnection

func (rds *SDBInstance) OpenPublicConnection() error

func (*SDBInstance) Reboot

func (rds *SDBInstance) Reboot() error

func (*SDBInstance) Refresh

func (rds *SDBInstance) Refresh() error

func (*SDBInstance) SetTags

func (self *SDBInstance) SetTags(tags map[string]string, replace bool) error

func (*SDBInstance) Update

type SDBInstanceAccount

type SDBInstanceAccount struct {
	multicloud.SDBInstanceAccountBase

	AccountName string
	// contains filtered or unexported fields
}

func (*SDBInstanceAccount) GetName

func (account *SDBInstanceAccount) GetName() string

type SDBInstanceDatabase

type SDBInstanceDatabase struct {
	multicloud.SDBInstanceDatabaseBase
	AwsTags

	DBName string
}

func (*SDBInstanceDatabase) GetCharacterSet

func (database *SDBInstanceDatabase) GetCharacterSet() string

func (*SDBInstanceDatabase) GetGlobalId

func (database *SDBInstanceDatabase) GetGlobalId() string

func (*SDBInstanceDatabase) GetId

func (database *SDBInstanceDatabase) GetId() string

func (*SDBInstanceDatabase) GetName

func (database *SDBInstanceDatabase) GetName() string

func (*SDBInstanceDatabase) GetStatus

func (database *SDBInstanceDatabase) GetStatus() string

type SDBInstanceParameter

type SDBInstanceParameter struct {
	AllowedValues  string `xml:"AllowedValues"`
	ApplyType      string `xml:"ApplyType"`
	DataType       string `xml:"DataType"`
	Description    string `xml:"Description"`
	ApplyMethod    string `xml:"ApplyMethod"`
	ParameterName  string `xml:"ParameterName"`
	Source         string `xml:"Source"`
	IsModifiable   bool   `xml:"IsModifiable"`
	ParameterValue string `xml:"ParameterValue"`
	// contains filtered or unexported fields
}

func (*SDBInstanceParameter) GetDescription

func (param *SDBInstanceParameter) GetDescription() string

func (*SDBInstanceParameter) GetGlobalId

func (param *SDBInstanceParameter) GetGlobalId() string

func (*SDBInstanceParameter) GetKey

func (param *SDBInstanceParameter) GetKey() string

func (*SDBInstanceParameter) GetValue

func (param *SDBInstanceParameter) GetValue() string

type SDBInstanceParameters

type SDBInstanceParameters struct {
	Parameters []SDBInstanceParameter `xml:"Parameters>Parameter"`
}

type SDBInstanceSnapshot

type SDBInstanceSnapshot struct {
	multicloud.SDBInstanceBackupBase
	AwsTags

	AllocatedStorage                 int       `xml:"AllocatedStorage"`
	AvailabilityZone                 string    `xml:"AvailabilityZone"`
	DbiResourceId                    string    `xml:"DbiResourceId"`
	DBInstanceIdentifier             string    `xml:"DBInstanceIdentifier"`
	Engine                           string    `xml:"Engine"`
	VpcId                            string    `xml:"VpcId"`
	PercentProgress                  int       `xml:"PercentProgress"`
	IAMDatabaseAuthenticationEnabled bool      `xml:"IAMDatabaseAuthenticationEnabled"`
	DBSnapshotIdentifier             string    `xml:"DBSnapshotIdentifier"`
	OptionGroupName                  string    `xml:"OptionGroupName"`
	EngineVersion                    string    `xml:"EngineVersion"`
	MasterUsername                   string    `xml:"MasterUsername"`
	SnapshotType                     string    `xml:"SnapshotType"`
	InstanceCreateTime               time.Time `xml:"InstanceCreateTime"`
	DBSnapshotArn                    string    `xml:"DBSnapshotArn"`
	Encrypted                        bool      `xml:"Encrypted"`
	Port                             int       `xml:"Port"`
	LicenseModel                     string    `xml:"LicenseModel"`
	SnapshotCreateTime               time.Time `xml:"SnapshotCreateTime"`
	StorageType                      string    `xml:"StorageType"`
	Status                           string    `xml:"Status"`
	// contains filtered or unexported fields
}

func (*SDBInstanceSnapshot) Delete

func (self *SDBInstanceSnapshot) Delete() error

func (*SDBInstanceSnapshot) GetBackupMode

func (snapshot *SDBInstanceSnapshot) GetBackupMode() string

func (*SDBInstanceSnapshot) GetBackupSizeMb

func (snapshot *SDBInstanceSnapshot) GetBackupSizeMb() int

func (*SDBInstanceSnapshot) GetDBInstanceId

func (snapshot *SDBInstanceSnapshot) GetDBInstanceId() string

func (*SDBInstanceSnapshot) GetDBNames

func (snapshot *SDBInstanceSnapshot) GetDBNames() string

func (*SDBInstanceSnapshot) GetEndTime

func (snapshot *SDBInstanceSnapshot) GetEndTime() time.Time

func (*SDBInstanceSnapshot) GetEngine

func (snapshot *SDBInstanceSnapshot) GetEngine() string

func (*SDBInstanceSnapshot) GetEngineVersion

func (snapshot *SDBInstanceSnapshot) GetEngineVersion() string

func (*SDBInstanceSnapshot) GetGlobalId

func (snapshot *SDBInstanceSnapshot) GetGlobalId() string

func (*SDBInstanceSnapshot) GetId

func (snapshot *SDBInstanceSnapshot) GetId() string

func (*SDBInstanceSnapshot) GetName

func (snapshot *SDBInstanceSnapshot) GetName() string

func (*SDBInstanceSnapshot) GetStartTime

func (snapshot *SDBInstanceSnapshot) GetStartTime() time.Time

func (*SDBInstanceSnapshot) GetStatus

func (snapshot *SDBInstanceSnapshot) GetStatus() string

func (*SDBInstanceSnapshot) Refresh

func (self *SDBInstanceSnapshot) Refresh() error

type SDBInstanceSnapshots

type SDBInstanceSnapshots struct {
	Snapshots []SDBInstanceSnapshot `xml:"DBSnapshots>DBSnapshot"`
	Marker    string                `xml:"Marker"`
}

type SDBInstanceSpec

type SDBInstanceSpec struct {
	VcpuCount  int
	VmemSizeMb int
}

type SDBInstances

type SDBInstances struct {
	DBInstances []SDBInstance `xml:"DBInstances>DBInstance"`
	Marker      string        `xml:"Marker"`
}

type SDBParameterGroup

type SDBParameterGroup struct {
	DBParameterGroupName string `xml:"DBParameterGroupName"`
	ParameterApplyStatus string `xml:"ParameterApplyStatus"`
}

type SDBSubnetGroup

type SDBSubnetGroup struct {
	VpcId                    string    `xml:"VpcId"`
	Subnets                  []SSubnet `xml:"Subnets>Subnet"`
	SubnetGroupStatus        string    `xml:"SubnetGroupStatus"`
	DBSubnetGroupDescription string    `xml:"DBSubnetGroupDescription"`
	DBSubnetGroupName        string    `xml:"DBSubnetGroupName"`
}

type SDisk

type SDisk struct {
	multicloud.SDisk
	AwsTags

	AvailabilityZone string `xml:"availabilityZone"`
	VolumeId         string `xml:"volumeId"`

	Size        int                `xml:"size"`
	VolumeType  string             `xml:"volumeType"`
	State       string             `xml:"status"`
	Encrypted   bool               `xml:"encrypted"`
	SnapshotId  string             `xml:"snapshotId"`
	Iops        int                `xml:"iops"`
	Throughput  int                `xml:"throughput"`
	CreateTime  time.Time          `xml:"createTime"`
	Attachments []VolumeAttachment `xml:"attachmentSet>item"`
	// contains filtered or unexported fields
}

func (*SDisk) CreateISnapshot

func (self *SDisk) CreateISnapshot(ctx context.Context, name string, desc string) (cloudprovider.ICloudSnapshot, error)

func (*SDisk) Delete

func (self *SDisk) Delete(ctx context.Context) error

func (*SDisk) GetAccessPath

func (disk *SDisk) GetAccessPath() string

func (*SDisk) GetBillingType

func (self *SDisk) GetBillingType() string

func (*SDisk) GetCacheMode

func (self *SDisk) GetCacheMode() string

func (*SDisk) GetCreatedAt

func (self *SDisk) GetCreatedAt() time.Time

func (*SDisk) GetDescription

func (self *SDisk) GetDescription() string

func (*SDisk) GetDiskFormat

func (self *SDisk) GetDiskFormat() string

func (*SDisk) GetDiskSizeMB

func (self *SDisk) GetDiskSizeMB() int

func (*SDisk) GetDiskType

func (self *SDisk) GetDiskType() string

func (*SDisk) GetDriver

func (self *SDisk) GetDriver() string

func (*SDisk) GetExpiredAt

func (self *SDisk) GetExpiredAt() time.Time

func (*SDisk) GetFsFormat

func (self *SDisk) GetFsFormat() string

func (*SDisk) GetGlobalId

func (self *SDisk) GetGlobalId() string

func (*SDisk) GetISnapshot

func (self *SDisk) GetISnapshot(snapshotId string) (cloudprovider.ICloudSnapshot, error)

func (*SDisk) GetISnapshots

func (self *SDisk) GetISnapshots() ([]cloudprovider.ICloudSnapshot, error)

func (*SDisk) GetIStorage

func (self *SDisk) GetIStorage() (cloudprovider.ICloudStorage, error)

func (*SDisk) GetId

func (self *SDisk) GetId() string

func (*SDisk) GetIops

func (self *SDisk) GetIops() int

func (*SDisk) GetIsAutoDelete

func (self *SDisk) GetIsAutoDelete() bool

func (*SDisk) GetIsNonPersistent

func (self *SDisk) GetIsNonPersistent() bool

func (*SDisk) GetMountpoint

func (self *SDisk) GetMountpoint() string

func (*SDisk) GetName

func (self *SDisk) GetName() string

func (*SDisk) GetProjectId

func (self *SDisk) GetProjectId() string

func (*SDisk) GetStatus

func (self *SDisk) GetStatus() string

func (*SDisk) GetTemplateId

func (self *SDisk) GetTemplateId() string

func (*SDisk) Rebuild

func (self *SDisk) Rebuild(ctx context.Context) error

func (*SDisk) Refresh

func (self *SDisk) Refresh() error

func (*SDisk) Reset

func (self *SDisk) Reset(ctx context.Context, snapshotId string) (string, error)

func (*SDisk) Resize

func (self *SDisk) Resize(ctx context.Context, newSizeMb int64) error

type SDnsRecord

type SDnsRecord struct {
	Name            string `xml:"Name"`
	Type            string `xml:"Type"`
	TTL             int64  `xml:"TTL"`
	ResourceRecords []struct {
		Value string `xml:"Value"`
	} `xml:"ResourceRecords>ResourceRecord"`

	AliasTarget             SAliasTarget       `xml:"AliasTarget"`
	GeoLocation             GeoLocationDetails `xml:"GeoLocation"`
	Region                  string             `xml:"Region"`
	Failover                string             `xml:"Failover"`
	HealthCheckId           string             `xml:"HealthCheckId"`
	MultiValueAnswer        *bool              `xml:"MultiValueAnswer"`
	SetIdentifier           string             `xml:"SetIdentifier"`
	TrafficPolicyInstanceId string             `xml:"TrafficPolicyInstanceId"`
	Weight                  int64              `xml:"Weight"`
	// contains filtered or unexported fields
}

func (*SDnsRecord) Delete

func (self *SDnsRecord) Delete() error

func (*SDnsRecord) Disable

func (self *SDnsRecord) Disable() error

func (*SDnsRecord) Enable

func (self *SDnsRecord) Enable() error

func (*SDnsRecord) GetDnsName

func (self *SDnsRecord) GetDnsName() string

func (*SDnsRecord) GetDnsType

func (self *SDnsRecord) GetDnsType() cloudprovider.TDnsType

func (*SDnsRecord) GetDnsValue

func (self *SDnsRecord) GetDnsValue() string

func (*SDnsRecord) GetEnabled

func (self *SDnsRecord) GetEnabled() bool

func (*SDnsRecord) GetGlobalId

func (self *SDnsRecord) GetGlobalId() string

func (*SDnsRecord) GetMxPriority

func (self *SDnsRecord) GetMxPriority() int64

func (*SDnsRecord) GetPolicyType

func (self *SDnsRecord) GetPolicyType() cloudprovider.TDnsPolicyType

trafficpolicy 信息

func (*SDnsRecord) GetPolicyValue

func (self *SDnsRecord) GetPolicyValue() cloudprovider.TDnsPolicyValue

func (*SDnsRecord) GetStatus

func (self *SDnsRecord) GetStatus() string

func (*SDnsRecord) GetTTL

func (self *SDnsRecord) GetTTL() int64

func (*SDnsRecord) Update

func (self *SDnsRecord) Update(opts *cloudprovider.DnsRecord) error

type SDnsZone

type SDnsZone struct {
	multicloud.SVirtualResourceBase
	AwsTags

	Id                     string        `xml:"Id"`
	Name                   string        `xml:"Name"`
	CallerReference        string        `xml:"CallerReference"`
	Config                 DnsZoneConfig `xml:"Config"`
	ResourceRecordSetCount int64         `xml:"ResourceRecordSetCount"`
	// contains filtered or unexported fields
}

func (*SDnsZone) AddDnsRecord

func (self *SDnsZone) AddDnsRecord(opts *cloudprovider.DnsRecord) (string, error)

func (*SDnsZone) AddVpc

func (self *SDnsZone) AddVpc(vpc *cloudprovider.SPrivateZoneVpc) error

func (*SDnsZone) Delete

func (self *SDnsZone) Delete() error

func (*SDnsZone) GetDnsProductType

func (self *SDnsZone) GetDnsProductType() cloudprovider.TDnsProductType

func (*SDnsZone) GetGeoLocations

func (self *SDnsZone) GetGeoLocations() ([]GeoLocationDetails, error)

func (*SDnsZone) GetGlobalId

func (self *SDnsZone) GetGlobalId() string

func (*SDnsZone) GetICloudVpcIds

func (self *SDnsZone) GetICloudVpcIds() ([]string, error)

func (*SDnsZone) GetIDnsRecordById

func (self *SDnsZone) GetIDnsRecordById(id string) (cloudprovider.ICloudDnsRecord, error)

func (*SDnsZone) GetIDnsRecords

func (self *SDnsZone) GetIDnsRecords() ([]cloudprovider.ICloudDnsRecord, error)

func (*SDnsZone) GetId

func (self *SDnsZone) GetId() string

func (*SDnsZone) GetName

func (self *SDnsZone) GetName() string

func (*SDnsZone) GetStatus

func (self *SDnsZone) GetStatus() string

func (*SDnsZone) GetZoneType

func (self *SDnsZone) GetZoneType() cloudprovider.TDnsZoneType

func (*SDnsZone) Refresh

func (self *SDnsZone) Refresh() error

func (*SDnsZone) RemoveVpc

func (self *SDnsZone) RemoveVpc(vpc *cloudprovider.SPrivateZoneVpc) error

type SDnsZoneDetails

type SDnsZoneDetails struct {
	HostedZone SDnsZone `xml:"HostedZone"`
	VPC        []struct {
		VPCRegion string `xml:"VPCRegion"`
		VPCId     string `xml:"VPCId"`
	} `xml:"VPCs>VPC"`
}

type SEipAddress

type SEipAddress struct {
	multicloud.SEipBase
	AwsTags

	AllocationId            string `xml:"allocationId"`
	AssociationId           string `xml:"associationId"`
	CarrierIp               string `xml:"carrierIp"`
	CustomerOwnedIp         string `xml:"customerOwnedIp"`
	CustomerOwnedIpv4Pool   string `xml:"customerOwnedIpv4Pool"`
	Domain                  string `xml:"domain"`
	InstanceId              string `xml:"instanceId"`
	NetworkBorderGroup      string `xml:"networkBorderGroup"`
	NetworkInterfaceId      string `xml:"networkInterfaceId"`
	NetworkInterfaceOwnerId string `xml:"networkInterfaceOwnerId"`
	PrivateIpAddress        string `xml:"privateIpAddress"`
	PublicIp                string `xml:"publicIp"`
	PublicIpv4Pool          string `xml:"publicIpv4Pool"`
	// contains filtered or unexported fields
}

func (*SEipAddress) Associate

func (self *SEipAddress) Associate(conf *cloudprovider.AssociateConfig) error

func (*SEipAddress) ChangeBandwidth

func (self *SEipAddress) ChangeBandwidth(bw int) error

func (*SEipAddress) Delete

func (self *SEipAddress) Delete() error

func (*SEipAddress) Dissociate

func (self *SEipAddress) Dissociate() error

func (*SEipAddress) GetAssociationExternalId

func (self *SEipAddress) GetAssociationExternalId() string

func (*SEipAddress) GetAssociationType

func (self *SEipAddress) GetAssociationType() string

func (*SEipAddress) GetBandwidth

func (self *SEipAddress) GetBandwidth() int

func (*SEipAddress) GetBillingType

func (self *SEipAddress) GetBillingType() string

func (*SEipAddress) GetCreatedAt

func (self *SEipAddress) GetCreatedAt() time.Time

func (*SEipAddress) GetExpiredAt

func (self *SEipAddress) GetExpiredAt() time.Time

func (*SEipAddress) GetGlobalId

func (self *SEipAddress) GetGlobalId() string

func (*SEipAddress) GetINetworkId

func (self *SEipAddress) GetINetworkId() string

func (*SEipAddress) GetId

func (self *SEipAddress) GetId() string

func (*SEipAddress) GetInternetChargeType

func (self *SEipAddress) GetInternetChargeType() string

func (*SEipAddress) GetIpAddr

func (self *SEipAddress) GetIpAddr() string

func (*SEipAddress) GetMode

func (self *SEipAddress) GetMode() string

func (*SEipAddress) GetName

func (self *SEipAddress) GetName() string

func (*SEipAddress) GetProjectId

func (self *SEipAddress) GetProjectId() string

func (*SEipAddress) GetStatus

func (self *SEipAddress) GetStatus() string

func (*SEipAddress) IsEmulated

func (self *SEipAddress) IsEmulated() bool

func (*SEipAddress) Refresh

func (self *SEipAddress) Refresh() error

func (*SEipAddress) SetTags

func (self *SEipAddress) SetTags(tags map[string]string, replace bool) error

type SElastiCacheInstanceType

type SElastiCacheInstanceType struct {
	Vcpu      int
	MemeoryMb float32
}

type SElasticache

type SElasticache struct {
	multicloud.SElasticcacheBase
	AwsTags

	ARN                                string                         `xml:"ARN"`
	AtRestEncryptionEnabled            bool                           `xml:"AtRestEncryptionEnabled"`
	AuthTokenEnabled                   bool                           `xml:"AuthTokenEnabled"`
	AuthTokenLastModifiedDate          time.Time                      `xml:"AuthTokenLastModifiedDate"`
	AutoMinorVersionUpgrade            bool                           `xml:"AutoMinorVersionUpgrade"`
	CacheClusterCreateTime             time.Time                      `xml:"CacheClusterCreateTime"`
	CacheClusterId                     string                         `xml:"CacheClusterId"`
	CacheClusterStatus                 string                         `xml:"CacheClusterStatus"`
	CacheNodeType                      string                         `xml:"CacheNodeType"`
	CacheNodes                         []CacheNode                    `xml:"CacheNodes>CacheNode"`
	CacheParameterGroup                CacheParameterGroupStatus      `xml:"CacheParameterGroup"`
	CacheSecurityGroups                []CacheSecurityGroupMembership `xml:"CacheSecurityGroups>CacheSecurityGroup"`
	CacheSubnetGroupName               string                         `xml:"CacheSubnetGroupName"`
	ClientDownloadLandingPage          string                         `xml:"ClientDownloadLandingPage"`
	ConfigurationEndpoint              Endpoint                       `xml:"ConfigurationEndpoint"`
	Engine                             string                         `xml:"Engine"`
	EngineVersion                      string                         `xml:"EngineVersion"`
	LogDeliveryConfigurations          []LogDeliveryConfiguration     `xml:"LogDeliveryConfigurations>LogDeliveryConfiguration"`
	NotificationConfiguration          NotificationConfiguration      `xml:"NotificationConfiguration"`
	NumCacheNodes                      int64                          `xml:"NumCacheNodes"`
	PendingModifiedValues              PendingModifiedValues          `xml:"PendingModifiedValues"`
	PreferredAvailabilityZone          string                         `xml:"PreferredAvailabilityZone"`
	PreferredMaintenanceWindow         string                         `xml:"PreferredMaintenanceWindow"`
	PreferredOutpostArn                string                         `xml:"PreferredOutpostArn"`
	ReplicationGroupId                 string                         `xml:"ReplicationGroupId"`
	ReplicationGroupLogDeliveryEnabled bool                           `xml:"ReplicationGroupLogDeliveryEnabled"`
	SecurityGroups                     []SecurityGroupMembership      `xml:"SecurityGroups>member"`
	SnapshotRetentionLimit             int64                          `xml:"SnapshotRetentionLimit"`
	SnapshotWindow                     string                         `xml:"SnapshotWindow"`
	TransitEncryptionEnabled           bool                           `xml:"TransitEncryptionEnabled"`
	// contains filtered or unexported fields
}

func (*SElasticache) AllocatePublicConnection

func (self *SElasticache) AllocatePublicConnection(port int) (string, error)

func (*SElasticache) ChangeInstanceSpec

func (self *SElasticache) ChangeInstanceSpec(spec string) error

func (*SElasticache) CreateAcl

func (self *SElasticache) CreateAcl(aclName, securityIps string) (cloudprovider.ICloudElasticcacheAcl, error)

func (*SElasticache) CreateBackup

func (self *SElasticache) CreateBackup(desc string) (cloudprovider.ICloudElasticcacheBackup, error)

func (*SElasticache) Delete

func (self *SElasticache) Delete() error

func (*SElasticache) FlushInstance

func (*SElasticache) GetArchType

func (self *SElasticache) GetArchType() string

func (*SElasticache) GetAuthMode

func (self *SElasticache) GetAuthMode() string

func (*SElasticache) GetBillingType

func (self *SElasticache) GetBillingType() string

func (*SElasticache) GetCapacityMB

func (self *SElasticache) GetCapacityMB() int

func (*SElasticache) GetCreatedAt

func (self *SElasticache) GetCreatedAt() time.Time

func (*SElasticache) GetEngine

func (self *SElasticache) GetEngine() string

func (*SElasticache) GetEngineVersion

func (self *SElasticache) GetEngineVersion() string

func (*SElasticache) GetExpiredAt

func (self *SElasticache) GetExpiredAt() time.Time

func (*SElasticache) GetGlobalId

func (self *SElasticache) GetGlobalId() string

func (*SElasticache) GetICloudElasticcacheAccount

func (self *SElasticache) GetICloudElasticcacheAccount(accountId string) (cloudprovider.ICloudElasticcacheAccount, error)

func (*SElasticache) GetICloudElasticcacheAccounts

func (self *SElasticache) GetICloudElasticcacheAccounts() ([]cloudprovider.ICloudElasticcacheAccount, error)

func (*SElasticache) GetICloudElasticcacheAcl

func (self *SElasticache) GetICloudElasticcacheAcl(aclId string) (cloudprovider.ICloudElasticcacheAcl, error)

func (*SElasticache) GetICloudElasticcacheAcls

func (self *SElasticache) GetICloudElasticcacheAcls() ([]cloudprovider.ICloudElasticcacheAcl, error)

func (*SElasticache) GetICloudElasticcacheBackup

func (self *SElasticache) GetICloudElasticcacheBackup(backupId string) (cloudprovider.ICloudElasticcacheBackup, error)

func (*SElasticache) GetICloudElasticcacheBackups

func (self *SElasticache) GetICloudElasticcacheBackups() ([]cloudprovider.ICloudElasticcacheBackup, error)

func (*SElasticache) GetICloudElasticcacheParameters

func (self *SElasticache) GetICloudElasticcacheParameters() ([]cloudprovider.ICloudElasticcacheParameter, error)

func (*SElasticache) GetId

func (self *SElasticache) GetId() string

func (*SElasticache) GetInstanceType

func (self *SElasticache) GetInstanceType() string

func (*SElasticache) GetMaintainEndTime

func (self *SElasticache) GetMaintainEndTime() string

func (*SElasticache) GetMaintainStartTime

func (self *SElasticache) GetMaintainStartTime() string

func (*SElasticache) GetName

func (self *SElasticache) GetName() string

func (*SElasticache) GetNetworkId

func (self *SElasticache) GetNetworkId() string

func (*SElasticache) GetNetworkType

func (self *SElasticache) GetNetworkType() string

func (*SElasticache) GetNodeType

func (self *SElasticache) GetNodeType() string

func (*SElasticache) GetParameters

func (self *SElasticache) GetParameters() ([]SElasticacheParameter, error)

func (*SElasticache) GetPrivateConnectPort

func (self *SElasticache) GetPrivateConnectPort() int

func (*SElasticache) GetPrivateDNS

func (self *SElasticache) GetPrivateDNS() string

cluster mode(shard) 只有配置endpoint,no cluster mode 有primary/readonly endpoint

func (*SElasticache) GetPrivateIpAddr

func (self *SElasticache) GetPrivateIpAddr() string

func (*SElasticache) GetPublicConnectPort

func (self *SElasticache) GetPublicConnectPort() int

func (*SElasticache) GetPublicDNS

func (self *SElasticache) GetPublicDNS() string

func (*SElasticache) GetPublicIpAddr

func (self *SElasticache) GetPublicIpAddr() string

func (*SElasticache) GetSecurityGroupIds

func (self *SElasticache) GetSecurityGroupIds() ([]string, error)

func (*SElasticache) GetStatus

func (self *SElasticache) GetStatus() string

func (*SElasticache) GetTags

func (self *SElasticache) GetTags() (map[string]string, error)

func (*SElasticache) GetVpcId

func (self *SElasticache) GetVpcId() string

func (*SElasticache) GetZoneId

func (self *SElasticache) GetZoneId() string

func (*SElasticache) Refresh

func (self *SElasticache) Refresh() error

func (*SElasticache) ReleasePublicConnection

func (self *SElasticache) ReleasePublicConnection() error

func (*SElasticache) Renew

func (self *SElasticache) Renew(bc billing.SBillingCycle) error

func (*SElasticache) Restart

func (self *SElasticache) Restart() error

func (*SElasticache) SetMaintainTime

func (self *SElasticache) SetMaintainTime(maintainStartTime, maintainEndTime string) error

func (*SElasticache) SetTags

func (self *SElasticache) SetTags(tags map[string]string, replace bool) error

func (*SElasticache) UpdateAuthMode

func (self *SElasticache) UpdateAuthMode(noPwdAccess bool, password string) error

func (*SElasticache) UpdateBackupPolicy

func (*SElasticache) UpdateInstanceParameters

func (self *SElasticache) UpdateInstanceParameters(config jsonutils.JSONObject) error

func (*SElasticache) UpdateSecurityGroups

func (self *SElasticache) UpdateSecurityGroups(secgroupIds []string) error

type SElasticacheParameter

type SElasticacheParameter struct {
	multicloud.SElasticcacheParameterBase
	AwsTags

	AllowedValues        string `xml:"AllowedValues"`
	ChangeType           string `xml:"ChangeType"`
	DataType             string `xml:"DataType"`
	Description          string `xml:"Description"`
	IsModifiable         bool   `xml:"IsModifiable"`
	MinimumEngineVersion string `xml:"MinimumEngineVersion"`
	ParameterName        string `xml:"ParameterName"`
	ParameterValue       string `xml:"ParameterValue"`
	Source               string `xml:"Source"`
}

func (*SElasticacheParameter) GetDescription

func (self *SElasticacheParameter) GetDescription() string

func (*SElasticacheParameter) GetForceRestart

func (self *SElasticacheParameter) GetForceRestart() bool

func (*SElasticacheParameter) GetGlobalId

func (self *SElasticacheParameter) GetGlobalId() string

func (*SElasticacheParameter) GetId

func (self *SElasticacheParameter) GetId() string

func (*SElasticacheParameter) GetModifiable

func (self *SElasticacheParameter) GetModifiable() bool

func (*SElasticacheParameter) GetName

func (self *SElasticacheParameter) GetName() string

func (*SElasticacheParameter) GetParameterKey

func (self *SElasticacheParameter) GetParameterKey() string

func (*SElasticacheParameter) GetParameterValue

func (self *SElasticacheParameter) GetParameterValue() string

func (*SElasticacheParameter) GetParameterValueRange

func (self *SElasticacheParameter) GetParameterValueRange() string

func (*SElasticacheParameter) GetStatus

func (self *SElasticacheParameter) GetStatus() string

type SElasticacheSnapshop

type SElasticacheSnapshop struct {
	multicloud.SElasticcacheBackupBase
	AwsTags

	ARN                         string         `xml:"Arn"`
	AutoMinorVersionUpgrade     bool           `xml:"AutoMinorVersionUpgrade"`
	AutomaticFailover           string         `xml:"AutomaticFailover"`
	CacheClusterCreateTime      time.Time      `xml:"CacheClusterCreateTime"`
	CacheClusterId              string         `xml:"CacheClusterId"`
	CacheNodeType               string         `xml:"CacheNodeType"`
	CacheParameterGroupName     string         `xml:"CacheParameterGroupName"`
	CacheSubnetGroupName        string         `xml:"CacheSubnetGroupName"`
	Engine                      string         `xml:"Engine"`
	EngineVersion               string         `xml:"EngineVersion"`
	KmsKeyId                    string         `xml:"KmsKeyId"`
	NodeSnapshots               []NodeSnapshot `xml:"NodeSnapshots>NodeSnapshot"`
	NumCacheNodes               int64          `xml:"NumCacheNodes"`
	NumNodeGroups               int64          `xml:"NumNodeGroups"`
	Port                        int64          `xml:"Port"`
	PreferredAvailabilityZone   string         `xml:"PreferredAvailabilityZone"`
	PreferredMaintenanceWindow  string         `xml:"PreferredMaintenanceWindow"`
	PreferredOutpostArn         string         `xml:"PreferredOutpostArn"`
	ReplicationGroupDescription string         `xml:"ReplicationGroupDescription"`
	ReplicationGroupId          string         `xml:"ReplicaGroupId"`
	SnapshotName                string         `xml:"SnapshotName"`
	SnapshotRetentionLimit      int64          `xml:"SnapshotRetentionLimit"`
	SnapshotSource              string         `xml:"SnapshotSource"`
	SnapshotStatus              string         `xml:"SnapshotStatus"`
	SnapshotWindow              string         `xml:"SnapshotWindow"`
	TopicArn                    string         `xml:"TopicArn"`
	VpcId                       string         `xml:"VpcId"`
	// contains filtered or unexported fields
}

func (*SElasticacheSnapshop) Delete

func (self *SElasticacheSnapshop) Delete() error

func (*SElasticacheSnapshop) GetBackupMode

func (self *SElasticacheSnapshop) GetBackupMode() string

func (*SElasticacheSnapshop) GetBackupSizeMb

func (self *SElasticacheSnapshop) GetBackupSizeMb() int

func (*SElasticacheSnapshop) GetBackupType

func (self *SElasticacheSnapshop) GetBackupType() string

func (*SElasticacheSnapshop) GetDownloadURL

func (self *SElasticacheSnapshop) GetDownloadURL() string

func (*SElasticacheSnapshop) GetEndTime

func (self *SElasticacheSnapshop) GetEndTime() time.Time

func (*SElasticacheSnapshop) GetGlobalId

func (self *SElasticacheSnapshop) GetGlobalId() string

func (*SElasticacheSnapshop) GetId

func (self *SElasticacheSnapshop) GetId() string

func (*SElasticacheSnapshop) GetName

func (self *SElasticacheSnapshop) GetName() string

func (*SElasticacheSnapshop) GetStartTime

func (self *SElasticacheSnapshop) GetStartTime() time.Time

func (*SElasticacheSnapshop) GetStatus

func (self *SElasticacheSnapshop) GetStatus() string

func (*SElasticacheSnapshop) Refresh

func (self *SElasticacheSnapshop) Refresh() error

func (*SElasticacheSnapshop) RestoreInstance

func (self *SElasticacheSnapshop) RestoreInstance(instanceId string) error

type SElasticacheUser

type SElasticacheUser struct {
	multicloud.SElasticcacheAccountBase
	AwsTags

	ARN            string         `xml:"Arn"`
	AccessString   string         `xml:"AccessString"`
	Authentication Authentication `xml:"Authentication"`
	Engine         string         `xml:"Engine"`
	Status         string         `xml:"Status"`
	UserGroupIds   []string       `xml:"UserGroupIds>member"`
	UserId         string         `xml:"UserId"`
	UserName       string         `xml:"UserName"`
	// contains filtered or unexported fields
}

func (*SElasticacheUser) Delete

func (self *SElasticacheUser) Delete() error

func (*SElasticacheUser) GetAccountPrivilege

func (self *SElasticacheUser) GetAccountPrivilege() string

func (*SElasticacheUser) GetAccountType

func (self *SElasticacheUser) GetAccountType() string

func (*SElasticacheUser) GetGlobalId

func (self *SElasticacheUser) GetGlobalId() string

func (*SElasticacheUser) GetId

func (self *SElasticacheUser) GetId() string

func (*SElasticacheUser) GetName

func (self *SElasticacheUser) GetName() string

func (*SElasticacheUser) GetStatus

func (self *SElasticacheUser) GetStatus() string

func (*SElasticacheUser) Refresh

func (self *SElasticacheUser) Refresh() error

func (*SElasticacheUser) ResetPassword

func (*SElasticacheUser) UpdateAccount

type SElb

type SElb struct {
	multicloud.SVirtualResourceBase

	AwsTags
	Type                  string             `xml:"Type"`
	Scheme                string             `xml:"Scheme"`
	IPAddressType         string             `xml:"IpAddressType"`
	VpcId                 string             `xml:"VpcId"`
	AvailabilityZones     []AvailabilityZone `xml:"AvailabilityZones>member"`
	CreatedTime           string             `xml:"CreatedTime"`
	CanonicalHostedZoneID string             `xml:"CanonicalHostedZoneId"`
	DNSName               string             `xml:"DNSName"`
	SecurityGroups        []string           `xml:"SecurityGroups>member"`
	LoadBalancerName      string             `xml:"LoadBalancerName"`
	State                 State              `xml:"State"`
	LoadBalancerArn       string             `xml:"LoadBalancerArn"`
	// contains filtered or unexported fields
}

func (*SElb) Delete

func (self *SElb) Delete(ctx context.Context) error

func (*SElb) GetAddress

func (self *SElb) GetAddress() string

func (*SElb) GetAddressType

func (self *SElb) GetAddressType() string

func (*SElb) GetChargeType

func (self *SElb) GetChargeType() string

func (*SElb) GetDescription

func (self *SElb) GetDescription() string

func (*SElb) GetEgressMbps

func (self *SElb) GetEgressMbps() int

func (*SElb) GetGlobalId

func (self *SElb) GetGlobalId() string

func (*SElb) GetIEIP

func (self *SElb) GetIEIP() (cloudprovider.ICloudEIP, error)

func (*SElb) GetILoadBalancerBackendGroupById

func (self *SElb) GetILoadBalancerBackendGroupById(groupId string) (cloudprovider.ICloudLoadbalancerBackendGroup, error)

func (*SElb) GetILoadBalancerBackendGroups

func (self *SElb) GetILoadBalancerBackendGroups() ([]cloudprovider.ICloudLoadbalancerBackendGroup, error)

func (*SElb) GetILoadBalancerListenerById

func (self *SElb) GetILoadBalancerListenerById(listenerId string) (cloudprovider.ICloudLoadbalancerListener, error)

func (*SElb) GetILoadBalancerListeners

func (self *SElb) GetILoadBalancerListeners() ([]cloudprovider.ICloudLoadbalancerListener, error)

func (*SElb) GetId

func (self *SElb) GetId() string

func (*SElb) GetLoadbalancerSpec

func (self *SElb) GetLoadbalancerSpec() string

func (*SElb) GetName

func (self *SElb) GetName() string

func (*SElb) GetNetworkIds

func (self *SElb) GetNetworkIds() []string

func (*SElb) GetNetworkType

func (self *SElb) GetNetworkType() string

func (*SElb) GetStatus

func (self *SElb) GetStatus() string

func (*SElb) GetSysTags

func (self *SElb) GetSysTags() map[string]string

func (*SElb) GetTags

func (self *SElb) GetTags() (map[string]string, error)

func (*SElb) GetVpcId

func (self *SElb) GetVpcId() string

func (*SElb) GetZone1Id

func (self *SElb) GetZone1Id() string

func (*SElb) GetZoneId

func (self *SElb) GetZoneId() string

func (*SElb) Refresh

func (self *SElb) Refresh() error

func (*SElb) SetTags

func (self *SElb) SetTags(tags map[string]string, replace bool) error

func (*SElb) Start

func (self *SElb) Start() error

func (*SElb) Stop

func (self *SElb) Stop() error

type SElbBackend

type SElbBackend struct {
	multicloud.SResourceBase
	AwsTags

	Target       Target       `json:"Target"`
	TargetHealth TargetHealth `json:"TargetHealth"`
	// contains filtered or unexported fields
}

func (*SElbBackend) GetBackendId

func (self *SElbBackend) GetBackendId() string

func (*SElbBackend) GetBackendRole

func (self *SElbBackend) GetBackendRole() string

func (*SElbBackend) GetBackendType

func (self *SElbBackend) GetBackendType() string

func (*SElbBackend) GetDescription

func (self *SElbBackend) GetDescription() string

func (*SElbBackend) GetGlobalId

func (self *SElbBackend) GetGlobalId() string

func (*SElbBackend) GetId

func (self *SElbBackend) GetId() string

func (*SElbBackend) GetIpAddress

func (self *SElbBackend) GetIpAddress() string

func (*SElbBackend) GetName

func (self *SElbBackend) GetName() string

func (*SElbBackend) GetPort

func (self *SElbBackend) GetPort() int

func (*SElbBackend) GetProjectId

func (self *SElbBackend) GetProjectId() string

func (*SElbBackend) GetStatus

func (self *SElbBackend) GetStatus() string

func (*SElbBackend) GetWeight

func (self *SElbBackend) GetWeight() int

func (*SElbBackend) IsEmulated

func (self *SElbBackend) IsEmulated() bool

func (*SElbBackend) Refresh

func (self *SElbBackend) Refresh() error

func (*SElbBackend) SyncConf

func (self *SElbBackend) SyncConf(ctx context.Context, port, weight int) error

type SElbBackendGroup

type SElbBackendGroup struct {
	multicloud.SResourceBase
	AwsTags

	TargetGroupName            string   `xml:"TargetGroupName"`
	Protocol                   string   `xml:"Protocol"`
	Port                       int64    `xml:"Port"`
	VpcID                      string   `xml:"VpcId"`
	TargetType                 string   `xml:"TargetType"`
	HealthyThresholdCount      int      `xml:"HealthyThresholdCount"`
	Matcher                    Matcher  `xml:"Matcher"`
	UnhealthyThresholdCount    int      `xml:"UnhealthyThresholdCount"`
	HealthCheckPath            string   `xml:"HealthCheckPath"`
	HealthCheckProtocol        string   `xml:"HealthCheckProtocol"`
	HealthCheckPort            string   `xml:"HealthCheckPort"`
	HealthCheckIntervalSeconds int      `xml:"HealthCheckIntervalSeconds"`
	HealthCheckTimeoutSeconds  int      `xml:"HealthCheckTimeoutSeconds"`
	TargetGroupArn             string   `xml:"TargetGroupArn"`
	LoadBalancerArns           []string `xml:"LoadBalancerArns>member"`
	// contains filtered or unexported fields
}

func (*SElbBackendGroup) AddBackendServer

func (self *SElbBackendGroup) AddBackendServer(serverId string, weight int, port int) (cloudprovider.ICloudLoadbalancerBackend, error)

func (*SElbBackendGroup) Delete

func (self *SElbBackendGroup) Delete(ctx context.Context) error

func (*SElbBackendGroup) GetDescription

func (self *SElbBackendGroup) GetDescription() string

func (*SElbBackendGroup) GetGlobalId

func (self *SElbBackendGroup) GetGlobalId() string

func (*SElbBackendGroup) GetHealthCheck

func (self *SElbBackendGroup) GetHealthCheck() (*cloudprovider.SLoadbalancerHealthCheck, error)

func (*SElbBackendGroup) GetILoadbalancer

func (self *SElbBackendGroup) GetILoadbalancer() cloudprovider.ICloudLoadbalancer

func (*SElbBackendGroup) GetILoadbalancerBackendById

func (self *SElbBackendGroup) GetILoadbalancerBackendById(backendId string) (cloudprovider.ICloudLoadbalancerBackend, error)

func (*SElbBackendGroup) GetILoadbalancerBackends

func (self *SElbBackendGroup) GetILoadbalancerBackends() ([]cloudprovider.ICloudLoadbalancerBackend, error)

func (*SElbBackendGroup) GetId

func (self *SElbBackendGroup) GetId() string

func (*SElbBackendGroup) GetName

func (self *SElbBackendGroup) GetName() string

func (*SElbBackendGroup) GetProjectId

func (self *SElbBackendGroup) GetProjectId() string

func (*SElbBackendGroup) GetProtocolType

func (self *SElbBackendGroup) GetProtocolType() string

func (*SElbBackendGroup) GetScheduler

func (self *SElbBackendGroup) GetScheduler() string

func (*SElbBackendGroup) GetStatus

func (self *SElbBackendGroup) GetStatus() string

func (*SElbBackendGroup) GetStickySession

func (self *SElbBackendGroup) GetStickySession() (*cloudprovider.SLoadbalancerStickySession, error)

func (*SElbBackendGroup) GetSysTags

func (self *SElbBackendGroup) GetSysTags() map[string]string

func (*SElbBackendGroup) GetType

func (self *SElbBackendGroup) GetType() string

func (*SElbBackendGroup) IsDefault

func (self *SElbBackendGroup) IsDefault() bool

func (*SElbBackendGroup) Refresh

func (self *SElbBackendGroup) Refresh() error

func (*SElbBackendGroup) RemoveBackendServer

func (self *SElbBackendGroup) RemoveBackendServer(serverId string, weight int, port int) error

func (*SElbBackendGroup) Sync

type SElbBackends

type SElbBackends struct {
	TargetHealthDescriptions []SElbBackend `xml:"TargetHealthDescriptions>member"`
}

type SElbCertificate

type SElbCertificate struct {
	multicloud.SResourceBase
	AwsTags

	Path                  string    `json:"Path"`
	ServerCertificateName string    `json:"ServerCertificateName"`
	ServerCertificateID   string    `json:"ServerCertificateId"`
	Arn                   string    `json:"Arn"`
	UploadDate            time.Time `json:"UploadDate"`
	Expiration            time.Time `json:"Expiration"`
	PublicKey             string
	// contains filtered or unexported fields
}

func (*SElbCertificate) Delete

func (self *SElbCertificate) Delete() error

func (*SElbCertificate) GetCommonName

func (self *SElbCertificate) GetCommonName() string

func (*SElbCertificate) GetDescription

func (self *SElbCertificate) GetDescription() string

func (*SElbCertificate) GetExpireTime

func (self *SElbCertificate) GetExpireTime() time.Time

func (*SElbCertificate) GetFingerprint

func (self *SElbCertificate) GetFingerprint() string

func (*SElbCertificate) GetGlobalId

func (self *SElbCertificate) GetGlobalId() string

func (*SElbCertificate) GetId

func (self *SElbCertificate) GetId() string

func (*SElbCertificate) GetName

func (self *SElbCertificate) GetName() string

func (*SElbCertificate) GetPrivateKey

func (self *SElbCertificate) GetPrivateKey() string

func (*SElbCertificate) GetProjectId

func (self *SElbCertificate) GetProjectId() string

func (*SElbCertificate) GetPublickKey

func (self *SElbCertificate) GetPublickKey() string

func (*SElbCertificate) GetStatus

func (self *SElbCertificate) GetStatus() string

func (*SElbCertificate) GetSubjectAlternativeNames

func (self *SElbCertificate) GetSubjectAlternativeNames() string

func (*SElbCertificate) IsEmulated

func (self *SElbCertificate) IsEmulated() bool

func (*SElbCertificate) ParsePublicKey

func (self *SElbCertificate) ParsePublicKey() (*x509.Certificate, error)

func (*SElbCertificate) Refresh

func (self *SElbCertificate) Refresh() error

func (*SElbCertificate) Sync

func (self *SElbCertificate) Sync(name, privateKey, publickKey string) error

type SElbListener

type SElbListener struct {
	multicloud.SResourceBase
	multicloud.SLoadbalancerRedirectBase
	AwsTags

	Port            int             `json:"Port"`
	Protocol        string          `json:"Protocol"`
	DefaultActions  []DefaultAction `json:"DefaultActions"`
	SSLPolicy       string          `json:"SslPolicy"`
	Certificates    []Certificate   `json:"Certificates"`
	LoadBalancerArn string          `json:"LoadBalancerArn"`
	ListenerArn     string          `json:"ListenerArn"`
	// contains filtered or unexported fields
}

func (*SElbListener) ChangeCertificate

func (self *SElbListener) ChangeCertificate(ctx context.Context, opts *cloudprovider.ListenerCertificateOptions) error

func (*SElbListener) ChangeScheduler

func (*SElbListener) Delete

func (self *SElbListener) Delete(ctx context.Context) error

func (*SElbListener) GetAclId

func (self *SElbListener) GetAclId() string

func (*SElbListener) GetAclStatus

func (self *SElbListener) GetAclStatus() string

func (*SElbListener) GetAclType

func (self *SElbListener) GetAclType() string

func (*SElbListener) GetBackendConnectTimeout

func (self *SElbListener) GetBackendConnectTimeout() int

func (*SElbListener) GetBackendGroupId

func (self *SElbListener) GetBackendGroupId() string

func (*SElbListener) GetBackendServerPort

func (self *SElbListener) GetBackendServerPort() int

func (*SElbListener) GetCertificateId

func (self *SElbListener) GetCertificateId() string

func (*SElbListener) GetClientIdleTimeout

func (self *SElbListener) GetClientIdleTimeout() int

func (*SElbListener) GetDescription

func (self *SElbListener) GetDescription() string

func (*SElbListener) GetEgressMbps

func (self *SElbListener) GetEgressMbps() int

func (*SElbListener) GetGlobalId

func (self *SElbListener) GetGlobalId() string

func (*SElbListener) GetHealthCheck

func (self *SElbListener) GetHealthCheck() string

func (*SElbListener) GetHealthCheckCode

func (self *SElbListener) GetHealthCheckCode() string

func (*SElbListener) GetHealthCheckDomain

func (self *SElbListener) GetHealthCheckDomain() string

func (*SElbListener) GetHealthCheckExp

func (self *SElbListener) GetHealthCheckExp() string

func (*SElbListener) GetHealthCheckFail

func (self *SElbListener) GetHealthCheckFail() int

func (*SElbListener) GetHealthCheckInterval

func (self *SElbListener) GetHealthCheckInterval() int

func (*SElbListener) GetHealthCheckReq

func (self *SElbListener) GetHealthCheckReq() string

func (*SElbListener) GetHealthCheckRise

func (self *SElbListener) GetHealthCheckRise() int

func (*SElbListener) GetHealthCheckTimeout

func (self *SElbListener) GetHealthCheckTimeout() int

func (*SElbListener) GetHealthCheckType

func (self *SElbListener) GetHealthCheckType() string

func (*SElbListener) GetHealthCheckURI

func (self *SElbListener) GetHealthCheckURI() string

func (*SElbListener) GetILoadBalancerListenerRuleById

func (self *SElbListener) GetILoadBalancerListenerRuleById(ruleId string) (cloudprovider.ICloudLoadbalancerListenerRule, error)

func (*SElbListener) GetILoadbalancerListenerRules

func (self *SElbListener) GetILoadbalancerListenerRules() ([]cloudprovider.ICloudLoadbalancerListenerRule, error)

func (*SElbListener) GetId

func (self *SElbListener) GetId() string

func (*SElbListener) GetListenerPort

func (self *SElbListener) GetListenerPort() int

func (*SElbListener) GetListenerType

func (self *SElbListener) GetListenerType() string

func (*SElbListener) GetName

func (self *SElbListener) GetName() string

func (*SElbListener) GetProjectId

func (self *SElbListener) GetProjectId() string

func (*SElbListener) GetScheduler

func (self *SElbListener) GetScheduler() string

func (*SElbListener) GetStatus

func (self *SElbListener) GetStatus() string

func (*SElbListener) GetStickySession

func (self *SElbListener) GetStickySession() string

func (*SElbListener) GetStickySessionCookie

func (self *SElbListener) GetStickySessionCookie() string

func (*SElbListener) GetStickySessionCookieTimeout

func (self *SElbListener) GetStickySessionCookieTimeout() int

func (*SElbListener) GetStickySessionType

func (self *SElbListener) GetStickySessionType() string

func (*SElbListener) GetTLSCipherPolicy

func (self *SElbListener) GetTLSCipherPolicy() string

func (*SElbListener) GzipEnabled

func (self *SElbListener) GzipEnabled() bool

func (*SElbListener) HTTP2Enabled

func (self *SElbListener) HTTP2Enabled() bool

func (*SElbListener) IsEmulated

func (self *SElbListener) IsEmulated() bool

func (*SElbListener) Refresh

func (self *SElbListener) Refresh() error

func (*SElbListener) SetAcl

func (listerner *SElbListener) SetAcl(ctx context.Context, opts *cloudprovider.ListenerAclOptions) error

func (*SElbListener) SetHealthCheck

func (self *SElbListener) SetHealthCheck(ctx context.Context, opts *cloudprovider.ListenerHealthCheckOptions) error

func (*SElbListener) Start

func (self *SElbListener) Start() error

func (*SElbListener) Stop

func (self *SElbListener) Stop() error

func (*SElbListener) XForwardedForEnabled

func (self *SElbListener) XForwardedForEnabled() bool

type SElbListenerRule

type SElbListenerRule struct {
	multicloud.SResourceBase
	multicloud.SLoadbalancerRedirectBase
	AwsTags

	Priority      string      `json:"Priority"`
	IsDefaultRule bool        `json:"IsDefault"`
	Actions       []Action    `json:"Actions"`
	RuleArn       string      `json:"RuleArn"`
	Conditions    []Condition `json:"Conditions"`
	// contains filtered or unexported fields
}

func (*SElbListenerRule) Delete

func (self *SElbListenerRule) Delete(ctx context.Context) error

func (*SElbListenerRule) GetBackendGroupId

func (self *SElbListenerRule) GetBackendGroupId() string

func (*SElbListenerRule) GetCondition

func (self *SElbListenerRule) GetCondition() string

func (*SElbListenerRule) GetDescription

func (self *SElbListenerRule) GetDescription() string

func (*SElbListenerRule) GetDomain

func (self *SElbListenerRule) GetDomain() string

func (*SElbListenerRule) GetGlobalId

func (self *SElbListenerRule) GetGlobalId() string

func (*SElbListenerRule) GetId

func (self *SElbListenerRule) GetId() string

func (*SElbListenerRule) GetName

func (self *SElbListenerRule) GetName() string

func (*SElbListenerRule) GetPath

func (self *SElbListenerRule) GetPath() string

func (*SElbListenerRule) GetProjectId

func (self *SElbListenerRule) GetProjectId() string

func (*SElbListenerRule) GetStatus

func (self *SElbListenerRule) GetStatus() string

func (*SElbListenerRule) IsDefault

func (self *SElbListenerRule) IsDefault() bool

func (*SElbListenerRule) IsEmulated

func (self *SElbListenerRule) IsEmulated() bool

func (*SElbListenerRule) Refresh

func (self *SElbListenerRule) Refresh() error

type SElbListenerRules

type SElbListenerRules struct {
	Rules      []SElbListenerRule `xml:"Rules>member"`
	NextMarker string
}

type SElbListeners

type SElbListeners struct {
	NextMarker string
	Listeners  []SElbListener `xml:"Listeners>member"`
}

type SElbs

type SElbs struct {
	LoadBalancers []SElb `xml:"LoadBalancers>member"`
	NextMarker    string `xml:"NextMarker"`
}

type SEndpoint

type SEndpoint struct {
	HostedZoneId string `xml:"HostedZoneId"`
	Address      string `xml:"Address"`
	Port         int    `xml:"Port"`
}

type SEvent

type SEvent struct {
	// The AWS access key ID that was used to sign the request. If the request was
	// made with temporary security credentials, this is the access key ID of the
	// temporary credentials.
	AccessKeyId string `type:"string"`

	// A JSON string that contains a representation of the event returned.
	CloudTrailEvent string `type:"string"`

	// The CloudTrail ID of the event returned.
	EventId string `type:"string"`

	// The name of the event returned.
	EventName string `type:"string"`

	// The AWS service that the request was made to.
	EventSource string `type:"string"`

	// The date and time of the event returned.
	EventTime time.Time `type:"timestamp"`

	// Information about whether the event is a write event or a read event.
	ReadOnly string `type:"string"`

	// A list of resources referenced by the event returned.
	Resources []SEventResource `type:"list"`

	// A user name or role name of the requester that called the API in the event
	// returned.
	Username string `type:"string"`
}

func (*SEvent) GetAccount

func (self *SEvent) GetAccount() string

func (*SEvent) GetAction

func (self *SEvent) GetAction() string

func (*SEvent) GetCreatedAt

func (self *SEvent) GetCreatedAt() time.Time

func (*SEvent) GetName

func (self *SEvent) GetName() string

func (*SEvent) GetRequest

func (self *SEvent) GetRequest() jsonutils.JSONObject

func (*SEvent) GetRequestId

func (self *SEvent) GetRequestId() string

func (*SEvent) GetResourceType

func (self *SEvent) GetResourceType() string

func (*SEvent) GetService

func (self *SEvent) GetService() string

func (*SEvent) IsSuccess

func (self *SEvent) IsSuccess() bool

type SEventResource

type SEventResource struct {
	// The name of the resource referenced by the event returned. These are user-created
	// names whose values will depend on the environment. For example, the resource
	// name might be "auto-scaling-test-group" for an Auto Scaling Group or "i-1234567"
	// for an EC2 Instance.
	ResourceName string `type:"string"`

	// The type of a resource referenced by the event returned. When the resource
	// type cannot be determined, null is returned. Some examples of resource types
	// are: Instance for EC2, Trail for CloudTrail, DBInstance for RDS, and AccessKey
	// for IAM. To learn more about how to look up and filter events by the resource
	// types supported for a service, see Filtering CloudTrail Events (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/view-cloudtrail-events-console.html#filtering-cloudtrail-events).
	ResourceType string `type:"string"`
}

type SExportTask

type SExportTask struct {
	ExportTaskId string `xml:"exportTaskId"`
	State        string `xml:"state"`
}

type SGroup

type SGroup struct {
	Path       string    `xml:"Path"`
	GroupName  string    `xml:"GroupName"`
	GroupId    string    `xml:"GroupId"`
	Arn        string    `xml:"Arn"`
	CreateDate time.Time `xml:"CreateDate"`
	// contains filtered or unexported fields
}

func (*SGroup) AddUser

func (self *SGroup) AddUser(userName string) error

func (*SGroup) AttachCustomPolicy

func (self *SGroup) AttachCustomPolicy(policyId string) error

func (*SGroup) AttachSystemPolicy

func (self *SGroup) AttachSystemPolicy(policyId string) error

func (*SGroup) Delete

func (self *SGroup) Delete() error

func (*SGroup) DetachCustomPolicy

func (self *SGroup) DetachCustomPolicy(policyId string) error

func (*SGroup) DetachSystemPolicy

func (self *SGroup) DetachSystemPolicy(policyId string) error

func (*SGroup) GetDescription

func (self *SGroup) GetDescription() string

func (*SGroup) GetGlobalId

func (self *SGroup) GetGlobalId() string

func (*SGroup) GetICloudusers

func (self *SGroup) GetICloudusers() ([]cloudprovider.IClouduser, error)

func (*SGroup) GetICustomCloudpolicies

func (self *SGroup) GetICustomCloudpolicies() ([]cloudprovider.ICloudpolicy, error)

func (*SGroup) GetISystemCloudpolicies

func (self *SGroup) GetISystemCloudpolicies() ([]cloudprovider.ICloudpolicy, error)

func (*SGroup) GetName

func (self *SGroup) GetName() string

func (*SGroup) ListPolicies

func (self *SGroup) ListPolicies() ([]SAttachedPolicy, error)

func (*SGroup) RemoveUser

func (self *SGroup) RemoveUser(userName string) error

type SGroupDetails

type SGroupDetails struct {
	Group       SGroup  `xml:"Group"`
	Users       []SUser `xml:"Users>member"`
	IsTruncated bool    `xml:"IsTruncated"`
	Marker      string  `xml:"Marker"`
}

type SGroupSet

type SGroupSet struct {
	GroupId   string `xml:"groupId"`
	GroupName string `xml:"groupName"`
}

type SGroups

type SGroups struct {
	Groups      []SGroup `xml:"Groups>member"`
	IsTruncated bool     `xml:"IsTruncated"`
	Marker      string   `xml:"Marker"`
}

type SHost

type SHost struct {
	multicloud.SHostBase
	// contains filtered or unexported fields
}

func (*SHost) CreateVM

func (*SHost) GetAccessIp

func (self *SHost) GetAccessIp() string

func (*SHost) GetAccessMac

func (self *SHost) GetAccessMac() string

func (*SHost) GetCpuCount

func (self *SHost) GetCpuCount() int

func (*SHost) GetCpuDesc

func (self *SHost) GetCpuDesc() string

func (*SHost) GetCpuMhz

func (self *SHost) GetCpuMhz() int

func (*SHost) GetEnabled

func (self *SHost) GetEnabled() bool

func (*SHost) GetGlobalId

func (self *SHost) GetGlobalId() string

func (*SHost) GetHostStatus

func (self *SHost) GetHostStatus() string

func (*SHost) GetHostType

func (self *SHost) GetHostType() string

func (*SHost) GetIHostNics

func (host *SHost) GetIHostNics() ([]cloudprovider.ICloudHostNetInterface, error)

func (*SHost) GetIStorageById

func (self *SHost) GetIStorageById(id string) (cloudprovider.ICloudStorage, error)

func (*SHost) GetIStorages

func (self *SHost) GetIStorages() ([]cloudprovider.ICloudStorage, error)

func (*SHost) GetIVMById

func (self *SHost) GetIVMById(id string) (cloudprovider.ICloudVM, error)

func (*SHost) GetIVMs

func (self *SHost) GetIVMs() ([]cloudprovider.ICloudVM, error)

func (*SHost) GetId

func (self *SHost) GetId() string

func (*SHost) GetInstanceById

func (self *SHost) GetInstanceById(instanceId string) (*SInstance, error)

func (*SHost) GetIsMaintenance

func (self *SHost) GetIsMaintenance() bool

func (*SHost) GetMemSizeMB

func (self *SHost) GetMemSizeMB() int

func (*SHost) GetName

func (self *SHost) GetName() string

func (*SHost) GetNodeCount

func (self *SHost) GetNodeCount() int8

func (*SHost) GetSN

func (self *SHost) GetSN() string

func (*SHost) GetStatus

func (self *SHost) GetStatus() string

func (*SHost) GetStorageSizeMB

func (self *SHost) GetStorageSizeMB() int

func (*SHost) GetStorageType

func (self *SHost) GetStorageType() string

func (*SHost) GetSysInfo

func (self *SHost) GetSysInfo() jsonutils.JSONObject

func (*SHost) GetVersion

func (self *SHost) GetVersion() string

func (*SHost) IsEmulated

func (self *SHost) IsEmulated() bool

func (*SHost) Refresh

func (self *SHost) Refresh() error

type SImage

type SImage struct {
	multicloud.SImageBase
	AwsTags

	Architecture       string          `xml:"architecture"`
	CreationTime       time.Time       `xml:"creationDate"`
	Description        string          `xml:"description"`
	ImageId            string          `xml:"imageId"`
	ImageName          string          `xml:"name"`
	ImageType          string          `xml:"imageType"`
	EnaSupport         bool            `xml:"enaSupport"`
	Platform           string          `xml:"platformDetails"`
	Status             ImageStatusType `xml:"imageState"`
	OwnerType          string          `xml:"imageOwnerAlias"`
	RootDeviceName     string          `xml:"rootDeviceName"`
	BlockDeviceMapping []struct {
		DeviceName string `xml:"deviceName"`
		Ebs        struct {
			SnapshotId          string `xml:"snapshotId"`
			VolumeSize          int    `xml:"volumeSize"`
			DeleteOnTermination bool   `xml:"deleteOnTermination"`
			VolumeType          string `xml:"volumeType"`
			Iops                int    `xml:"iops"`
			Encrypted           bool   `xml:"encrypted"`
		} `xml:"ebs"`
	} `xml:"blockDeviceMapping>item"`

	Public             bool   `xml:"isPublic"`
	Hypervisor         string `xml:"hypervisor"`
	VirtualizationType string `xml:"virtualizationType"`
	OwnerId            string `xml:"imageOwnerId"`
	// contains filtered or unexported fields
}

func (*SImage) Delete

func (self *SImage) Delete(ctx context.Context) error

func (*SImage) GetBios

func (self *SImage) GetBios() cloudprovider.TBiosType

func (*SImage) GetBlockDeviceNames

func (self *SImage) GetBlockDeviceNames() []string

func (*SImage) GetCreatedAt

func (self *SImage) GetCreatedAt() time.Time

func (*SImage) GetFullOsName

func (self *SImage) GetFullOsName() string

func (*SImage) GetGlobalId

func (self *SImage) GetGlobalId() string

func (*SImage) GetIStoragecache

func (self *SImage) GetIStoragecache() cloudprovider.ICloudStoragecache

func (*SImage) GetId

func (self *SImage) GetId() string

func (*SImage) GetImageFormat

func (self *SImage) GetImageFormat() string

func (*SImage) GetImageStatus

func (self *SImage) GetImageStatus() string

func (*SImage) GetImageType

func (self *SImage) GetImageType() cloudprovider.TImageType

func (*SImage) GetMinOsDiskSizeGb

func (self *SImage) GetMinOsDiskSizeGb() int

func (*SImage) GetMinRamSizeMb

func (self *SImage) GetMinRamSizeMb() int

func (*SImage) GetName

func (self *SImage) GetName() string

func (*SImage) GetOsArch

func (self *SImage) GetOsArch() string

func (*SImage) GetOsDist

func (self *SImage) GetOsDist() string

func (*SImage) GetOsLang

func (self *SImage) GetOsLang() string

func (*SImage) GetOsType

func (self *SImage) GetOsType() cloudprovider.TOsType

func (*SImage) GetOsVersion

func (self *SImage) GetOsVersion() string

func (*SImage) GetSizeByte

func (self *SImage) GetSizeByte() int64

func (*SImage) GetStatus

func (self *SImage) GetStatus() string

func (*SImage) IsEmulated

func (self *SImage) IsEmulated() bool

func (*SImage) Refresh

func (self *SImage) Refresh() error

type SInstance

type SInstance struct {
	multicloud.SInstanceBase
	AwsTags

	AmiLaunchIndex        int64                        `xml:"amiLaunchIndex"`
	Architecture          string                       `xml:"architecture"`
	BlockDeviceMappings   []InstanceBlockDeviceMapping `xml:"blockDeviceMapping>item"`
	BootMode              string                       `xml:"bootMode"`
	CapacityReservationId string                       `xml:"capacityReservationId"`
	ClientToken           string                       `xml:"clientToken"`
	CpuOptions            struct {
		CoreCount      int `xml:"coreCount"`
		ThreadsPerCore int `xml:"threadsPerCore"`
	} `xml:"cpuOptions"`
	EbsOptimized           bool `xml:"ebsOptimized"`
	ElasticGpuAssociations []struct {
		ElasticGpuAssociationId    string `xml:"elasticGpuAssociationId"`
		ElasticGpuAssociationState string `xml:"elasticGpuAssociationState"`
		ElasticGpuAssociationTime  string `xml:"elasticGpuAssociationTime"`
		ElasticGpuId               string `xml:"elasticGpuId"`
	} `xml:"elasticGpuAssociationSet>item"`
	EnaSupport     bool `xml:"enaSupport"`
	EnclaveOptions struct {
		Enabled bool `xml:"enabled"`
	} `xml:"enclaveOptions"`
	HibernationOptions struct {
		Configured bool `xml:"configured"`
	} `xml:"hibernationOptions"`
	Hypervisor         string `xml:"hypervisor"`
	IamInstanceProfile struct {
		Id  string `xml:"id"`
		Arn string `xml:"arn"`
	} `xml:"iamInstanceProfile"`
	ImageId           string    `xml:"imageId"`
	InstanceId        string    `xml:"instanceId"`
	InstanceLifecycle string    `xml:"instanceLifecycle"`
	InstanceType      string    `xml:"instanceType"`
	KernelId          string    `xml:"kernelId"`
	KeyName           string    `xml:"keyName"`
	LaunchTime        time.Time `xml:"launchTime"`
	Licenses          []struct {
		LicenseConfigurationArn string `xml:"licenseConfigurationArn"`
	} `xml:"licenseSet>item"`
	MetadataOptions struct {
		HttpEndpoint            string `xml:"httpEndpoint"`
		HttpPutResponseHopLimit int64  `xml:"httpPutResponseHopLimit"`
		HttpTokens              string `xml:"httpTokens"`
		State                   string `xml:"state"`
	} `xml:"metadataOptions"`
	Monitoring struct {
		State string `xml:"state"`
	} `xml:"monitoring"`
	NetworkInterfaces []SNetworkInterface `xml:"networkInterfaceSet>item"`
	OutpostArn        string              `xml:"outpostArn"`
	Placement         struct {
		Affinity             string `xml:"affinity"`
		AvailabilityZone     string `xml:"availabilityZone"`
		GroupName            string `xml:"groupName"`
		HostId               string `xml:"hostId"`
		HostResourceGroupArn string `xml:"hostResourceGroupArn"`
		PartitionNumber      int64  `xml:"partitionNumber"`
		SpreadDomain         string `xml:"spreadDomain"`
		Tenancy              string `xml:"tenancy"`
	} `xml:"placement"`
	Platform         string `xml:"platform"`
	PrivateDnsName   string `xml:"privateDnsName"`
	PrivateIpAddress string `xml:"privateIpAddress"`
	ProductCodes     []struct {
		ProductCodeId   string `xml:"productCode"`
		ProductCodeType string `xml:"type"`
	} `xml:"productCodes>item"`
	PublicDnsName   string `xml:"dnsName"`
	PublicIpAddress string `xml:"ipAddress"`
	RamdiskId       string `xml:"ramdiskId"`
	RootDeviceName  string `xml:"rootDeviceName"`
	RootDeviceType  string `xml:"rootDeviceType"`
	SecurityGroups  []struct {
		GroupId   string `xml:"groupId"`
		GroupName string `xml:"groupName"`
	} `xml:"groupSet>item"`
	SourceDestCheck       bool   `xml:"sourceDestCheck"`
	SpotInstanceRequestId string `xml:"spotInstanceRequestId"`
	SriovNetSupport       string `xml:"sriovNetSupport"`
	State                 struct {
		Code int64  `xml:"code"`
		Name string `xml:"name"`
	} `xml:"instanceState"`
	StateReason struct {
		Code    string `xml:"code"`
		Message string `xml:"message"`
	} `xml:"stateReason"`
	StateTransitionReason string `xml:"reason"`
	SubnetId              string `xml:"subnetId"`
	VirtualizationType    string `xml:"virtualizationType"`
	VpcId                 string `xml:"vpcId"`
	// contains filtered or unexported fields
}

func (*SInstance) AttachDisk

func (self *SInstance) AttachDisk(ctx context.Context, diskId string) error

func (*SInstance) ChangeConfig

func (self *SInstance) ChangeConfig(ctx context.Context, config *cloudprovider.SManagedVMChangeConfig) error

func (*SInstance) ChangeConfig2

func (self *SInstance) ChangeConfig2(ctx context.Context, instanceType string) error

func (*SInstance) DeleteVM

func (self *SInstance) DeleteVM(ctx context.Context) error

func (*SInstance) DeployVM

func (self *SInstance) DeployVM(ctx context.Context, name string, username string, password string, publicKey string, deleteKeypair bool, desc string) error

func (*SInstance) DetachDisk

func (self *SInstance) DetachDisk(ctx context.Context, diskId string) error

func (*SInstance) GetAccountId

func (self *SInstance) GetAccountId() string

func (*SInstance) GetBillingType

func (self *SInstance) GetBillingType() string

func (*SInstance) GetBios

func (self *SInstance) GetBios() cloudprovider.TBiosType

func (*SInstance) GetBootOrder

func (self *SInstance) GetBootOrder() string

func (*SInstance) GetCreatedAt

func (self *SInstance) GetCreatedAt() time.Time

func (*SInstance) GetDescription

func (ins *SInstance) GetDescription() string

func (*SInstance) GetError

func (self *SInstance) GetError() error

func (*SInstance) GetExpiredAt

func (self *SInstance) GetExpiredAt() time.Time

func (*SInstance) GetFullOsName

func (self *SInstance) GetFullOsName() string

func (*SInstance) GetGlobalId

func (self *SInstance) GetGlobalId() string

func (*SInstance) GetHostname

func (self *SInstance) GetHostname() string

func (*SInstance) GetHypervisor

func (self *SInstance) GetHypervisor() string

func (*SInstance) GetIDisks

func (self *SInstance) GetIDisks() ([]cloudprovider.ICloudDisk, error)

func (*SInstance) GetIEIP

func (self *SInstance) GetIEIP() (cloudprovider.ICloudEIP, error)

func (*SInstance) GetIHost

func (self *SInstance) GetIHost() cloudprovider.ICloudHost

func (*SInstance) GetINics

func (self *SInstance) GetINics() ([]cloudprovider.ICloudNic, error)

func (*SInstance) GetId

func (self *SInstance) GetId() string

func (*SInstance) GetImage

func (self *SInstance) GetImage() (*SImage, error)

func (*SInstance) GetInstanceType

func (self *SInstance) GetInstanceType() string

func (*SInstance) GetInternetMaxBandwidthOut

func (self *SInstance) GetInternetMaxBandwidthOut() int

func (*SInstance) GetMachine

func (self *SInstance) GetMachine() string

func (*SInstance) GetName

func (self *SInstance) GetName() string

func (*SInstance) GetOsArch

func (self *SInstance) GetOsArch() string

func (*SInstance) GetOsDist

func (self *SInstance) GetOsDist() string

func (*SInstance) GetOsLang

func (self *SInstance) GetOsLang() string

func (*SInstance) GetOsType

func (self *SInstance) GetOsType() cloudprovider.TOsType

func (*SInstance) GetOsVersion

func (self *SInstance) GetOsVersion() string

func (*SInstance) GetProjectId

func (self *SInstance) GetProjectId() string

func (*SInstance) GetSecurityGroupIds

func (self *SInstance) GetSecurityGroupIds() ([]string, error)

func (*SInstance) GetStatus

func (self *SInstance) GetStatus() string

func (*SInstance) GetThroughput

func (self *SInstance) GetThroughput() int

func (*SInstance) GetUserData

func (self *SInstance) GetUserData() (string, error)

func (*SInstance) GetVNCInfo

func (*SInstance) GetVcpuCount

func (self *SInstance) GetVcpuCount() int

func (*SInstance) GetVdi

func (self *SInstance) GetVdi() string

func (*SInstance) GetVga

func (self *SInstance) GetVga() string

func (*SInstance) GetVmemSizeMB

func (self *SInstance) GetVmemSizeMB() int

func (*SInstance) RebuildRoot

func (*SInstance) Refresh

func (self *SInstance) Refresh() error

func (*SInstance) Renew

func (self *SInstance) Renew(bc billing.SBillingCycle) error

func (*SInstance) SaveImage

func (*SInstance) SetSecurityGroups

func (self *SInstance) SetSecurityGroups(secgroupIds []string) error

func (*SInstance) SetTags

func (self *SInstance) SetTags(tags map[string]string, replace bool) error

func (*SInstance) StartVM

func (self *SInstance) StartVM(ctx context.Context) error

func (*SInstance) StopVM

func (self *SInstance) StopVM(ctx context.Context, opts *cloudprovider.ServerStopOptions) error

func (*SInstance) UpdateUserData

func (self *SInstance) UpdateUserData(userData string) error

func (*SInstance) UpdateVM

type SInstanceAttr

type SInstanceAttr struct {
	DisableApiTermination *bool
	InstanceType          string
	UserData              string
}

type SInstanceNic

type SInstanceNic struct {
	cloudprovider.DummyICloudNic
	// contains filtered or unexported fields
}

func (*SInstanceNic) AssignAddress

func (self *SInstanceNic) AssignAddress(ipAddrs []string) error

func (*SInstanceNic) GetDriver

func (self *SInstanceNic) GetDriver() string

func (*SInstanceNic) GetINetworkId

func (self *SInstanceNic) GetINetworkId() string

func (*SInstanceNic) GetIP

func (self *SInstanceNic) GetIP() string

func (*SInstanceNic) GetId

func (self *SInstanceNic) GetId() string

func (*SInstanceNic) GetMAC

func (self *SInstanceNic) GetMAC() string

func (*SInstanceNic) GetSubAddress

func (self *SInstanceNic) GetSubAddress() ([]string, error)

func (*SInstanceNic) InClassicNetwork

func (self *SInstanceNic) InClassicNetwork() bool

func (*SInstanceNic) UnassignAddress

func (self *SInstanceNic) UnassignAddress(ipAddrs []string) error

type SInstanceType

type SInstanceType struct {
	Product         Product `json:"product"`
	ServiceCode     string  `json:"serviceCode"`
	Terms           Terms   `json:"terms"`
	Version         string  `json:"version"`
	PublicationDate string  `json:"publicationDate"`
}

type SInternetGateway

type SInternetGateway struct {
	multicloud.SResourceBase
	AwsTags

	Attachments       []InternetGatewayAttachment `xml:"attachmentSet>item"`
	InternetGatewayId string                      `xml:"internetGatewayId"`
	OwnerId           string                      `xml:"ownerId"`
	// contains filtered or unexported fields
}

func (*SInternetGateway) GetDescription

func (self *SInternetGateway) GetDescription() string

func (*SInternetGateway) GetGlobalId

func (i *SInternetGateway) GetGlobalId() string

func (*SInternetGateway) GetId

func (i *SInternetGateway) GetId() string

func (*SInternetGateway) GetName

func (i *SInternetGateway) GetName() string

func (*SInternetGateway) GetStatus

func (i *SInternetGateway) GetStatus() string

func (*SInternetGateway) IsEmulated

func (i *SInternetGateway) IsEmulated() bool

func (*SInternetGateway) Refresh

func (i *SInternetGateway) Refresh() error

type SIpAddress

type SIpAddress struct {
	IpAddress []string
}

type SKeypair

type SKeypair struct {
	KeyPairFingerPrint string    `xml:"keyFingerprint"`
	KeyName            string    `xml:"keyName"`
	KeyPairId          string    `xml:"keyPairId"`
	KeyType            string    `xml:"keyType"`
	CreateTime         time.Time `xml:"createTime"`
	PublicKey          string    `xml:"publicKey"`
}

type SKubeCluster

type SKubeCluster struct {
	multicloud.SResourceBase
	AwsTags

	Name               string
	Arn                string  `json:"arn"`
	CreatedAt          float64 `json:"createdAt"`
	Version            string  `json:"version"`
	Endpoint           string  `json:"endpoint"`
	RoleArn            string  `json:"roleArn"`
	ResourcesVpcConfig struct {
		SubnetIds              []string `json:"subnetIds"`
		SecurityGroupIds       []string `json:"securityGroupIds"`
		ClusterSecurityGroupId string   `json:"clusterSecurityGroupId"`
		VpcId                  string   `json:"vpcId"`
		EndpointPublicAccess   bool     `json:"endpointPublicAccess"`
		EndpointPrivateAccess  bool     `json:"endpointPrivateAccess"`
		PublicAccessCidrs      []string `json:"publicAccessCidrs"`
	} `json:"resourcesVpcConfig"`
	KubernetesNetworkConfig struct {
		ServiceIpv4CIDR string `json:"serviceIpv4Cidr"`
		ServiceIpv6CIDR string `json:"serviceIpv6Cidr"`
		IPFamily        string `json:"ipFamily"`
	} `json:"kubernetesNetworkConfig"`
	Logging struct {
		ClusterLogging []ClusterLogging `json:"clusterLogging"`
	} `json:"logging"`
	Identity             string `json:"identity"`
	Status               string `json:"status"`
	CertificateAuthority struct {
		Data string
	} `json:"certificateAuthority"`
	ClientRequestToken string `json:"clientRequestToken"`
	PlatformVersion    string `json:"platformVersion"`
	EncryptionConfig   string `json:"encryptionConfig"`
	ConnectorConfig    string `json:"connectorConfig"`
	Id                 string `json:"id"`
	Health             string `json:"health"`
	// contains filtered or unexported fields
}

func (*SKubeCluster) CreateIKubeNodePool

func (*SKubeCluster) Delete

func (self *SKubeCluster) Delete(isRetain bool) error

func (*SKubeCluster) GetCreatedAt

func (self *SKubeCluster) GetCreatedAt() time.Time

func (*SKubeCluster) GetDescription

func (self *SKubeCluster) GetDescription() string

func (*SKubeCluster) GetEnabled

func (self *SKubeCluster) GetEnabled() bool

func (*SKubeCluster) GetGlobalId

func (self *SKubeCluster) GetGlobalId() string

func (*SKubeCluster) GetIKubeNodePools

func (self *SKubeCluster) GetIKubeNodePools() ([]cloudprovider.ICloudKubeNodePool, error)

func (*SKubeCluster) GetIKubeNodes

func (self *SKubeCluster) GetIKubeNodes() ([]cloudprovider.ICloudKubeNode, error)

func (*SKubeCluster) GetId

func (self *SKubeCluster) GetId() string

func (*SKubeCluster) GetKubeConfig

func (self *SKubeCluster) GetKubeConfig(private bool, expireMinutes int) (*cloudprovider.SKubeconfig, error)

func (*SKubeCluster) GetName

func (self *SKubeCluster) GetName() string

func (*SKubeCluster) GetNetworkIds

func (self *SKubeCluster) GetNetworkIds() []string

func (*SKubeCluster) GetStatus

func (self *SKubeCluster) GetStatus() string

func (*SKubeCluster) GetVersion

func (self *SKubeCluster) GetVersion() string

func (*SKubeCluster) GetVpcId

func (self *SKubeCluster) GetVpcId() string

func (*SKubeCluster) Refresh

func (self *SKubeCluster) Refresh() error

type SLoginProfile

type SLoginProfile struct {
	LoginProfile LoginProfile `xml:"LoginProfile"`
}

type SMountInstances

type SMountInstances struct {
	MountInstance []string
}

type SNatGateway

type SNatGateway struct {
	multicloud.SNatGatewayBase
	AwsTags

	ConnectivityType     string               `xml:"connectivityType"`
	CreateTime           time.Time            `xml:"createTime"`
	DeleteTime           time.Time            `xml:"deleteTime"`
	FailureCode          string               `xml:"failureCode"`
	FailureMessage       string               `xml:"failureMessage"`
	NatGatewayAddresses  []NatGatewayAddress  `xml:"natGatewayAddressSet>item"`
	NatGatewayId         string               `xml:"natGatewayId"`
	ProvisionedBandwidth ProvisionedBandwidth `xml:"provisionedBandwidth"`
	// pending | failed | available | deleting | deleted
	State    string `xml:"state"`
	SubnetId string `xml:"subnetId"`
	VpcId    string `xml:"vpcId"`
	// contains filtered or unexported fields
}

func (*SNatGateway) CreateINatDEntry

func (self *SNatGateway) CreateINatDEntry(rule cloudprovider.SNatDRule) (cloudprovider.ICloudNatDEntry, error)

func (*SNatGateway) CreateINatSEntry

func (self *SNatGateway) CreateINatSEntry(rule cloudprovider.SNatSRule) (cloudprovider.ICloudNatSEntry, error)

func (*SNatGateway) Delete

func (self *SNatGateway) Delete() error

func (*SNatGateway) GetBandwidthMb

func (self *SNatGateway) GetBandwidthMb() int

func (*SNatGateway) GetGlobalId

func (self *SNatGateway) GetGlobalId() string

func (*SNatGateway) GetIEips

func (self *SNatGateway) GetIEips() ([]cloudprovider.ICloudEIP, error)

func (*SNatGateway) GetINatDEntryByID

func (self *SNatGateway) GetINatDEntryByID(id string) (cloudprovider.ICloudNatDEntry, error)

func (*SNatGateway) GetINatDTable

func (self *SNatGateway) GetINatDTable() ([]cloudprovider.ICloudNatDEntry, error)

func (*SNatGateway) GetINatSEntryByID

func (self *SNatGateway) GetINatSEntryByID(id string) (cloudprovider.ICloudNatSEntry, error)

func (*SNatGateway) GetINatSTable

func (self *SNatGateway) GetINatSTable() ([]cloudprovider.ICloudNatSEntry, error)

func (*SNatGateway) GetINetworkId

func (self *SNatGateway) GetINetworkId() string

func (*SNatGateway) GetId

func (self *SNatGateway) GetId() string

func (*SNatGateway) GetIpAddr

func (self *SNatGateway) GetIpAddr() string

func (*SNatGateway) GetName

func (self *SNatGateway) GetName() string

func (*SNatGateway) GetNatSpec

func (self *SNatGateway) GetNatSpec() string

func (*SNatGateway) GetStatus

func (self *SNatGateway) GetStatus() string

func (*SNatGateway) Refresh

func (self *SNatGateway) Refresh() error

func (*SNatGateway) SetTags

func (self *SNatGateway) SetTags(tags map[string]string, replace bool) error

type SNetwork

type SNetwork struct {
	multicloud.SResourceBase
	AwsTags

	AvailableIpAddressCount int    `xml:"availableIpAddressCount"`
	CidrBlock               string `xml:"cidrBlock"`
	DefaultForAz            bool   `xml:"DefaultForAz"`
	State                   string `xml:"state"`
	SubnetId                string `xml:"subnetId"`
	VpcId                   string `xml:"vpcId"`
	AvailabilityZone        string `xml:"availabilityZone"`
	// contains filtered or unexported fields
}

func (*SNetwork) Delete

func (self *SNetwork) Delete() error

func (*SNetwork) GetAllocTimeoutSeconds

func (self *SNetwork) GetAllocTimeoutSeconds() int

func (*SNetwork) GetDescription

func (self *SNetwork) GetDescription() string

func (*SNetwork) GetGateway

func (self *SNetwork) GetGateway() string

func (*SNetwork) GetGlobalId

func (self *SNetwork) GetGlobalId() string

func (*SNetwork) GetIWire

func (self *SNetwork) GetIWire() cloudprovider.ICloudWire

func (*SNetwork) GetId

func (self *SNetwork) GetId() string

func (*SNetwork) GetIpEnd

func (self *SNetwork) GetIpEnd() string

func (*SNetwork) GetIpMask

func (self *SNetwork) GetIpMask() int8

func (*SNetwork) GetIpStart

func (self *SNetwork) GetIpStart() string

每个子网 CIDR 块中的前四个 IP 地址和最后一个 IP 地址无法使用

func (*SNetwork) GetIsPublic

func (self *SNetwork) GetIsPublic() bool

func (*SNetwork) GetName

func (self *SNetwork) GetName() string

func (*SNetwork) GetProjectId

func (self *SNetwork) GetProjectId() string

func (*SNetwork) GetPublicScope

func (self *SNetwork) GetPublicScope() rbacscope.TRbacScope

func (*SNetwork) GetServerType

func (self *SNetwork) GetServerType() string

func (*SNetwork) GetStatus

func (self *SNetwork) GetStatus() string

func (*SNetwork) GetSysTags

func (self *SNetwork) GetSysTags() map[string]string

func (*SNetwork) Refresh

func (self *SNetwork) Refresh() error

type SNetworkInterface

type SNetworkInterface struct {
	Association struct {
		CarrierIp     string `xml:"carrierIp"`
		IpOwnerId     string `xml:"ipOwnerId"`
		PublicDnsName string `xml:"publicDnsName"`
		PublicIp      string `xml:"publicIp"`
	} `xml:"association"`
	NetworkInterfaceId    string              `xml:"networkInterfaceId"`
	SubnetId              string              `xml:"subnetId"`
	VpcId                 string              `xml:"vpcId"`
	AvailabilityZone      string              `xml:"availabilityZone"`
	Description           string              `xml:"description"`
	OwnerId               string              `xml:"ownerId"`
	RequesterId           string              `xml:"requesterId"`
	RequesterManaged      bool                `xml:"requesterManaged"`
	Status                string              `xml:"status"`
	MacAddress            string              `xml:"macAddress"`
	PrivateIpAddress      string              `xml:"privateIpAddress"`
	PrivateDnsName        string              `xml:"privateDnsName"`
	SourceDestCheck       bool                `xml:"sourceDestCheck"`
	GroupSet              []SGroupSet         `xml:"groupSet>item"`
	Attachment            SAttachment         `xml:"attachment"`
	PrivateIpAddressesSet []SPrivateIpAddress `xml:"privateIpAddressesSet>item"`
	InterfaceType         string              `xml:"interfaceType"`
}

type SNodeGroup

type SNodeGroup struct {
	multicloud.SResourceBase

	AwsTags

	ClusterName   string
	NodegroupName string
	DiskSize      int
	Status        string
	InstanceTypes []string
	Subnets       []string
	ScalingConfig struct {
		DesiredSize int
		MaxSize     int
		MinSize     int
	}
	// contains filtered or unexported fields
}

func (*SNodeGroup) Delete

func (self *SNodeGroup) Delete() error

func (*SNodeGroup) GetDescription

func (self *SNodeGroup) GetDescription() string

func (*SNodeGroup) GetDesiredInstanceCount

func (self *SNodeGroup) GetDesiredInstanceCount() int

func (*SNodeGroup) GetGlobalId

func (self *SNodeGroup) GetGlobalId() string

func (*SNodeGroup) GetId

func (self *SNodeGroup) GetId() string

func (*SNodeGroup) GetInstanceTypes

func (self *SNodeGroup) GetInstanceTypes() []string

func (*SNodeGroup) GetMaxInstanceCount

func (self *SNodeGroup) GetMaxInstanceCount() int

func (*SNodeGroup) GetMinInstanceCount

func (self *SNodeGroup) GetMinInstanceCount() int

func (*SNodeGroup) GetName

func (self *SNodeGroup) GetName() string

func (*SNodeGroup) GetNetworkIds

func (self *SNodeGroup) GetNetworkIds() []string

func (*SNodeGroup) GetRootDiskSizeGb

func (self *SNodeGroup) GetRootDiskSizeGb() int

func (*SNodeGroup) GetStatus

func (self *SNodeGroup) GetStatus() string

func (*SNodeGroup) Refresh

func (self *SNodeGroup) Refresh() error

type SObject

type SObject struct {
	cloudprovider.SBaseCloudObject
	// contains filtered or unexported fields
}

func (*SObject) GetAcl

func (o *SObject) GetAcl() cloudprovider.TBucketACLType

func (*SObject) GetIBucket

func (o *SObject) GetIBucket() cloudprovider.ICloudBucket

func (*SObject) GetMeta

func (o *SObject) GetMeta() http.Header

func (*SObject) SetAcl

func (o *SObject) SetAcl(aclStr cloudprovider.TBucketACLType) error

func (*SObject) SetMeta

func (o *SObject) SetMeta(ctx context.Context, meta http.Header) error

type SOptionGroupMembership

type SOptionGroupMembership struct {
	OptionGroupName string `xml:"OptionGroupName"`
	Status          string `xml:"Status"`
}

type SOrgPolicy

type SOrgPolicy struct {
	Arn         string `json:"arn"`
	AwsManaged  bool   `json:"aws_managed"`
	Description string `json:"description"`
	Id          string `json:"id"`
	Name        string `json:"name"`
	Type        string `json:"type"`
}

* { * Arn: "arn:aws:organizations::031871565791:policy/o-gn75phg8ge/service_control_policy/p-4l9recev", * AwsManaged: false, * Description: "Create Preventive SCP Guardrails", * Id: "p-4l9recev", * Name: "SCP-PREVENTIVE-GUARDRAILS", * Type: "SERVICE_CONTROL_POLICY" * }

type SPolicies

type SPolicies struct {
	IsTruncated bool      `xml:"IsTruncated"`
	Marker      string    `xml:"Marker"`
	Policies    []SPolicy `xml:"Policies>member"`
}

type SPolicy

type SPolicy struct {
	PermissionsBoundaryUsageCount int       `xml:"PermissionsBoundaryUsageCount"`
	PolicyName                    string    `xml:"PolicyName"`
	Description                   string    `xml:"Description"`
	DefaultVersionId              string    `xml:"DefaultVersionId"`
	PolicyId                      string    `xml:"PolicyId"`
	Path                          string    `xml:"Path"`
	Arn                           string    `xml:"Arn"`
	IsAttachable                  bool      `xml:"IsAttachable"`
	AttachmentCount               int       `xml:"AttachmentCount"`
	CreateDate                    time.Time `xml:"CreateDate"`
	UpdateDate                    time.Time `xml:"UpdateDate"`
	// contains filtered or unexported fields
}

func (*SPolicy) Delete

func (self *SPolicy) Delete() error

func (*SPolicy) GetDescription

func (self *SPolicy) GetDescription() string

func (*SPolicy) GetDocument

func (self *SPolicy) GetDocument() (*jsonutils.JSONDict, error)

func (*SPolicy) GetGlobalId

func (self *SPolicy) GetGlobalId() string

func (*SPolicy) GetName

func (self *SPolicy) GetName() string

func (*SPolicy) UpdateDocument

func (self *SPolicy) UpdateDocument(document *jsonutils.JSONDict) error

type SPolicyNames

type SPolicyNames struct {
	PolicyNames []string `xml:"PolicyNames>member"`
	IsTruncated bool     `xml:"IsTruncated"`
}

type SPolicyVersion

type SPolicyVersion struct {
	Document         string    `xml:"Document"`
	IsDefaultVersion bool      `xml:"IsDefaultVersion"`
	VersionId        string    `xml:"VersionId"`
	CreateDate       time.Time `xml:"CreateDate"`
}

type SPolicyVersions

type SPolicyVersions struct {
	Versions    []SPolicyVersion `xml:"Versions>member"`
	IsTruncated bool             `xml:"IsTruncated"`
	Marker      string           `xml:"Marker"`
}

type SPrivateIpAddress

type SPrivateIpAddress struct {
	PrivateIpAddress string `xml:"privateIpAddress"`
	PrivateDnsName   string `xml:"privateDnsName"`
	Primary          bool   `xml:"primary"`
}

type SRegion

type SRegion struct {
	multicloud.SRegion

	RegionEndpoint string `xml:"regionEndpoint"`
	RegionId       string `xml:"regionName"`
	OptInStatus    string `xml:"optInStatus"`
	// contains filtered or unexported fields
}

func (*SRegion) AcceptVpcPeeringConnection

func (self *SRegion) AcceptVpcPeeringConnection(peerId string) (*SVpcPeeringConnection, error)

func (*SRegion) AddElbBackend

func (self *SRegion) AddElbBackend(backendgroupId, serverId string, weight int, port int) (*SElbBackend, error)

func (*SRegion) AddElbTags

func (self *SRegion) AddElbTags(arn string, tags map[string]string) error

func (*SRegion) AddRdsTagsToResource

func (self *SRegion) AddRdsTagsToResource(arn string, tags map[string]string) error

func (*SRegion) AllocateEIP

func (self *SRegion) AllocateEIP(opts *cloudprovider.SEip) (*SEipAddress, error)

func (*SRegion) AssignAddres

func (self *SRegion) AssignAddres(nicId string, ipAddrs []string) error

func (*SRegion) AssociateEip

func (self *SRegion) AssociateEip(eipId string, instanceId string) error

func (*SRegion) AttachDisk

func (self *SRegion) AttachDisk(instanceId string, diskId string, deviceName string) error

func (*SRegion) AttachKeypair

func (self *SRegion) AttachKeypair(instanceId string, keypairName string) error

func (*SRegion) ChangeVMConfig2

func (self *SRegion) ChangeVMConfig2(instanceId string, instanceType string) error

func (*SRegion) CheckBucket

func (self *SRegion) CheckBucket(bucketName string) error

func (*SRegion) CreateCacheSubnetGroup

func (self *SRegion) CreateCacheSubnetGroup(clusterName, networkId string) (*CacheSubnetGroup, error)

func (*SRegion) CreateDisk

func (self *SRegion) CreateDisk(zoneId string, volumeType string, name string, sizeGb, iops, throughput int, snapshotId string, desc string) (*SDisk, error)

func (*SRegion) CreateEIP

func (self *SRegion) CreateEIP(opts *cloudprovider.SEip) (cloudprovider.ICloudEIP, error)

func (*SRegion) CreateElbBackendgroup

func (self *SRegion) CreateElbBackendgroup(opts *cloudprovider.SLoadbalancerBackendGroup) (*SElbBackendGroup, error)

目前只支持target type :instance

func (*SRegion) CreateElbListener

func (self *SRegion) CreateElbListener(lbId string, opts *cloudprovider.SLoadbalancerListenerCreateOptions) (*SElbListener, error)

func (*SRegion) CreateElbListenerRule

func (self *SRegion) CreateElbListenerRule(listenerId string, opts *cloudprovider.SLoadbalancerListenerRule) (*SElbListenerRule, error)

func (*SRegion) CreateIBucket

func (region *SRegion) CreateIBucket(name string, storageClassStr string, acl string) error

func (*SRegion) CreateICloudWafInstance

func (self *SRegion) CreateICloudWafInstance(opts *cloudprovider.WafCreateOptions) (cloudprovider.ICloudWafInstance, error)

func (*SRegion) CreateIElasticcaches

func (*SRegion) CreateIKubeCluster

func (*SRegion) CreateISecurityGroup

func (*SRegion) CreateIVpc

func (*SRegion) CreateIgw

func (self *SRegion) CreateIgw() (*SInternetGateway, error)

func (*SRegion) CreateInstance

func (self *SRegion) CreateInstance(name string, image *SImage, instanceType string, subnetId string, secgroupIds []string,
	zoneId string, desc string, disks []cloudprovider.SDiskInfo, ipAddr string,
	keypair string, userData string, tags map[string]string, enableMonitorAgent bool,
) (*SInstance, error)

func (*SRegion) CreateInternetGateway

func (region *SRegion) CreateInternetGateway() (cloudprovider.ICloudInternetGateway, error)

func (*SRegion) CreateKubeCluster

func (self *SRegion) CreateKubeCluster(opts *cloudprovider.KubeClusterCreateOptions) (*SKubeCluster, error)

func (*SRegion) CreateLoadbalancer

func (self *SRegion) CreateLoadbalancer(opts *cloudprovider.SLoadbalancerCreateOptions) (*SElb, error)

func (*SRegion) CreateLoadbalancerCertifacate

func (self *SRegion) CreateLoadbalancerCertifacate(opts *cloudprovider.SLoadbalancerCertificate) (string, error)

func (*SRegion) CreateMemcached

func (self *SRegion) CreateMemcached(opts *cloudprovider.SCloudElasticCacheInput) (*SElasticache, error)

func (*SRegion) CreateNetwork

func (self *SRegion) CreateNetwork(zoneId string, vpcId string, name string, cidr, desc string) (*SNetwork, error)

func (*SRegion) CreateNodegroup

func (self *SRegion) CreateNodegroup(cluster string, opts *cloudprovider.KubeNodePoolCreateOptions) (*SNodeGroup, error)

func (*SRegion) CreateRedis

func (*SRegion) CreateRoute

func (self *SRegion) CreateRoute(routeTableId string, cidr string, targetId string) error

func (*SRegion) CreateSecurityGroup

func (self *SRegion) CreateSecurityGroup(opts *cloudprovider.SecurityGroupCreateInput) (string, error)

func (*SRegion) CreateSecurityGroupRule

func (self *SRegion) CreateSecurityGroupRule(secGrpId string, opts *cloudprovider.SecurityGroupRuleCreateOptions) (*SSecurityGroupRule, error)

func (*SRegion) CreateSnapshot

func (self *SRegion) CreateSnapshot(diskId, name, desc string) (*SSnapshot, error)

func (*SRegion) CreateTags

func (self *SRegion) CreateTags(instanceId string, tags map[string]string) error

func (*SRegion) CreateVpc

func (self *SRegion) CreateVpc(opts *cloudprovider.VpcCreateOptions) (*SVpc, error)

func (*SRegion) CreateVpcPeeringConnection

func (self *SRegion) CreateVpcPeeringConnection(vpcId string, opts *cloudprovider.VpcPeeringConnectionCreateOptions) (*SVpcPeeringConnection, error)

func (*SRegion) CreateWebAcl

func (self *SRegion) CreateWebAcl(name, desc string, wafType cloudprovider.TWafType, action *cloudprovider.DefaultAction) (*SWebAcl, error)

func (*SRegion) DeallocateEIP

func (self *SRegion) DeallocateEIP(eipId string) error

func (*SRegion) DeleteDisk

func (self *SRegion) DeleteDisk(diskId string) error

func (*SRegion) DeleteElastiCache

func (self *SRegion) DeleteElastiCache(id string) error

func (*SRegion) DeleteElb

func (self *SRegion) DeleteElb(id string) error

func (*SRegion) DeleteElbBackendGroup

func (self *SRegion) DeleteElbBackendGroup(id string) error

func (*SRegion) DeleteElbListener

func (self *SRegion) DeleteElbListener(id string) error

func (*SRegion) DeleteElbListenerRule

func (self *SRegion) DeleteElbListenerRule(id string) error

func (*SRegion) DeleteIBucket

func (region *SRegion) DeleteIBucket(name string) error

func (*SRegion) DeleteIPSet

func (self *SRegion) DeleteIPSet(id, name, scope, lockToken string) error

func (*SRegion) DeleteImage

func (self *SRegion) DeleteImage(imageId string) error

func (*SRegion) DeleteInternetGateway

func (self *SRegion) DeleteInternetGateway(id string) error

func (*SRegion) DeleteKubeCluster

func (self *SRegion) DeleteKubeCluster(name string) error

func (*SRegion) DeleteNatgateway

func (self *SRegion) DeleteNatgateway(id string) error

func (*SRegion) DeleteNetwork

func (self *SRegion) DeleteNetwork(id string) error

func (*SRegion) DeleteNodegroup

func (self *SRegion) DeleteNodegroup(cluster, name string) error

func (*SRegion) DeleteRdsSnapshot

func (self *SRegion) DeleteRdsSnapshot(id string) error

func (*SRegion) DeleteRegexSet

func (self *SRegion) DeleteRegexSet(id, name, scope, lockToken string) error

func (*SRegion) DeleteReplicationGroup

func (self *SRegion) DeleteReplicationGroup(id string) error

func (*SRegion) DeleteRouteTable

func (self *SRegion) DeleteRouteTable(rid string) error

func (*SRegion) DeleteRuleGroup

func (self *SRegion) DeleteRuleGroup(id, name, scope, lockToken string) error

func (*SRegion) DeleteSecurityGroup

func (self *SRegion) DeleteSecurityGroup(id string) error

func (*SRegion) DeleteSecurityGroupRule

func (self *SRegion) DeleteSecurityGroupRule(secGrpId string, direction, ruleId string) error

func (*SRegion) DeleteSnapshot

func (self *SRegion) DeleteSnapshot(id string) error

func (*SRegion) DeleteTags

func (self *SRegion) DeleteTags(instanceId string, tags map[string]string) error

func (*SRegion) DeleteVM

func (self *SRegion) DeleteVM(instanceId string) error

func (*SRegion) DeleteVpc

func (self *SRegion) DeleteVpc(vpcId string) error

func (*SRegion) DeleteVpcPeeringConnection

func (self *SRegion) DeleteVpcPeeringConnection(id string) error

func (*SRegion) DeleteVpcPeeringConnectionRoute

func (self *SRegion) DeleteVpcPeeringConnectionRoute(vpcPeerId string) error

func (*SRegion) DeleteWebAcl

func (self *SRegion) DeleteWebAcl(id, name, scope, lockToken string) error

func (*SRegion) DescribeCacheSubnetGroups

func (region *SRegion) DescribeCacheSubnetGroups(name string) ([]CacheSubnetGroup, error)

func (*SRegion) DescribeElbTags

func (self *SRegion) DescribeElbTags(arn string) (*AwsTags, error)

func (*SRegion) DescribeExportTasks

func (self *SRegion) DescribeExportTasks(id string) (*SExportTask, error)

func (*SRegion) DescribeInstanceAttribute

func (self *SRegion) DescribeInstanceAttribute(id string, opts *InstanceAttributeInput) (*InstanceAttribute, error)

func (*SRegion) DescribeInstanceTypes

func (self *SRegion) DescribeInstanceTypes(arch string, nextToken string) ([]Sku, string, error)

func (*SRegion) DescribeManagedRuleGroup

func (self *SRegion) DescribeManagedRuleGroup(name, scope, vendorName string) (*SWafRuleGroup, error)

func (*SRegion) DescribeOrgPolicy

func (r *SRegion) DescribeOrgPolicy(pId string) (jsonutils.JSONObject, error)

func (*SRegion) DescribeOrganizationalUnit

func (r *SRegion) DescribeOrganizationalUnit(ouId string) error

func (*SRegion) DescribeTags

func (self *SRegion) DescribeTags(resType, instanceId string) (map[string]string, error)

func (*SRegion) DescribeVpcPeeringConnections

func (self *SRegion) DescribeVpcPeeringConnections(id, vpcId, peerVpcId string) ([]SVpcPeeringConnection, error)

func (*SRegion) DetachDisk

func (self *SRegion) DetachDisk(instanceId string, diskId string) error

func (*SRegion) DetachInternetGateway

func (self *SRegion) DetachInternetGateway(vpcId, igwId string) error

func (*SRegion) DetachKeyPair

func (self *SRegion) DetachKeyPair(instanceId string, keypairName string) error

func (*SRegion) DissociateEip

func (self *SRegion) DissociateEip(insId string) error

func (*SRegion) ExportImage

func (self *SRegion) ExportImage(instanceId string, imageId string) (*ImageExportTask, error)

func (*SRegion) GetARNPartition

func (self *SRegion) GetARNPartition() string

func (*SRegion) GetBucketRegionId

func (self *SRegion) GetBucketRegionId(bucketName string) (string, error)

func (*SRegion) GetCacheParameters

func (region *SRegion) GetCacheParameters(id string) ([]SElasticacheParameter, error)

func (*SRegion) GetCacheSnapshots

func (region *SRegion) GetCacheSnapshots(replicaGroupId string, snapshotName string) ([]SElasticacheSnapshop, error)

func (*SRegion) GetCacheUsers

func (region *SRegion) GetCacheUsers(engine, userId string) ([]SElasticacheUser, error)

func (*SRegion) GetCapabilities

func (region *SRegion) GetCapabilities() []string

func (*SRegion) GetClient

func (self *SRegion) GetClient() *SAwsClient

///////////////////////////////////////////////////////////////////////////

请不要使用这个client(AWS_DEFAULT_REGION)跨region查信息.有可能导致查询返回的信息为空。比如DescribeAvailabilityZones

func (*SRegion) GetCloudEnv

func (self *SRegion) GetCloudEnv() string

func (*SRegion) GetDBInstance

func (region *SRegion) GetDBInstance(instanceId string) (*SDBInstance, error)

func (*SRegion) GetDBInstanceParameters

func (region *SRegion) GetDBInstanceParameters(name string) ([]SDBInstanceParameter, error)

func (*SRegion) GetDBInstanceSnapshots

func (region *SRegion) GetDBInstanceSnapshots(instanceId, backupId string) ([]SDBInstanceSnapshot, error)

func (*SRegion) GetDBInstances

func (region *SRegion) GetDBInstances(instanceId, marker string) ([]SDBInstance, string, error)

func (*SRegion) GetDisk

func (self *SRegion) GetDisk(diskId string) (*SDisk, error)

func (*SRegion) GetDisks

func (self *SRegion) GetDisks(instanceId string, zoneId string, storageType string, diskIds []string) ([]SDisk, error)

func (*SRegion) GetELbBackend

func (self *SRegion) GetELbBackend(backendId string) (*SElbBackend, error)

func (*SRegion) GetELbBackends

func (self *SRegion) GetELbBackends(backendgroupId string) ([]SElbBackend, error)

func (*SRegion) GetEip

func (self *SRegion) GetEip(id string) (*SEipAddress, error)

func (*SRegion) GetEipByIpAddress

func (self *SRegion) GetEipByIpAddress(eipAddress string) (*SEipAddress, error)

func (*SRegion) GetEips

func (self *SRegion) GetEips(id, ip, associateId string) ([]SEipAddress, error)

func (*SRegion) GetElastiCacheEngineVersion

func (self *SRegion) GetElastiCacheEngineVersion(engine string) ([]ElastiCacheEngineVersion, error)

func (*SRegion) GetElasticaches

func (region *SRegion) GetElasticaches(id string, isMemcached bool) ([]SElasticache, error)

func (*SRegion) GetElbAttributes

func (self *SRegion) GetElbAttributes(id string) (map[string]string, error)

func (*SRegion) GetElbBackendgroup

func (self *SRegion) GetElbBackendgroup(id string) (*SElbBackendGroup, error)

func (*SRegion) GetElbBackendgroupAttributes

func (self *SRegion) GetElbBackendgroupAttributes(id string) (map[string]string, error)

func (*SRegion) GetElbBackendgroups

func (self *SRegion) GetElbBackendgroups(elbId, id string) ([]SElbBackendGroup, error)

func (*SRegion) GetElbListener

func (self *SRegion) GetElbListener(listenerId string) (*SElbListener, error)

func (*SRegion) GetElbListenerRule

func (self *SRegion) GetElbListenerRule(id string) (*SElbListenerRule, error)

func (*SRegion) GetElbListenerRules

func (self *SRegion) GetElbListenerRules(listenerId string, ruleId, marker string) ([]SElbListenerRule, string, error)

func (*SRegion) GetElbListeners

func (self *SRegion) GetElbListeners(elbId, lisId, marker string) ([]SElbListener, string, error)

func (*SRegion) GetGeographicInfo

func (self *SRegion) GetGeographicInfo() cloudprovider.SGeographicInfo

func (*SRegion) GetGlobalId

func (self *SRegion) GetGlobalId() string

func (*SRegion) GetI18n

func (self *SRegion) GetI18n() cloudprovider.SModelI18nTable

func (*SRegion) GetIBucketById

func (region *SRegion) GetIBucketById(name string) (cloudprovider.ICloudBucket, error)

func (*SRegion) GetIBucketByName

func (region *SRegion) GetIBucketByName(name string) (cloudprovider.ICloudBucket, error)

func (*SRegion) GetIBuckets

func (region *SRegion) GetIBuckets() ([]cloudprovider.ICloudBucket, error)

func (*SRegion) GetICloudEvents

func (self *SRegion) GetICloudEvents(start time.Time, end time.Time, withReadEvent bool) ([]cloudprovider.ICloudEvent, error)

func (*SRegion) GetICloudKubeClusterById

func (self *SRegion) GetICloudKubeClusterById(id string) (cloudprovider.ICloudKubeCluster, error)

func (*SRegion) GetICloudKubeClusters

func (self *SRegion) GetICloudKubeClusters() ([]cloudprovider.ICloudKubeCluster, error)

func (*SRegion) GetICloudWafIPSets

func (self *SRegion) GetICloudWafIPSets() ([]cloudprovider.ICloudWafIPSet, error)

func (*SRegion) GetICloudWafInstanceById

func (self *SRegion) GetICloudWafInstanceById(id string) (cloudprovider.ICloudWafInstance, error)

func (*SRegion) GetICloudWafInstances

func (self *SRegion) GetICloudWafInstances() ([]cloudprovider.ICloudWafInstance, error)

func (*SRegion) GetICloudWafRegexSets

func (self *SRegion) GetICloudWafRegexSets() ([]cloudprovider.ICloudWafRegexSet, error)

func (*SRegion) GetIDBInstanceBackups

func (region *SRegion) GetIDBInstanceBackups() ([]cloudprovider.ICloudDBInstanceBackup, error)

func (*SRegion) GetIDBInstanceById

func (self *SRegion) GetIDBInstanceById(id string) (cloudprovider.ICloudDBInstance, error)

func (*SRegion) GetIDBInstances

func (region *SRegion) GetIDBInstances() ([]cloudprovider.ICloudDBInstance, error)

func (*SRegion) GetIDiskById

func (self *SRegion) GetIDiskById(id string) (cloudprovider.ICloudDisk, error)

func (*SRegion) GetIEipById

func (self *SRegion) GetIEipById(id string) (cloudprovider.ICloudEIP, error)

func (*SRegion) GetIEips

func (self *SRegion) GetIEips() ([]cloudprovider.ICloudEIP, error)

func (*SRegion) GetIElasticcacheById

func (region *SRegion) GetIElasticcacheById(id string) (cloudprovider.ICloudElasticcache, error)

func (*SRegion) GetIElasticcaches

func (region *SRegion) GetIElasticcaches() ([]cloudprovider.ICloudElasticcache, error)

func (*SRegion) GetIHostById

func (self *SRegion) GetIHostById(id string) (cloudprovider.ICloudHost, error)

func (*SRegion) GetIHosts

func (self *SRegion) GetIHosts() ([]cloudprovider.ICloudHost, error)

func (*SRegion) GetILoadBalancerAclById

func (self *SRegion) GetILoadBalancerAclById(aclId string) (cloudprovider.ICloudLoadbalancerAcl, error)

func (*SRegion) GetILoadBalancerAcls

func (self *SRegion) GetILoadBalancerAcls() ([]cloudprovider.ICloudLoadbalancerAcl, error)

func (*SRegion) GetILoadBalancerById

func (self *SRegion) GetILoadBalancerById(id string) (cloudprovider.ICloudLoadbalancer, error)

func (*SRegion) GetILoadBalancerCertificateById

func (self *SRegion) GetILoadBalancerCertificateById(certId string) (cloudprovider.ICloudLoadbalancerCertificate, error)

func (*SRegion) GetILoadBalancerCertificates

func (self *SRegion) GetILoadBalancerCertificates() ([]cloudprovider.ICloudLoadbalancerCertificate, error)

func (*SRegion) GetILoadBalancers

func (self *SRegion) GetILoadBalancers() ([]cloudprovider.ICloudLoadbalancer, error)

func (*SRegion) GetIPSet

func (self *SRegion) GetIPSet(id, name, scope string) (*SWafIPSet, error)

func (*SRegion) GetISecurityGroupById

func (self *SRegion) GetISecurityGroupById(id string) (cloudprovider.ICloudSecurityGroup, error)

func (*SRegion) GetISnapshotById

func (self *SRegion) GetISnapshotById(id string) (cloudprovider.ICloudSnapshot, error)

func (*SRegion) GetISnapshots

func (self *SRegion) GetISnapshots() ([]cloudprovider.ICloudSnapshot, error)

func (*SRegion) GetIStorageById

func (self *SRegion) GetIStorageById(id string) (cloudprovider.ICloudStorage, error)

func (*SRegion) GetIStoragecacheById

func (self *SRegion) GetIStoragecacheById(id string) (cloudprovider.ICloudStoragecache, error)

func (*SRegion) GetIStoragecaches

func (region *SRegion) GetIStoragecaches() ([]cloudprovider.ICloudStoragecache, error)

func (*SRegion) GetIStorages

func (self *SRegion) GetIStorages() ([]cloudprovider.ICloudStorage, error)

func (*SRegion) GetIVMById

func (self *SRegion) GetIVMById(id string) (cloudprovider.ICloudVM, error)

func (*SRegion) GetIVMs

func (region *SRegion) GetIVMs() ([]cloudprovider.ICloudVM, error)

func (*SRegion) GetIVpcById

func (self *SRegion) GetIVpcById(id string) (cloudprovider.ICloudVpc, error)

func (*SRegion) GetIVpcs

func (self *SRegion) GetIVpcs() ([]cloudprovider.ICloudVpc, error)

func (*SRegion) GetIZoneById

func (self *SRegion) GetIZoneById(id string) (cloudprovider.ICloudZone, error)

func (*SRegion) GetIZones

func (self *SRegion) GetIZones() ([]cloudprovider.ICloudZone, error)

func (*SRegion) GetId

func (self *SRegion) GetId() string

func (*SRegion) GetImage

func (self *SRegion) GetImage(imageId string) (*SImage, error)

func (*SRegion) GetImageByName

func (self *SRegion) GetImageByName(name string, owners []TImageOwnerType) (*SImage, error)

func (*SRegion) GetImageStatus

func (self *SRegion) GetImageStatus(imageId string) (ImageStatusType, error)

func (*SRegion) GetImages

func (self *SRegion) GetImages(status ImageStatusType, owners []TImageOwnerType, imageId []string, name string, virtualizationType string, ownerIds []string, volumeType string, latest bool) ([]SImage, error)

func (*SRegion) GetImportImageTask

func (self *SRegion) GetImportImageTask(id string) (*ImageImportTask, error)

func (*SRegion) GetInstance

func (self *SRegion) GetInstance(instanceId string) (*SInstance, error)

func (*SRegion) GetInstanceIdByImageId

func (self *SRegion) GetInstanceIdByImageId(imageId string) (string, error)

func (*SRegion) GetInstanceType

func (self *SRegion) GetInstanceType(name string) (*InstanceType, error)

func (*SRegion) GetInstanceTypes

func (self *SRegion) GetInstanceTypes() ([]SInstanceType, error)

func (*SRegion) GetInstances

func (self *SRegion) GetInstances(zoneId, imageId string, ids []string) ([]SInstance, error)

func (*SRegion) GetInternetGateways

func (self *SRegion) GetInternetGateways(vpcId string) ([]SInternetGateway, error)

func (*SRegion) GetKeypairs

func (self *SRegion) GetKeypairs(finger string, name string) ([]SKeypair, error)

func (*SRegion) GetKubeCluster

func (self *SRegion) GetKubeCluster(name string) (*SKubeCluster, error)

func (*SRegion) GetKubeClusters

func (self *SRegion) GetKubeClusters(nextToken string) ([]SKubeCluster, string, error)

func (*SRegion) GetLoadBalancer

func (self *SRegion) GetLoadBalancer(id string) (*SElb, error)

func (*SRegion) GetLoadbalancers

func (self *SRegion) GetLoadbalancers(id, marker string) ([]SElb, string, error)

func (*SRegion) GetName

func (self *SRegion) GetName() string

func (*SRegion) GetNatGateway

func (self *SRegion) GetNatGateway(id string) (*SNatGateway, error)

func (*SRegion) GetNatGateways

func (self *SRegion) GetNatGateways(ids []string, vpcId, subnetId string) ([]SNatGateway, error)

func (*SRegion) GetNetworkInterface

func (self *SRegion) GetNetworkInterface(id string) (*SNetworkInterface, error)

func (*SRegion) GetNetworkInterfaces

func (self *SRegion) GetNetworkInterfaces(id string) ([]SNetworkInterface, error)

func (*SRegion) GetNetwroks

func (self *SRegion) GetNetwroks(ids []string, zoneId, vpcId string) ([]SNetwork, error)

func (*SRegion) GetNodegroup

func (self *SRegion) GetNodegroup(cluster, name string) (*SNodeGroup, error)

func (*SRegion) GetNodegroups

func (self *SRegion) GetNodegroups(cluster, nextToken string) ([]SNodeGroup, string, error)

func (*SRegion) GetPasswordData

func (self *SRegion) GetPasswordData(instanceId string) (string, error)

func (*SRegion) GetProducts

func (self *SRegion) GetProducts(serviceCode string, filters []ProductFilter, nextToken string) ([]SInstanceType, string, error)

func (*SRegion) GetProvider

func (self *SRegion) GetProvider() string

func (*SRegion) GetRdsSnapshot

func (self *SRegion) GetRdsSnapshot(id string) (*SDBInstanceSnapshot, error)

func (*SRegion) GetRegexSet

func (self *SRegion) GetRegexSet(id, name, scope string) (*SWafRegexSet, error)

func (*SRegion) GetReplicationGroups

func (region *SRegion) GetReplicationGroups(id string) ([]SReplicationGroup, error)

func (*SRegion) GetReservedHostOfferings

func (self *SRegion) GetReservedHostOfferings() error

func (*SRegion) GetReservedInstance

func (self *SRegion) GetReservedInstance() error

func (*SRegion) GetRouteTable

func (self *SRegion) GetRouteTable(id string) (*SRouteTable, error)

func (*SRegion) GetRouteTables

func (self *SRegion) GetRouteTables(vpcId, subnetId, vpcPeerId, rid string, mainRouteOnly bool) ([]SRouteTable, error)

func (*SRegion) GetRuleGroup

func (self *SRegion) GetRuleGroup(id, name, scope string) (*SWafRuleGroup, error)

func (*SRegion) GetS3Client

func (self *SRegion) GetS3Client() (*s3.S3, error)

func (*SRegion) GetSecurityGroup

func (self *SRegion) GetSecurityGroup(id string) (*SSecurityGroup, error)

func (*SRegion) GetSecurityGroupRules

func (self *SRegion) GetSecurityGroupRules(id string) ([]SSecurityGroupRule, error)

func (*SRegion) GetSecurityGroups

func (self *SRegion) GetSecurityGroups(vpcId string, name string, secgroupId string) ([]SSecurityGroup, error)

func (*SRegion) GetSkus

func (self *SRegion) GetSkus(zoneId string) ([]cloudprovider.ICloudSku, error)

func (*SRegion) GetSnapshot

func (self *SRegion) GetSnapshot(id string) (*SSnapshot, error)

func (*SRegion) GetSnapshots

func (self *SRegion) GetSnapshots(diskId string, name string, ids []string) ([]SSnapshot, error)

func (*SRegion) GetStatus

func (self *SRegion) GetStatus() string

func (*SRegion) GetSubAddress

func (self *SRegion) GetSubAddress(nicId string) ([]string, error)

func (*SRegion) GetVpcPeeringConnectionById

func (self *SRegion) GetVpcPeeringConnectionById(id string) (*SVpcPeeringConnection, error)

func (*SRegion) GetVpcs

func (self *SRegion) GetVpcs(vpcIds []string) ([]SVpc, error)

func (*SRegion) GetWebAcl

func (self *SRegion) GetWebAcl(id, name, scope string) (*SWebAcl, error)

func (*SRegion) GetZones

func (self *SRegion) GetZones(id string) ([]SZone, error)

///////////////////////////////////////////////////////////////////////////

func (*SRegion) IBucketExist

func (region *SRegion) IBucketExist(name string) (bool, error)

func (*SRegion) ImportImage

func (self *SRegion) ImportImage(name string, osArch string, osType string, osDist string, diskFormat string, bucket string, key string) (*ImageImportTask, error)

func (*SRegion) ImportKeypair

func (self *SRegion) ImportKeypair(name string, pubKey string) (*SKeypair, error)

Aws貌似不支持ssh-dss格式密钥

func (*SRegion) InitVmimport

func (self *SRegion) InitVmimport() error

func (*SRegion) IsBucketExist

func (self *SRegion) IsBucketExist(bucketName string) (bool, error)

func (*SRegion) IsEmulated

func (self *SRegion) IsEmulated() bool

func (*SRegion) ListAccounts

func (r *SRegion) ListAccounts() ([]SAccount, error)

func (*SRegion) ListAvailableManagedRuleGroups

func (self *SRegion) ListAvailableManagedRuleGroups(scope string) ([]SWafRuleGroup, error)

func (*SRegion) ListIPSets

func (self *SRegion) ListIPSets(scope string) ([]SWafIPSet, error)

func (*SRegion) ListParents

func (r *SRegion) ListParents(childId string) error

func (*SRegion) ListPolicies

func (r *SRegion) ListPolicies(filter string) ([]SOrgPolicy, error)

func (*SRegion) ListPoliciesForTarget

func (r *SRegion) ListPoliciesForTarget(filter string, targetId string) ([]SOrgPolicy, error)

func (*SRegion) ListRdsResourceTags

func (self *SRegion) ListRdsResourceTags(arn string) (map[string]string, error)

func (*SRegion) ListRegexSets

func (self *SRegion) ListRegexSets(scope string) ([]SWafRegexSet, error)

func (*SRegion) ListResourcesForWebACL

func (self *SRegion) ListResourcesForWebACL(resType, arn string) ([]string, error)

func (*SRegion) ListRuleGroups

func (self *SRegion) ListRuleGroups(scope string) ([]SWafRuleGroup, error)

func (*SRegion) ListServerCertificates

func (self *SRegion) ListServerCertificates() ([]SElbCertificate, error)

func (*SRegion) ListWebACLs

func (self *SRegion) ListWebACLs(scope string) ([]SWebAcl, error)

func (*SRegion) LookupEvents

func (self *SRegion) LookupEvents(start, end time.Time, withReadEvent bool) ([]SEvent, error)

func (*SRegion) ModifyInstanceAttribute

func (self *SRegion) ModifyInstanceAttribute(instanceId string, opts *SInstanceAttr) error

func (*SRegion) ModifySubnetAttribute

func (self *SRegion) ModifySubnetAttribute(subnetId string, assignPublicIp bool) error

func (*SRegion) RebootDBInstance

func (self *SRegion) RebootDBInstance(id string) error

func (*SRegion) Refresh

func (self *SRegion) Refresh() error

func (*SRegion) RemoveElbBackend

func (self *SRegion) RemoveElbBackend(backendgroupId, serverId string, weight int, port int) error

func (*SRegion) RemoveElbBackends

func (self *SRegion) RemoveElbBackends(backendgroupId string) error

func (*SRegion) RemoveElbTags

func (self *SRegion) RemoveElbTags(arn string, tags map[string]string) error

func (*SRegion) RemoveRdsTagsFromResource

func (self *SRegion) RemoveRdsTagsFromResource(arn string, tags map[string]string) error

func (*SRegion) RemoveRoute

func (self *SRegion) RemoveRoute(routeTableId string, cidr string) error

func (*SRegion) ReplaceRoute

func (self *SRegion) ReplaceRoute(routeTableId string, cidr string, targetId string) error

func (*SRegion) ReplaceSystemDisk

func (self *SRegion) ReplaceSystemDisk(ctx context.Context, instanceId string, image *SImage, sysDiskSizeGB int, keypair string, userdata string) (string, error)

func (*SRegion) ResizeDisk

func (self *SRegion) ResizeDisk(diskId string, sizeGb int64) error

func (*SRegion) SaveImage

func (self *SRegion) SaveImage(instanceId string, opts *cloudprovider.SaveImageOptions) (*SImage, error)

func (*SRegion) StartVM

func (self *SRegion) StartVM(instanceId string) error

func (*SRegion) StopVM

func (self *SRegion) StopVM(instanceId string, isForce bool) error

func (*SRegion) SyncElbBackend

func (self *SRegion) SyncElbBackend(backendId, serverId string, oldPort, newPort int) error

func (*SRegion) SyncKeypair

func (self *SRegion) SyncKeypair(publicKey string) (string, error)

func (*SRegion) UnassignAddress

func (self *SRegion) UnassignAddress(nicId string, ipAddrs []string) error

func (*SRegion) Update

func (region *SRegion) Update(instanceId string, input cloudprovider.SDBInstanceUpdateOptions) error

func (*SRegion) UpdateEipBandwidth

func (self *SRegion) UpdateEipBandwidth(eipId string, bw int) error

func (*SRegion) UpdateRulesPriority

func (self *SRegion) UpdateRulesPriority(rules []cloudprovider.ICloudLoadbalancerListenerRule) error

func (*SRegion) UpdateSecurityGroupRule

func (self *SRegion) UpdateSecurityGroupRule(secgroupId, ruleId string, opts *cloudprovider.SecurityGroupRuleUpdateOptions) error

func (*SRegion) UpdateVM

func (self *SRegion) UpdateVM(instanceId string, input cloudprovider.SInstanceUpdateOptions) error

type SReplicationGroup

type SReplicationGroup struct {
	multicloud.SElasticcacheBase
	AwsTags

	ARN                        string                     `xml:"ARN"`
	AtRestEncryptionEnabled    bool                       `xml:"AtRestEncryptionEnabled"`
	AuthTokenEnabled           bool                       `xml:"AuthTokenEnabled"`
	AuthTokenLastModifiedDate  time.Time                  `xml:"AuthTokenLastModifiedDate"`
	AutomaticFailover          string                     `xml:"AutomaticFailover"`
	CacheNodeType              string                     `xml:"CacheNodeType"`
	ClusterEnabled             bool                       `xml:"ClusterEnabled"`
	ConfigurationEndpoint      Endpoint                   `xml:"ConfigurationEndpoint"`
	Description                string                     `xml:"Description"`
	GlobalReplicationGroupInfo GlobalReplicationGroupInfo `xml:"GlobalReplicationGroupInfo"`
	KmsKeyId                   string                     `xml:"KmsKeyId"`
	LogDeliveryConfigurations  []LogDeliveryConfiguration `xml:"LogDeliveryConfigurations>LogDeliveryConfiguration"`
	MemberClusters             []string                   `xml:"MemberClusters>ClusterId"`
	MemberClustersOutpostArns  []string                   `xml:"MemberClustersOutpostArns>member"`
	MultiAZ                    string                     `xml:"MultiAZ"`
	NodeGroups                 []NodeGroup                `xml:"NodeGroups>NodeGroup"`
	ReplicationGroupId         string                     `xml:"ReplicationGroupId"`
	SnapshotRetentionLimit     int64                      `xml:"SnapshotRetentionLimit"`
	SnapshotWindow             string                     `xml:"SnapshotWindow"`
	SnapshottingClusterId      string                     `xml:"SnapshottingClusterId"`
	Status                     string                     `xml:"Status"`
	TransitEncryptionEnabled   bool                       `xml:"TransitEncryptionEnabled"`
	UserGroupIds               []string                   `xml:"UserGroupIds>member"`
	// contains filtered or unexported fields
}

func (*SReplicationGroup) AllocatePublicConnection

func (self *SReplicationGroup) AllocatePublicConnection(port int) (string, error)

func (*SReplicationGroup) ChangeInstanceSpec

func (self *SReplicationGroup) ChangeInstanceSpec(spec string) error

func (*SReplicationGroup) CreateAcl

func (self *SReplicationGroup) CreateAcl(aclName, securityIps string) (cloudprovider.ICloudElasticcacheAcl, error)

func (*SReplicationGroup) CreateBackup

func (*SReplicationGroup) Delete

func (self *SReplicationGroup) Delete() error

func (*SReplicationGroup) FlushInstance

func (*SReplicationGroup) GetArchType

func (self *SReplicationGroup) GetArchType() string

func (*SReplicationGroup) GetAuthMode

func (self *SReplicationGroup) GetAuthMode() string

func (*SReplicationGroup) GetBillingType

func (self *SReplicationGroup) GetBillingType() string

func (*SReplicationGroup) GetCapacityMB

func (self *SReplicationGroup) GetCapacityMB() int

func (*SReplicationGroup) GetCluster

func (self *SReplicationGroup) GetCluster() (*SElasticache, error)

func (*SReplicationGroup) GetCreatedAt

func (self *SReplicationGroup) GetCreatedAt() time.Time

func (*SReplicationGroup) GetEngine

func (self *SReplicationGroup) GetEngine() string

func (*SReplicationGroup) GetEngineVersion

func (self *SReplicationGroup) GetEngineVersion() string

func (*SReplicationGroup) GetExpiredAt

func (self *SReplicationGroup) GetExpiredAt() time.Time

func (*SReplicationGroup) GetGlobalId

func (self *SReplicationGroup) GetGlobalId() string

func (*SReplicationGroup) GetICloudElasticcacheAccount

func (self *SReplicationGroup) GetICloudElasticcacheAccount(accountId string) (cloudprovider.ICloudElasticcacheAccount, error)

func (*SReplicationGroup) GetICloudElasticcacheAccounts

func (self *SReplicationGroup) GetICloudElasticcacheAccounts() ([]cloudprovider.ICloudElasticcacheAccount, error)

func (*SReplicationGroup) GetICloudElasticcacheAcl

func (self *SReplicationGroup) GetICloudElasticcacheAcl(aclId string) (cloudprovider.ICloudElasticcacheAcl, error)

func (*SReplicationGroup) GetICloudElasticcacheAcls

func (self *SReplicationGroup) GetICloudElasticcacheAcls() ([]cloudprovider.ICloudElasticcacheAcl, error)

func (*SReplicationGroup) GetICloudElasticcacheBackup

func (self *SReplicationGroup) GetICloudElasticcacheBackup(backupId string) (cloudprovider.ICloudElasticcacheBackup, error)

func (*SReplicationGroup) GetICloudElasticcacheBackups

func (self *SReplicationGroup) GetICloudElasticcacheBackups() ([]cloudprovider.ICloudElasticcacheBackup, error)

func (*SReplicationGroup) GetICloudElasticcacheParameters

func (self *SReplicationGroup) GetICloudElasticcacheParameters() ([]cloudprovider.ICloudElasticcacheParameter, error)

func (*SReplicationGroup) GetId

func (self *SReplicationGroup) GetId() string

func (*SReplicationGroup) GetInstanceType

func (self *SReplicationGroup) GetInstanceType() string

func (*SReplicationGroup) GetMaintainEndTime

func (self *SReplicationGroup) GetMaintainEndTime() string

func (*SReplicationGroup) GetMaintainStartTime

func (self *SReplicationGroup) GetMaintainStartTime() string

func (*SReplicationGroup) GetName

func (self *SReplicationGroup) GetName() string

func (*SReplicationGroup) GetNetworkId

func (self *SReplicationGroup) GetNetworkId() string

func (*SReplicationGroup) GetNetworkType

func (self *SReplicationGroup) GetNetworkType() string

func (*SReplicationGroup) GetNodeType

func (self *SReplicationGroup) GetNodeType() string

func (*SReplicationGroup) GetPrivateConnectPort

func (self *SReplicationGroup) GetPrivateConnectPort() int

func (*SReplicationGroup) GetPrivateDNS

func (self *SReplicationGroup) GetPrivateDNS() string

cluster mode(shard) 只有配置endpoint,no cluster mode 有primary/readonly endpoint

func (*SReplicationGroup) GetPrivateIpAddr

func (self *SReplicationGroup) GetPrivateIpAddr() string

func (*SReplicationGroup) GetPublicConnectPort

func (self *SReplicationGroup) GetPublicConnectPort() int

func (*SReplicationGroup) GetPublicDNS

func (self *SReplicationGroup) GetPublicDNS() string

func (*SReplicationGroup) GetPublicIpAddr

func (self *SReplicationGroup) GetPublicIpAddr() string

func (*SReplicationGroup) GetSecurityGroupIds

func (self *SReplicationGroup) GetSecurityGroupIds() ([]string, error)

func (*SReplicationGroup) GetStatus

func (self *SReplicationGroup) GetStatus() string

func (*SReplicationGroup) GetTags

func (self *SReplicationGroup) GetTags() (map[string]string, error)

func (*SReplicationGroup) GetVpcId

func (self *SReplicationGroup) GetVpcId() string

func (*SReplicationGroup) GetZoneId

func (self *SReplicationGroup) GetZoneId() string

func (*SReplicationGroup) Refresh

func (self *SReplicationGroup) Refresh() error

func (*SReplicationGroup) ReleasePublicConnection

func (self *SReplicationGroup) ReleasePublicConnection() error

func (*SReplicationGroup) Renew

func (self *SReplicationGroup) Renew(bc billing.SBillingCycle) error

func (*SReplicationGroup) Restart

func (self *SReplicationGroup) Restart() error

func (*SReplicationGroup) SetMaintainTime

func (self *SReplicationGroup) SetMaintainTime(maintainStartTime, maintainEndTime string) error

func (*SReplicationGroup) SetTags

func (self *SReplicationGroup) SetTags(tags map[string]string, replace bool) error

func (*SReplicationGroup) UpdateAuthMode

func (self *SReplicationGroup) UpdateAuthMode(noPwdAccess bool, password string) error

func (*SReplicationGroup) UpdateBackupPolicy

func (*SReplicationGroup) UpdateInstanceParameters

func (self *SReplicationGroup) UpdateInstanceParameters(config jsonutils.JSONObject) error

func (*SReplicationGroup) UpdateSecurityGroups

func (self *SReplicationGroup) UpdateSecurityGroups(secgroupIds []string) error

type SReservedHostOffering

type SReservedHostOffering struct {
	Duration       int
	HourlyPrice    float64
	InstanceFamily string
	OfferingId     string
	PaymentOption  string
	UpfrontPrice   float64
}

type SRole

type SRole struct {
	Path                     string    `xml:"Path"`
	AssumeRolePolicyDocument string    `xml:"AssumeRolePolicyDocument"`
	MaxSessionDuration       int       `xml:"MaxSessionDuration"`
	RoleId                   string    `xml:"RoleId"`
	RoleName                 string    `xml:"RoleName"`
	Description              string    `xml:"Description"`
	Arn                      string    `xml:"Arn"`
	CreateDate               time.Time `xml:"CreateDate"`
	// contains filtered or unexported fields
}

func (*SRole) AttachPolicy

func (self *SRole) AttachPolicy(id string) error

func (*SRole) Delete

func (self *SRole) Delete() error

func (*SRole) DetachPolicy

func (self *SRole) DetachPolicy(id string) error

func (*SRole) GetDocument

func (self *SRole) GetDocument() *jsonutils.JSONDict

func (*SRole) GetGlobalId

func (self *SRole) GetGlobalId() string

func (*SRole) GetICloudpolicies

func (self *SRole) GetICloudpolicies() ([]cloudprovider.ICloudpolicy, error)

func (*SRole) GetName

func (self *SRole) GetName() string

func (*SRole) GetSAMLProvider

func (self *SRole) GetSAMLProvider() string

[{"Action":"sts:AssumeRoleWithSAML","Condition":{"StringEquals":{"SAML:aud":"https://signin.aws.amazon.com/saml"}},"Effect":"Allow","Principal":{"Federated":"arn:aws:iam::879324515906:saml-provider/quxuan"}}]

type SRoles

type SRoles struct {
	Roles       []SRole `xml:"Roles>member"`
	IsTruncated bool    `xml:"IsTruncated"`
	Marker      string  `xml:"Marker"`
}

type SRoute

type SRoute struct {
	multicloud.SResourceBase
	AwsTags

	DestinationCIDRBlock string `json:"DestinationCidrBlock"`
	Origin               string `json:"Origin"`
	State                string `json:"State"`
	// only one exist
	GatewayId              string `xml:"gatewayId,omitempty"`
	NatGatewayId           string `xml:"natGatewayId,omitempty"`
	InstanceId             string `xml:"instanceId,omitempty"`
	LocalGatewayId         string `xml:"localGatewayId,omitempty"`
	NetworkInterfaceId     string `xml:"networkInterfaceId,omitempty"`
	TransitGatewayId       string `xml:"transitGatewayId,omitempty"`
	VpcPeeringConnectionId string `xml:"vpcPeeringConnectionId,omitempty"`
	// contains filtered or unexported fields
}

func (*SRoute) GetCidr

func (self *SRoute) GetCidr() string

func (*SRoute) GetDescription

func (self *SRoute) GetDescription() string

func (*SRoute) GetGlobalId

func (self *SRoute) GetGlobalId() string

func (*SRoute) GetId

func (self *SRoute) GetId() string

func (*SRoute) GetName

func (self *SRoute) GetName() string

func (*SRoute) GetNextHop

func (self *SRoute) GetNextHop() string

func (*SRoute) GetNextHopType

func (self *SRoute) GetNextHopType() string

func (*SRoute) GetStatus

func (self *SRoute) GetStatus() string

func (*SRoute) GetType

func (self *SRoute) GetType() string

func (*SRoute) IsEmulated

func (self *SRoute) IsEmulated() bool

func (*SRoute) Refresh

func (self *SRoute) Refresh() error

type SRouteTable

type SRouteTable struct {
	multicloud.SResourceBase
	AwsTags

	Associations    []Association `xml:"associationSet>item"`
	PropagatingVgws []string      `xml:"propagatingVgwSet>item"`
	RouteTableId    string        `xml:"routeTableId"`
	Routes          []SRoute      `xml:"routeSet>item"`
	VpcId           string        `json:"vpcId"`
	OwnerId         string        `json:"ownerId"`
	// contains filtered or unexported fields
}

func (*SRouteTable) CreateRoute

func (self *SRouteTable) CreateRoute(route cloudprovider.RouteSet) error

func (*SRouteTable) GetAssociations

func (self *SRouteTable) GetAssociations() []cloudprovider.RouteTableAssociation

func (*SRouteTable) GetDescription

func (self *SRouteTable) GetDescription() string

func (*SRouteTable) GetGlobalId

func (self *SRouteTable) GetGlobalId() string

func (*SRouteTable) GetIRoutes

func (self *SRouteTable) GetIRoutes() ([]cloudprovider.ICloudRoute, error)

func (*SRouteTable) GetId

func (self *SRouteTable) GetId() string

func (*SRouteTable) GetName

func (self *SRouteTable) GetName() string

func (*SRouteTable) GetRegionId

func (self *SRouteTable) GetRegionId() string

func (*SRouteTable) GetStatus

func (self *SRouteTable) GetStatus() string

func (*SRouteTable) GetType

func (self *SRouteTable) GetType() cloudprovider.RouteTableType

func (*SRouteTable) GetVpcId

func (self *SRouteTable) GetVpcId() string

func (*SRouteTable) Refresh

func (self *SRouteTable) Refresh() error

func (*SRouteTable) RemoveRoute

func (self *SRouteTable) RemoveRoute(route cloudprovider.RouteSet) error

func (*SRouteTable) UpdateRoute

func (self *SRouteTable) UpdateRoute(route cloudprovider.RouteSet) error

type SSecurityGroup

type SSecurityGroup struct {
	multicloud.SSecurityGroup
	AwsTags

	GroupId          string `xml:"groupId"`
	VpcId            string `xml:"vpcId"`
	GroupName        string `xml:"groupName"`
	GroupDescription string `xml:"groupDescription"`
	// contains filtered or unexported fields
}

func (*SSecurityGroup) Delete

func (self *SSecurityGroup) Delete() error

func (*SSecurityGroup) GetDescription

func (self *SSecurityGroup) GetDescription() string

func (*SSecurityGroup) GetGlobalId

func (self *SSecurityGroup) GetGlobalId() string

func (*SSecurityGroup) GetId

func (self *SSecurityGroup) GetId() string

func (*SSecurityGroup) GetName

func (self *SSecurityGroup) GetName() string

func (*SSecurityGroup) GetRules

func (self *SSecurityGroup) GetRules() ([]cloudprovider.ISecurityGroupRule, error)

func (*SSecurityGroup) GetStatus

func (self *SSecurityGroup) GetStatus() string

func (*SSecurityGroup) GetVpcId

func (self *SSecurityGroup) GetVpcId() string

func (*SSecurityGroup) Refresh

func (self *SSecurityGroup) Refresh() error

func (*SSecurityGroup) SetTags

func (self *SSecurityGroup) SetTags(tags map[string]string, replace bool) error

type SSecurityGroupIds

type SSecurityGroupIds struct {
	SecurityGroupId []string
}

type SSecurityGroupRule

type SSecurityGroupRule struct {
	FromPort            int    `xml:"fromPort"`
	GroupId             string `xml:"groupId"`
	IpProtocol          string `xml:"ipProtocol"`
	GroupOwnerId        string `xml:"groupOwnerId"`
	IsEgress            bool   `xml:"isEgress"`
	SecurityGroupRuleId string `xml:"securityGroupRuleId"`
	ReferencedGroupInfo struct {
		GroupId string `xml:"groupId"`
		UserId  string `xml:"userId"`
	} `xml:"referencedGroupInfo"`
	CidrIpv4     string `xml:"cidrIpv4"`
	CidrIpv6     string `xml:"cidrIpv6"`
	Description  string `xml:"description"`
	PrefixListId string `xml:"prefixListId"`
	ToPort       int    `xml:"toPort"`
	// contains filtered or unexported fields
}

func (*SSecurityGroupRule) Delete

func (self *SSecurityGroupRule) Delete() error

func (*SSecurityGroupRule) GetAction

func (*SSecurityGroupRule) GetCIDRs

func (self *SSecurityGroupRule) GetCIDRs() []string

func (*SSecurityGroupRule) GetDescription

func (self *SSecurityGroupRule) GetDescription() string

func (*SSecurityGroupRule) GetDirection

func (self *SSecurityGroupRule) GetDirection() secrules.TSecurityRuleDirection

func (*SSecurityGroupRule) GetGlobalId

func (self *SSecurityGroupRule) GetGlobalId() string

func (*SSecurityGroupRule) GetPorts

func (self *SSecurityGroupRule) GetPorts() string

func (*SSecurityGroupRule) GetPriority

func (self *SSecurityGroupRule) GetPriority() int

func (*SSecurityGroupRule) GetProtocol

func (self *SSecurityGroupRule) GetProtocol() string

func (*SSecurityGroupRule) Update

type SSnapshot

type SSnapshot struct {
	multicloud.SResourceBase
	AwsTags

	DataEncryptionKeyId string    `xml:"dataEncryptionKeyId"`
	Description         string    `xml:"description"`
	Encrypted           bool      `xml:"encrypted"`
	KmsKeyId            string    `xml:"kmsKeyId"`
	OutpostArn          string    `xml:"outpostArn"`
	OwnerAlias          string    `xml:"ownerAlias"`
	OwnerId             string    `xml:"ownerId"`
	Progress            string    `xml:"progress"`
	SnapshotId          string    `xml:"snapshotId"`
	StartTime           time.Time `xml:"startTime"`
	State               string    `xml:"status"`
	StateMessage        string    `xml:"statusMessage"`
	VolumeId            string    `xml:"volumeId"`
	VolumeSize          int64     `xml:"volumeSize"`
	// contains filtered or unexported fields
}

func (*SSnapshot) Delete

func (self *SSnapshot) Delete() error

func (*SSnapshot) GetDescription

func (self *SSnapshot) GetDescription() string

func (*SSnapshot) GetDiskId

func (self *SSnapshot) GetDiskId() string

func (*SSnapshot) GetDiskType

func (self *SSnapshot) GetDiskType() string

func (*SSnapshot) GetGlobalId

func (self *SSnapshot) GetGlobalId() string

func (*SSnapshot) GetId

func (self *SSnapshot) GetId() string

func (*SSnapshot) GetName

func (self *SSnapshot) GetName() string

func (*SSnapshot) GetProjectId

func (self *SSnapshot) GetProjectId() string

func (*SSnapshot) GetSizeMb

func (self *SSnapshot) GetSizeMb() int32

func (*SSnapshot) GetStatus

func (self *SSnapshot) GetStatus() string

func (*SSnapshot) Refresh

func (self *SSnapshot) Refresh() error

type SStorage

type SStorage struct {
	multicloud.SStorageBase
	multicloud.STagBase
	// contains filtered or unexported fields
}

func (*SStorage) CreateIDisk

func (*SStorage) GetCapacityMB

func (self *SStorage) GetCapacityMB() int64

func (*SStorage) GetCapacityUsedMB

func (self *SStorage) GetCapacityUsedMB() int64

func (*SStorage) GetDescription

func (self *SStorage) GetDescription() string

func (*SStorage) GetEnabled

func (self *SStorage) GetEnabled() bool

func (*SStorage) GetGlobalId

func (self *SStorage) GetGlobalId() string

func (*SStorage) GetIDiskById

func (self *SStorage) GetIDiskById(id string) (cloudprovider.ICloudDisk, error)

func (*SStorage) GetIDisks

func (self *SStorage) GetIDisks() ([]cloudprovider.ICloudDisk, error)

func (*SStorage) GetIStoragecache

func (self *SStorage) GetIStoragecache() cloudprovider.ICloudStoragecache

func (*SStorage) GetIZone

func (self *SStorage) GetIZone() cloudprovider.ICloudZone

func (*SStorage) GetId

func (self *SStorage) GetId() string

func (*SStorage) GetMediumType

func (self *SStorage) GetMediumType() string

func (*SStorage) GetMountPoint

func (self *SStorage) GetMountPoint() string

func (*SStorage) GetName

func (self *SStorage) GetName() string

func (*SStorage) GetStatus

func (self *SStorage) GetStatus() string

func (*SStorage) GetStorageConf

func (self *SStorage) GetStorageConf() jsonutils.JSONObject

func (*SStorage) GetStorageType

func (self *SStorage) GetStorageType() string

func (*SStorage) IsEmulated

func (self *SStorage) IsEmulated() bool

func (*SStorage) IsSysDiskStore

func (self *SStorage) IsSysDiskStore() bool

type SStoragecache

type SStoragecache struct {
	multicloud.SResourceBase
	AwsTags
	// contains filtered or unexported fields
}

func (*SStoragecache) DownloadImage

func (self *SStoragecache) DownloadImage(imageId string, extId string, path string) (jsonutils.JSONObject, error)

func (*SStoragecache) GetDescription

func (self *SStoragecache) GetDescription() string

func (*SStoragecache) GetGlobalId

func (self *SStoragecache) GetGlobalId() string

func (*SStoragecache) GetICloudImages

func (self *SStoragecache) GetICloudImages() ([]cloudprovider.ICloudImage, error)

func (*SStoragecache) GetICustomizedCloudImages

func (self *SStoragecache) GetICustomizedCloudImages() ([]cloudprovider.ICloudImage, error)

func (*SStoragecache) GetIImageById

func (self *SStoragecache) GetIImageById(extId string) (cloudprovider.ICloudImage, error)

func (*SStoragecache) GetId

func (self *SStoragecache) GetId() string

func (*SStoragecache) GetName

func (self *SStoragecache) GetName() string

func (*SStoragecache) GetPath

func (self *SStoragecache) GetPath() string

func (*SStoragecache) GetStatus

func (self *SStoragecache) GetStatus() string

func (*SStoragecache) IsEmulated

func (self *SStoragecache) IsEmulated() bool

func (*SStoragecache) Refresh

func (self *SStoragecache) Refresh() error

func (*SStoragecache) UploadImage

func (self *SStoragecache) UploadImage(ctx context.Context, image *cloudprovider.SImageCreateOption, callback func(progress float32)) (string, error)

type SSubnet

type SSubnet struct {
	SubnetIdentifier       string                  `xml:"SubnetIdentifier"`
	SubnetStatus           string                  `xml:"SubnetStatus"`
	SubnetAvailabilityZone SSubnetAvailabilityZone `xml:"SubnetAvailabilityZone"`
}

type SSubnetAvailabilityZone

type SSubnetAvailabilityZone struct {
	Name string `xml:"Name"`
}

type SUser

type SUser struct {
	multicloud.SBaseClouduser

	UserId           string    `xml:"UserId"`
	Path             string    `xml:"Path"`
	UserName         string    `xml:"UserName"`
	Arn              string    `xml:"Arn"`
	CreateDate       time.Time `xml:"CreateDate"`
	PasswordLastUsed time.Time `xml:"PasswordLastUsed"`
	// contains filtered or unexported fields
}

func (*SUser) AttachCustomPolicy

func (user *SUser) AttachCustomPolicy(policyArn string) error

func (*SUser) AttachSystemPolicy

func (user *SUser) AttachSystemPolicy(policyArn string) error

func (*SUser) Delete

func (user *SUser) Delete() error

func (*SUser) DetachCustomPolicy

func (user *SUser) DetachCustomPolicy(policyArn string) error

func (*SUser) DetachSystemPolicy

func (user *SUser) DetachSystemPolicy(policyArn string) error

func (*SUser) GetEmailAddr

func (user *SUser) GetEmailAddr() string

func (*SUser) GetGlobalId

func (user *SUser) GetGlobalId() string

func (*SUser) GetICloudgroups

func (user *SUser) GetICloudgroups() ([]cloudprovider.ICloudgroup, error)

func (*SUser) GetICustomCloudpolicies

func (self *SUser) GetICustomCloudpolicies() ([]cloudprovider.ICloudpolicy, error)

func (*SUser) GetISystemCloudpolicies

func (self *SUser) GetISystemCloudpolicies() ([]cloudprovider.ICloudpolicy, error)

func (*SUser) GetInviteUrl

func (user *SUser) GetInviteUrl() string

func (*SUser) GetName

func (user *SUser) GetName() string

func (*SUser) IsConsoleLogin

func (user *SUser) IsConsoleLogin() bool

func (*SUser) ListGroups

func (user *SUser) ListGroups() ([]SGroup, error)

func (*SUser) ListPolicies

func (self *SUser) ListPolicies() ([]SAttachedPolicy, error)

func (*SUser) ResetPassword

func (user *SUser) ResetPassword(password string) error

type SUserCIDRs

type SUserCIDRs struct {
	UserCidr []string
}

type SUserPolicies

type SUserPolicies struct {
	PolicyNames []string `xml:"PolicyNames>member"`
	IsTruncated bool     `xml:"IsTruncated"`
}

type SUsers

type SUsers struct {
	Users       []SUser `xml:"Users>member"`
	IsTruncated bool    `xml:"IsTruncated"`
	Marker      string  `xml:"Marker"`
}

type SVisibilityConfig

type SVisibilityConfig struct {
	CloudWatchMetricsEnabled bool
	MetricName               string
	SampledRequestsEnabled   bool
}

type SVpc

type SVpc struct {
	multicloud.SVpc
	AwsTags

	VpcId                   string `xml:"vpcId"`
	CidrBlock               string `xml:"cidrBlock"`
	CidrBlockAssociationSet []struct {
		CidrBlock      string `xml:"cidrBlock"`
		AssociationId  string `xml:"associationId"`
		CidrBlockState struct {
			State string `xml:"state"`
		} `xml:"cidrBlockState"`
	} `xml:"cidrBlockAssociationSet>item"`
	IsDefault       bool   `xml:"isDefault"`
	Status          string `xml:"state"`
	InstanceTenancy string `xml:"instanceTenancy"`
	// contains filtered or unexported fields
}

func (*SVpc) AcceptICloudVpcPeeringConnection

func (self *SVpc) AcceptICloudVpcPeeringConnection(id string) error

func (*SVpc) AddDefaultInternetGatewayRoute

func (self *SVpc) AddDefaultInternetGatewayRoute(igwId string) error

func (*SVpc) AttachInternetGateway

func (self *SVpc) AttachInternetGateway(igwId string) error

func (*SVpc) Delete

func (self *SVpc) Delete() error

Deletes the specified VPC. You must detach or delete all gateways and resources that are associated with the VPC before you can delete it. For example, you must terminate all instances running in the VPC, delete all security groups associated with the VPC (except the default one), delete all route tables associated with the VPC (except the default one), and so on.

func (*SVpc) DeleteInternetGateways

func (self *SVpc) DeleteInternetGateways() error

func (*SVpc) DetachInternetGateways

func (self *SVpc) DetachInternetGateways() error

func (*SVpc) GetAuthorityOwnerId

func (self *SVpc) GetAuthorityOwnerId() string

func (*SVpc) GetCidrBlock

func (self *SVpc) GetCidrBlock() string

func (*SVpc) GetExternalAccessMode

func (self *SVpc) GetExternalAccessMode() string

func (*SVpc) GetGlobalId

func (self *SVpc) GetGlobalId() string

func (*SVpc) GetICloudAccepterVpcPeeringConnections

func (self *SVpc) GetICloudAccepterVpcPeeringConnections() ([]cloudprovider.ICloudVpcPeeringConnection, error)

func (*SVpc) GetICloudVpcPeeringConnectionById

func (self *SVpc) GetICloudVpcPeeringConnectionById(id string) (cloudprovider.ICloudVpcPeeringConnection, error)

func (*SVpc) GetICloudVpcPeeringConnections

func (self *SVpc) GetICloudVpcPeeringConnections() ([]cloudprovider.ICloudVpcPeeringConnection, error)

func (*SVpc) GetINatGateways

func (self *SVpc) GetINatGateways() ([]cloudprovider.ICloudNatGateway, error)

func (*SVpc) GetIRouteTableById

func (self *SVpc) GetIRouteTableById(routeTableId string) (cloudprovider.ICloudRouteTable, error)

func (*SVpc) GetIRouteTables

func (self *SVpc) GetIRouteTables() ([]cloudprovider.ICloudRouteTable, error)

func (*SVpc) GetISecurityGroups

func (self *SVpc) GetISecurityGroups() ([]cloudprovider.ICloudSecurityGroup, error)

func (*SVpc) GetIWireById

func (self *SVpc) GetIWireById(wireId string) (cloudprovider.ICloudWire, error)

func (*SVpc) GetIWires

func (self *SVpc) GetIWires() ([]cloudprovider.ICloudWire, error)

func (*SVpc) GetId

func (self *SVpc) GetId() string

func (*SVpc) GetIsDefault

func (self *SVpc) GetIsDefault() bool

func (*SVpc) GetMainRouteTable

func (self *SVpc) GetMainRouteTable() (*SRouteTable, error)

func (*SVpc) GetName

func (self *SVpc) GetName() string

func (*SVpc) GetRegion

func (self *SVpc) GetRegion() cloudprovider.ICloudRegion

func (*SVpc) GetStatus

func (self *SVpc) GetStatus() string

func (*SVpc) IsSupportSetExternalAccess

func (self *SVpc) IsSupportSetExternalAccess() bool

func (*SVpc) Refresh

func (self *SVpc) Refresh() error

type SVpcAttributes

type SVpcAttributes struct {
	PrivateIpAddress SIpAddress
	NetworkId        string // subnet id
	VpcId            string
}

type SVpcPeeringConnection

type SVpcPeeringConnection struct {
	multicloud.SResourceBase
	AwsTags

	AccepterVpcInfo  VpcPeeringConnectionVpcInfo `xml:"accepterVpcInfo"`
	ExpirationTime   time.Time                   `xml:"expirationTime"`
	RequesterVpcInfo VpcPeeringConnectionVpcInfo `xml:"requesterVpcInfo"`
	Status           struct {
		Code    string `xml:"code"`
		Message string `xml:"message"`
	} `xml:"status"`
	VpcPeeringConnectionId string `xml:"vpcPeeringConnectionId"`
	// contains filtered or unexported fields
}

func (*SVpcPeeringConnection) Delete

func (self *SVpcPeeringConnection) Delete() error

func (*SVpcPeeringConnection) GetDescription

func (self *SVpcPeeringConnection) GetDescription() string

func (*SVpcPeeringConnection) GetEnabled

func (self *SVpcPeeringConnection) GetEnabled() bool

func (*SVpcPeeringConnection) GetGlobalId

func (self *SVpcPeeringConnection) GetGlobalId() string

func (*SVpcPeeringConnection) GetId

func (self *SVpcPeeringConnection) GetId() string

func (*SVpcPeeringConnection) GetName

func (self *SVpcPeeringConnection) GetName() string

func (*SVpcPeeringConnection) GetPeerAccountId

func (self *SVpcPeeringConnection) GetPeerAccountId() string

func (*SVpcPeeringConnection) GetPeerVpcId

func (self *SVpcPeeringConnection) GetPeerVpcId() string

func (*SVpcPeeringConnection) GetStatus

func (self *SVpcPeeringConnection) GetStatus() string

func (*SVpcPeeringConnection) Refresh

func (self *SVpcPeeringConnection) Refresh() error

type SVpcSecurityGroupMembership

type SVpcSecurityGroupMembership struct {
	VpcSecurityGroupId string `xml:"VpcSecurityGroupId"`
	Status             string `xml:"Status"`
}

type SVpcSecurityGroups

type SVpcSecurityGroups struct {
	VpcSecurityGroupMembership SVpcSecurityGroupMembership `xml:"VpcSecurityGroupMembership"`
}

type SWafIPSet

type SWafIPSet struct {
	Addresses   []string
	ARN         string
	Description string
	Id          string
	LockToken   string
	Name        string
	// contains filtered or unexported fields
}

func (*SWafIPSet) Delete

func (self *SWafIPSet) Delete() error

func (*SWafIPSet) GetAddresses

func (self *SWafIPSet) GetAddresses() cloudprovider.WafAddresses

func (*SWafIPSet) GetDesc

func (self *SWafIPSet) GetDesc() string

func (*SWafIPSet) GetGlobalId

func (self *SWafIPSet) GetGlobalId() string

func (*SWafIPSet) GetName

func (self *SWafIPSet) GetName() string

func (*SWafIPSet) GetType

func (self *SWafIPSet) GetType() cloudprovider.TWafType

type SWafRegexSet

type SWafRegexSet struct {
	RegularExpressionList []RegularExpression
	ARN                   string
	Description           string
	Id                    string
	LockToken             string
	Name                  string
	// contains filtered or unexported fields
}

func (*SWafRegexSet) Delete

func (self *SWafRegexSet) Delete() error

func (*SWafRegexSet) GetDesc

func (self *SWafRegexSet) GetDesc() string

func (*SWafRegexSet) GetGlobalId

func (self *SWafRegexSet) GetGlobalId() string

func (*SWafRegexSet) GetName

func (self *SWafRegexSet) GetName() string

func (*SWafRegexSet) GetRegexPatterns

func (self *SWafRegexSet) GetRegexPatterns() cloudprovider.WafRegexPatterns

func (*SWafRegexSet) GetType

func (self *SWafRegexSet) GetType() cloudprovider.TWafType

type SWafRule

type SWafRule struct {
	Action struct {
		Block struct {
		} `json:"Block"`
	} `json:"Action"`
	Name string `json:"Name"`
}

type SWafRuleGroup

type SWafRuleGroup struct {
	Description string
	Name        string
	VendorName  string
	Capacity    int `json:"Capacity"`
	Rules       []SWafRule
}

type SWebAcl

type SWebAcl struct {
	multicloud.SResourceBase
	AwsTags

	*wafv2.WebACL

	LockToken string
	// contains filtered or unexported fields
}

func (*SWebAcl) AddRule

func (*SWebAcl) Delete

func (self *SWebAcl) Delete() error

func (*SWebAcl) GetCloudResources

func (self *SWebAcl) GetCloudResources() ([]cloudprovider.SCloudResource, error)

func (*SWebAcl) GetDefaultAction

func (self *SWebAcl) GetDefaultAction() *cloudprovider.DefaultAction

func (*SWebAcl) GetDescription

func (self *SWebAcl) GetDescription() string

func (*SWebAcl) GetEnabled

func (self *SWebAcl) GetEnabled() bool

func (*SWebAcl) GetGlobalId

func (self *SWebAcl) GetGlobalId() string

func (*SWebAcl) GetId

func (self *SWebAcl) GetId() string

func (*SWebAcl) GetName

func (self *SWebAcl) GetName() string

func (*SWebAcl) GetRules

func (self *SWebAcl) GetRules() ([]cloudprovider.ICloudWafRule, error)

func (*SWebAcl) GetStatus

func (self *SWebAcl) GetStatus() string

func (*SWebAcl) GetWafType

func (self *SWebAcl) GetWafType() cloudprovider.TWafType

func (*SWebAcl) Refresh

func (self *SWebAcl) Refresh() error

type SWire

type SWire struct {
	multicloud.SResourceBase
	AwsTags
	// contains filtered or unexported fields
}

func (*SWire) CreateINetwork

func (*SWire) GetBandwidth

func (self *SWire) GetBandwidth() int

func (*SWire) GetDescription

func (self *SWire) GetDescription() string

func (*SWire) GetGlobalId

func (self *SWire) GetGlobalId() string

func (*SWire) GetINetworkById

func (self *SWire) GetINetworkById(netid string) (cloudprovider.ICloudNetwork, error)

func (*SWire) GetINetworks

func (self *SWire) GetINetworks() ([]cloudprovider.ICloudNetwork, error)

func (*SWire) GetIVpc

func (self *SWire) GetIVpc() cloudprovider.ICloudVpc

func (*SWire) GetIZone

func (self *SWire) GetIZone() cloudprovider.ICloudZone

func (*SWire) GetId

func (self *SWire) GetId() string

func (*SWire) GetName

func (self *SWire) GetName() string

func (*SWire) GetStatus

func (self *SWire) GetStatus() string

func (*SWire) IsEmulated

func (self *SWire) IsEmulated() bool

type SZone

type SZone struct {
	multicloud.SResourceBase
	AwsTags

	ZoneName           string `xml:"zoneName"`
	ZoneId             string `xml:"zoneId"`
	ZoneState          string `xml:"zoneState"`
	RegionName         string `xml:"regionName"`
	GroupName          string `xml:"groupName"`
	OptInStatus        string `xml:"optInStatus"`
	NetworkBorderGroup string `xml:"networkBorderGroup"`
	ZoneType           string `xml:"zoneType"`
	// contains filtered or unexported fields
}

func (*SZone) GetDescription

func (self *SZone) GetDescription() string

func (*SZone) GetGlobalId

func (self *SZone) GetGlobalId() string

func (*SZone) GetI18n

func (self *SZone) GetI18n() cloudprovider.SModelI18nTable

func (*SZone) GetIHostById

func (self *SZone) GetIHostById(id string) (cloudprovider.ICloudHost, error)

func (*SZone) GetIHosts

func (self *SZone) GetIHosts() ([]cloudprovider.ICloudHost, error)

func (*SZone) GetIRegion

func (self *SZone) GetIRegion() cloudprovider.ICloudRegion

func (*SZone) GetIStorageById

func (self *SZone) GetIStorageById(id string) (cloudprovider.ICloudStorage, error)

func (*SZone) GetIStorages

func (self *SZone) GetIStorages() ([]cloudprovider.ICloudStorage, error)

func (*SZone) GetIWires

func (self *SZone) GetIWires() ([]cloudprovider.ICloudWire, error)

func (*SZone) GetId

func (self *SZone) GetId() string

func (*SZone) GetName

func (self *SZone) GetName() string

func (*SZone) GetStatus

func (self *SZone) GetStatus() string

type SecurityGroupMembership

type SecurityGroupMembership struct {
	SecurityGroupId string `xml:"SecurityGroupId"`
	Status          string `xml:"Status"`
}

type Sku

type Sku struct {
	InstanceType string `xml:"instanceType"`
}

type State

type State struct {
	Code string `xml:"Code"`
}

type Subnet

type Subnet struct {
	SubnetAvailabilityZone AvailabilityZone `xml:"SubnetAvailabilityZone"`
	SubnetIdentifier       string           `xml:"SubnetIdentifier"`
	SubnetOutpost          SubnetOutpost    `xml:"SubnetOutpost"`
}

type SubnetOutpost

type SubnetOutpost struct {
	SubnetOutpostArn string `xml:"SubnetOutpostArn"`
}

type TImageOwnerType

type TImageOwnerType string

type Target

type Target struct {
	ID   string `json:"Id"`
	Port int    `json:"Port"`
}

type TargetHealth

type TargetHealth struct {
	State       string `json:"State"`
	Reason      string `json:"Reason"`
	Description string `json:"Description"`
}

type Term

type Term struct {
	PriceDimensions map[string]Dimension `json:"priceDimensions"`
	Sku             string               `json:"sku"`
	EffectiveDate   string               `json:"effectiveDate"`
	OfferTermCode   string               `json:"offerTermCode"`
	TermAttributes  TermAttributes       `json:"termAttributes"`
}

type TermAttributes

type TermAttributes struct {
	LeaseContractLength string `json:"LeaseContractLength"`
	OfferingClass       string `json:"OfferingClass"`
	PurchaseOption      string `json:"PurchaseOption"`
}

type Terms

type Terms struct {
	OnDemand map[string]Term `json:"OnDemand"`
	Reserved map[string]Term `json:"Reserved"`
}

type VolumeAttachment

type VolumeAttachment struct {
	AttachTime          time.Time `xml:"attachTime"`
	DeleteOnTermination bool      `xml:"deleteOnTermination"`
	Device              string    `xml:"device"`
	InstanceId          string    `xml:"instanceId"`
	State               string    `xml:"status"`
	VolumeId            string    `xml:"volumeId"`
}

type VpcPeeringConnectionVpcInfo

type VpcPeeringConnectionVpcInfo struct {
	CidrBlock    string `xml:"cidrBlock"`
	CidrBlockSet []struct {
		CidrBlock string `xml:"cidrBlock"`
	} `xml:"cidrBlockSet"`
	Ipv6CidrBlockSet []struct {
		Ipv6CidrBlock string `xml:"ipv6CidrBlock"`
	} `xml:"ipv6CidrBlockSet"`
	OwnerId        string `xml:"ownerId"`
	PeeringOptions struct {
		AllowDnsResolutionFromRemoteVpc            bool `xml:"allowDnsResolutionFromRemoteVpc"`
		AllowEgressFromLocalClassicLinkToRemoteVpc bool `xml:"allowEgressFromLocalClassicLinkToRemoteVpc"`
		AllowEgressFromLocalVpcToRemoteClassicLink bool `xml:"allowEgressFromLocalVpcToRemoteClassicLink"`
	} `xml:"peeringOptions"`
	Region string `xml:"region"`
	VpcId  string `xml:"vpcId"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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