aws

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

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

Go to latest
Published: Oct 27, 2022 License: Apache-2.0 Imports: 83 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"

	ELASTICACHE_SERVICE_NAME = "elasticache"
)
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 (
	DEBUG = false
)
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,
}
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": "非洲(开普敦)",
}
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)",
}
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 (
	WAF_SCOPES = []string{
		SCOPE_REGIONAL,
		SCOPE_CLOUDFRONT,
	}
)

Functions

func AppendFilter

func AppendFilter(filters []*ec2.Filter, name string, values []string) []*ec2.Filter

func AppendSingleValueFilter

func AppendSingleValueFilter(filters []*ec2.Filter, name string, value string) []*ec2.Filter

func AwsApiInt64ToOutput

func AwsApiInt64ToOutput(input *int64) int64

func AwsApiSliceStringToOutput

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

func AwsIpPermissionToYunion

func AwsIpPermissionToYunion(direction secrules.TSecurityRuleDirection, p ec2.IpPermission) ([]cloudprovider.SecurityRule, error)

Security Rule Transform

func Build

func Build(r *request.Request)

func CodeMatch

func CodeMatch(s string, d *string) bool

func ConvertedList

func ConvertedList(list []string) []*string

func ConvertedPointList

func ConvertedPointList(list []*string) []string

func FetchTags

func FetchTags(client *ec2.EC2, resourceId string) (*jsonutils.JSONDict, error)

fetch tags

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 Getroute53ResourceRecordSet

func Getroute53ResourceRecordSet(client *SAwsClient, opts *cloudprovider.DnsRecordSet) (*route53.ResourceRecordSet, error)

func InputToAwsApiInt64

func InputToAwsApiInt64(input int64) *int64

func InputToAwsApiSliceString

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

func IntVal

func IntVal(s *int64) int64

func NextDeviceName

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

func SecurityRuleSetToAllowSet

func SecurityRuleSetToAllowSet(srs secrules.SecurityRuleSet) secrules.SecurityRuleSet

SecurityRuleSet to allow list 将安全组规则全部转换为等价的allow规则

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 YunionSecRuleToAws

func YunionSecRuleToAws(rule cloudprovider.SecurityRule) ([]*ec2.IpPermission, error)

YunionSecRuleToAws 不能保证无损转换 规则描述如果包含中文等字符,将被丢弃掉

Types

type Action

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

type AssociatedVPC

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

type Association

type Association struct {
	Main                    bool    `json:"Main"`
	RouteTableAssociationID string  `json:"RouteTableAssociationId"`
	RouteTableID            string  `json:"RouteTableId"`
	GatewayID               *string `json:"GatewayId,omitempty"`
	SubnetID                *string `json:"SubnetId,omitempty"`
}

type Attributes

type Attributes struct {
	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 AvailabilityZone

type AvailabilityZone struct {
	LoadBalancerAddresses []LoadBalancerAddress `json:"LoadBalancerAddresses"`
	ZoneName              string                `json:"ZoneName"`
	SubnetID              string                `json:"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 Certificate

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

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 HTTPHeaderConfig

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

type HostedZoneConfig

type HostedZoneConfig struct {
	Comment     string `json:"Comment"`
	PrivateZone bool   `json:"PrivateZone"`
}

type ImageExportTask

type ImageExportTask struct {
	ImageId  string
	RegionId string
	TaskId   string
}

type ImageImportTask

type ImageImportTask struct {
	multicloud.SResourceBase

	ImageId  string
	RegionId string
	TaskId   string
	Status   string
	// 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 InstanceChargeType

type InstanceChargeType string

type InternetGatewayAttachment

type InternetGatewayAttachment struct {
	State string `json:"State"`
	VpcID string `json:"VpcId"`
}

type LoadBalancerAddress

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

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 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 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
	multicloud.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() 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 `json:"DNSName"`
	EvaluateTargetHealth *bool  `json:"EvaluateTargetHealth"`
	HostedZoneId         string `json:"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) AddDnsRecordSet

func (client *SAwsClient) AddDnsRecordSet(hostedZoneId string, opts *cloudprovider.DnsRecordSet) error

func (*SAwsClient) AddUserToGroup

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

func (*SAwsClient) AssociateVPCWithHostedZone

func (client *SAwsClient) AssociateVPCWithHostedZone(vpcId string, regionId string, hostedZoneId 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 (client *SAwsClient) ChangeResourceRecordSets(action string, hostedZoneId string, resourceRecordSets ...*route53.ResourceRecordSet) error

CREATE, DELETE, UPSERT

func (*SAwsClient) CreateGroup

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

func (*SAwsClient) CreateHostedZone

func (client *SAwsClient) CreateHostedZone(opts *cloudprovider.SDnsZoneCreateOptions) (*SHostedZone, 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) DeleteGroup

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

func (*SAwsClient) DeleteHostedZone

func (client *SAwsClient) DeleteHostedZone(Id 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, hostedZoneId 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) 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) GetHostedZoneById

func (client *SAwsClient) GetHostedZoneById(ID string) (*SHostedZone, error)

func (*SAwsClient) GetHostedZoneVpcs

func (client *SAwsClient) GetHostedZoneVpcs(hostedzoneId string) ([]AssociatedVPC, error)

func (*SAwsClient) GetHostedZones

func (client *SAwsClient) GetHostedZones() ([]SHostedZone, 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) GetRoute53ResourceRecordSets

func (client *SAwsClient) GetRoute53ResourceRecordSets(HostedZoneId string) ([]*route53.ResourceRecordSet, error)

func (*SAwsClient) GetSAMLProvider

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

func (*SAwsClient) GetSTrafficPolicyById

func (client *SAwsClient) GetSTrafficPolicyById(TrafficPolicyInstanceId string) (*STrafficPolicy, error)

func (*SAwsClient) GetSamlEntityId

func (client *SAwsClient) GetSamlEntityId() string

func (*SAwsClient) GetSdnsRecordSets

func (client *SAwsClient) GetSdnsRecordSets(HostedZoneId string) ([]SdnsRecordSet, error)

func (*SAwsClient) GetSubAccounts

func (self *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() ([]*route53.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) 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) RemoveDnsRecordSet

func (client *SAwsClient) RemoveDnsRecordSet(hostedZoneId string, opts *cloudprovider.DnsRecordSet) 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) UpdateDnsRecordSet

func (client *SAwsClient) UpdateDnsRecordSet(hostedZoneId string, opts *cloudprovider.DnsRecordSet) 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 SBucket

type SBucket struct {
	multicloud.SBaseBucket
	multicloud.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) 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) 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) 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 SCallerIdentity

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

type SDBInstance

type SDBInstance struct {
	multicloud.SDBInstanceBase
	multicloud.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) 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

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
	multicloud.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
	multicloud.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
	multicloud.AwsTags

	RegionId string
	ZoneId   string // AvailabilityZone
	DiskId   string // VolumeId

	DiskName         string // Tag Name
	Size             int    // Size GB
	Category         string // VolumeType
	Type             string // system | data
	Status           string // State
	AttachmentStatus string // attachment.status
	Device           string // Device
	InstanceId       string // InstanceId
	Encrypted        bool   // Encrypted
	SourceSnapshotId string // SnapshotId
	Iops             int    // Iops

	CreationTime time.Time // CreateTime
	AttachedTime time.Time // AttachTime
	DetachedTime time.Time

	DeleteWithInstance            bool // DeleteOnTermination
	EnableAutoSnapshot            bool
	EnableAutomatedSnapshotPolicy bool

	/*下面这些字段也许不需要*/
	AutoSnapshotPolicyId string
	DeleteAutoSnapshot   bool
	Description          string
	DiskChargeType       InstanceChargeType
	ExpiredTime          time.Time
	ImageId              string
	MountInstances       SMountInstances
	Portable             bool
	ProductCode          string
	ResourceGroupId      string
	// 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) 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) IsEmulated

func (self *SDisk) IsEmulated() bool

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 SEipAddress

type SEipAddress struct {
	multicloud.SEipBase
	multicloud.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

type SElasticache

type SElasticache struct {
	multicloud.SElasticcacheBase
	multicloud.AwsTags
	// 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) GetParameterGroupName

func (self *SElasticache) GetParameterGroupName() (string, error)

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) GetSnapshots

func (self *SElasticache) GetSnapshots() ([]SElasticacheSnapshop, error)

func (*SElasticache) GetStatus

func (self *SElasticache) GetStatus() string

func (*SElasticache) GetUserById

func (self *SElasticache) GetUserById(id string) (*SElasticacheUser, error)

func (*SElasticache) GetUsers

func (self *SElasticache) GetUsers() ([]SElasticacheUser, 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) 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
	multicloud.AwsTags
	// contains filtered or unexported fields
}

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
	multicloud.AwsTags
	// 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
	multicloud.AwsTags
	// 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.SResourceBase

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

func (*SElb) CreateILoadBalancerListener

func (self *SElb) CreateILoadBalancerListener(ctx context.Context, listener *cloudprovider.SLoadbalancerListener) (cloudprovider.ICloudLoadbalancerListener, error)

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) 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) GetProjectId

func (self *SElb) GetProjectId() 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) IsEmulated

func (self *SElb) IsEmulated() bool

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
	multicloud.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) 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
	multicloud.AwsTags

	TargetGroupName            string   `json:"TargetGroupName"`
	Protocol                   string   `json:"Protocol"`
	Port                       int64    `json:"Port"`
	VpcID                      string   `json:"VpcId"`
	TargetType                 string   `json:"TargetType"`
	HealthyThresholdCount      int      `json:"HealthyThresholdCount"`
	Matcher                    Matcher  `json:"Matcher"`
	UnhealthyThresholdCount    int      `json:"UnhealthyThresholdCount"`
	HealthCheckPath            string   `json:"HealthCheckPath"`
	HealthCheckProtocol        string   `json:"HealthCheckProtocol"`
	HealthCheckPort            string   `json:"HealthCheckPort"`
	HealthCheckIntervalSeconds int      `json:"HealthCheckIntervalSeconds"`
	HealthCheckTimeoutSeconds  int      `json:"HealthCheckTimeoutSeconds"`
	TargetGroupArn             string   `json:"TargetGroupArn"`
	LoadBalancerArns           []string `json:"LoadBalancerArns"`
	// 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) 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) GetLoadbalancerId

func (self *SElbBackendGroup) GetLoadbalancerId() 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) IsEmulated

func (self *SElbBackendGroup) IsEmulated() 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 SElbCertificate

type SElbCertificate struct {
	multicloud.SResourceBase
	multicloud.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) 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
	multicloud.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) 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) 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) Start

func (self *SElbListener) Start() error

func (*SElbListener) Stop

func (self *SElbListener) Stop() error

func (*SElbListener) Sync

func (*SElbListener) XForwardedForEnabled

func (self *SElbListener) XForwardedForEnabled() bool

type SElbListenerRule

type SElbListenerRule struct {
	multicloud.SResourceBase
	multicloud.SLoadbalancerRedirectBase
	multicloud.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) 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 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 SGeoLocationCode

type SGeoLocationCode struct {
	// The two-letter code for the continent.
	//
	// Valid values: AF | AN | AS | EU | OC | NA | SA
	//
	// Constraint: Specifying ContinentCode with either CountryCode or SubdivisionCode
	// returns an InvalidInput error.
	ContinentCode string `json:"ContinentCode"`

	// The two-letter code for the country.
	CountryCode string `json:"CountryCode"`

	// The code for the subdivision. Route 53 currently supports only states in
	// the United States.
	SubdivisionCode string `json:"SubdivisionCode"`
}

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 (self *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(gid string) (cloudprovider.ICloudVM, error)

func (*SHost) GetIVMs

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

func (*SHost) GetIWires

func (self *SHost) GetIWires() ([]cloudprovider.ICloudWire, 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 SHostedZone

type SHostedZone struct {
	multicloud.SResourceBase
	multicloud.AwsTags

	ID                     string           `json:"Id"`
	Name                   string           `json:"Name"`
	Config                 HostedZoneConfig `json:"Config"`
	ResourceRecordSetCount int64            `json:"ResourceRecordSetCount"`
	// contains filtered or unexported fields
}

func (*SHostedZone) AddDnsRecordSet

func (self *SHostedZone) AddDnsRecordSet(opts *cloudprovider.DnsRecordSet) error

func (*SHostedZone) AddVpc

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

func (*SHostedZone) Delete

func (self *SHostedZone) Delete() error

func (*SHostedZone) GetDnsProductType

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

func (*SHostedZone) GetGlobalId

func (self *SHostedZone) GetGlobalId() string

func (*SHostedZone) GetICloudVpcIds

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

func (*SHostedZone) GetIDnsRecordSets

func (self *SHostedZone) GetIDnsRecordSets() ([]cloudprovider.ICloudDnsRecordSet, error)

func (*SHostedZone) GetId

func (self *SHostedZone) GetId() string

func (*SHostedZone) GetName

func (self *SHostedZone) GetName() string

func (*SHostedZone) GetOptions

func (self *SHostedZone) GetOptions() *jsonutils.JSONDict

func (*SHostedZone) GetStatus

func (self *SHostedZone) GetStatus() string

func (*SHostedZone) GetZoneType

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

func (*SHostedZone) Refresh

func (self *SHostedZone) Refresh() error

func (*SHostedZone) RemoveDnsRecordSet

func (self *SHostedZone) RemoveDnsRecordSet(opts *cloudprovider.DnsRecordSet) error

func (*SHostedZone) RemoveVpc

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

func (*SHostedZone) SyncDnsRecordSets

func (self *SHostedZone) SyncDnsRecordSets(common, add, del, update []cloudprovider.DnsRecordSet) error

func (*SHostedZone) UpdateDnsRecordSet

func (self *SHostedZone) UpdateDnsRecordSet(opts *cloudprovider.DnsRecordSet) error

type SImage

type SImage struct {
	multicloud.SImageBase
	multicloud.AwsTags

	Architecture string
	CreationTime time.Time
	Description  string
	ImageId      string
	ImageName    string
	OSType       string
	ImageType    cloudprovider.TImageType
	// IsSupportCloudinit   bool
	EnaSupport bool
	Platform   string
	SizeGB     int
	Status     ImageStatusType
	OwnerType  string
	// Usage                string
	RootDevice     RootDevice
	RootDeviceName string
	// devices
	BlockDevicesNames []string

	Public             bool
	Hypervisor         string
	VirtualizationType string
	OwnerId            string

	ProductCodes []*ec2.ProductCode

	OSVersion string
	OSDist    string
	OSBuildId string
	// 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) 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

	RegionId   string
	ZoneId     string
	InstanceId string
	ImageId    string

	HostName                string
	InstanceName            string
	InstanceType            string
	Cpu                     int
	Memory                  int // MB
	IoOptimized             bool
	KeyPairName             string
	CreationTime            time.Time // LaunchTime
	ExpiredTime             time.Time
	ProductCodes            []string
	PublicDNSName           string
	InnerIpAddress          SIpAddress
	PublicIpAddress         SIpAddress
	RootDeviceName          string
	Status                  string // state
	VlanId                  string // subnet ID ?
	VpcAttributes           SVpcAttributes
	SecurityGroupIds        SSecurityGroupIds
	NetworkInterfaces       []SNetworkInterface
	EipAddress              SEipAddress
	Disks                   []string
	DeviceNames             []string
	OSName                  string
	OSType                  string
	Description             string
	InternetMaxBandwidthOut int
	Throughput              int

	TagSpec TagSpec
	// contains filtered or unexported fields
}

func (*SInstance) AssignSecurityGroup

func (self *SInstance) AssignSecurityGroup(secgroupId string) error

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, description 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) GetArn

func (self *SInstance) GetArn() 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) 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) GetSysTags

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

func (*SInstance) GetTags

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

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) IsEmulated

func (self *SInstance) IsEmulated() bool

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

func (self *SInstance) UpdateVM(ctx context.Context, name string) error

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 SInstnaceType

type SInstnaceType 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
	multicloud.AwsTags

	Attachments       []InternetGatewayAttachment `json:"Attachments"`
	InternetGatewayID string                      `json:"InternetGatewayId"`
	OwnerID           string                      `json:"OwnerId"`
	// contains filtered or unexported fields
}

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
	KeyPairName        string
}

type SLoginProfile

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

type SMountInstances

type SMountInstances struct {
	MountInstance []string
}

type SNatGateway

type SNatGateway struct {
	multicloud.SNatGatewayBase
	multicloud.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

type SNetwork

type SNetwork struct {
	multicloud.SResourceBase
	multicloud.AwsTags

	AvailableIpAddressCount int
	CidrBlock               string
	CreationTime            time.Time
	Description             string
	IsDefault               bool
	Status                  string
	NetworkId               string
	NetworkName             string
	VpcId                   string
	ZoneId                  string
	// contains filtered or unexported fields
}

func (*SNetwork) Delete

func (self *SNetwork) Delete() error

func (*SNetwork) GetAllocTimeoutSeconds

func (self *SNetwork) GetAllocTimeoutSeconds() int

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() rbacutils.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) IsEmulated

func (self *SNetwork) IsEmulated() bool

func (*SNetwork) Refresh

func (self *SNetwork) Refresh() error

type SNetworkInterface

type SNetworkInterface struct {
	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 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
	RegionId       string // 这里为保持一致沿用阿里云RegionId的叫法, 与AWS RegionName字段对应
	// contains filtered or unexported fields
}

func (*SRegion) AcceptVpcPeeringConnection

func (self *SRegion) AcceptVpcPeeringConnection(vpcPeeringConnectionId string) (*ec2.VpcPeeringConnection, error)

func (*SRegion) AddElbBackend

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

func (*SRegion) AddElbBackends

func (self *SRegion) AddElbBackends(backendgroupId string, backends []cloudprovider.SLoadbalancerBackend) 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) 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(zoneId string, instanceId string, instanceType string, disks []*SDisk) error

func (*SRegion) CheckBucket

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

func (*SRegion) CreateDisk

func (self *SRegion) CreateDisk(zoneId string, category string, name string, sizeGb int, snapshotId string, desc string) (string, error)

func (*SRegion) CreateEIP

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

func (*SRegion) CreateElbBackendgroup

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

目前只支持target type :instance

func (*SRegion) CreateElbListener

func (self *SRegion) CreateElbListener(listener *cloudprovider.SLoadbalancerListener) (*SElbListener, error)

func (*SRegion) CreateElbListenerRule

func (self *SRegion) CreateElbListenerRule(listenerId string, config *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) CreateILoadBalancer

func (self *SRegion) CreateILoadBalancer(loadbalancer *cloudprovider.SLoadbalancer) (cloudprovider.ICloudLoadbalancer, error)

func (*SRegion) CreateISecurityGroup

func (*SRegion) CreateIVpc

func (*SRegion) CreateInstance

func (self *SRegion) CreateInstance(name string, image *SImage, instanceType string, SubnetId string, securityGroupId string,
	zoneId string, desc string, disks []SDisk, ipAddr string,
	keypair string, userData string, ntags map[string]string,
) (string, error)

func (*SRegion) CreateInstanceSimple

func (self *SRegion) CreateInstanceSimple(name string, imgId string, cpu int, memGB int, storageType string, dataDiskSizesGB []int, networkId string, publicKey string) (*SInstance, error)

func (*SRegion) CreateInternetGateway

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

func (*SRegion) CreateRoute

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

func (*SRegion) CreateSecurityGroup

func (self *SRegion) CreateSecurityGroup(vpcId string, name string, secgroupIdTag string, desc string) (string, error)

func (*SRegion) CreateSnapshot

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

func (*SRegion) CreateVpcPeeringConnection

func (self *SRegion) CreateVpcPeeringConnection(vpcId string, opts *cloudprovider.VpcPeeringConnectionCreateOptions) (*ec2.VpcPeeringConnection, 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) DelSecurityGroupRule

func (self *SRegion) DelSecurityGroupRule(secGrpId string, rule cloudprovider.SecurityRule) error

func (*SRegion) DeleteDisk

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

func (*SRegion) DeleteElb

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

func (*SRegion) DeleteElbBackendGroup

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

func (*SRegion) DeleteElbListener

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

func (*SRegion) DeleteElbListenerRule

func (self *SRegion) DeleteElbListenerRule(ruleId 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) DeleteNatgateway

func (self *SRegion) DeleteNatgateway(id 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) 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(secGrpId string) error

func (*SRegion) DeleteSnapshot

func (self *SRegion) DeleteSnapshot(snapshotId 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(vpcPeeringConnectionId string) error

func (*SRegion) DeleteVpcPeeringConnectionRoute

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

func (*SRegion) DeleteWebAcl

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

func (*SRegion) DeployVM

func (self *SRegion) DeployVM(instanceId string, name string, password string, keypairName string, deleteKeypair bool, description string) error

func (*SRegion) DescribeAccepterVpcPeeringConnections

func (self *SRegion) DescribeAccepterVpcPeeringConnections(vpcId string) ([]*ec2.VpcPeeringConnection, error)

func (*SRegion) DescribeCacheParameters

func (region *SRegion) DescribeCacheParameters(parameterGroupId string) ([]*elasticache.Parameter, error)

func (*SRegion) DescribeCacheSubnetGroups

func (region *SRegion) DescribeCacheSubnetGroups(Id string) ([]*elasticache.CacheSubnetGroup, error)

func (*SRegion) DescribeElasticacheClusters

func (region *SRegion) DescribeElasticacheClusters() ([]*elasticache.CacheCluster, error)

func (*SRegion) DescribeElasticacheReplicationGroups

func (region *SRegion) DescribeElasticacheReplicationGroups(Id string) ([]*elasticache.ReplicationGroup, 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) DescribeRequesterVpcPeeringConnections

func (self *SRegion) DescribeRequesterVpcPeeringConnections(vpcId string) ([]*ec2.VpcPeeringConnection, error)

func (*SRegion) DescribeSnapshots

func (region *SRegion) DescribeSnapshots(replicaGroupId string, snapshotName string) ([]*elasticache.Snapshot, error)

func (*SRegion) DescribeUsers

func (region *SRegion) DescribeUsers(engine string) ([]*elasticache.User, error)

func (*SRegion) DescribeVpcPeeringConnections

func (self *SRegion) DescribeVpcPeeringConnections(vpcId string) ([]*ec2.VpcPeeringConnection, error)

func (*SRegion) DetachDisk

func (self *SRegion) DetachDisk(instanceId string, diskId 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) FetchElbTags

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

func (*SRegion) GetARNPartition

func (self *SRegion) GetARNPartition() string

func (*SRegion) GetBucketRegionId

func (self *SRegion) GetBucketRegionId(bucketName string) (string, 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, offset int, limit int) ([]SDisk, int, 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) GetElasticaches

func (region *SRegion) GetElasticaches() ([]SElasticache, error)

func (*SRegion) GetElbBackendgroup

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

func (*SRegion) GetElbBackendgroupAttributesById

func (self *SRegion) GetElbBackendgroupAttributesById(backendgroupId string) (map[string]string, error)

func (*SRegion) GetElbBackendgroups

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

func (*SRegion) GetElbListener

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

func (*SRegion) GetElbListenerRuleById

func (self *SRegion) GetElbListenerRuleById(ruleId string) (*SElbListenerRule, error)

func (*SRegion) GetElbListenerRules

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

func (*SRegion) GetElbListeners

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

func (*SRegion) GetElbV2Client

func (self *SRegion) GetElbV2Client() (*elbv2.ELBV2, 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) 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) GetILoadBalancerBackendGroups

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

func (*SRegion) GetILoadBalancerById

func (self *SRegion) GetILoadBalancerById(loadbalancerId 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(secgroupId string) (cloudprovider.ICloudSecurityGroup, error)

func (*SRegion) GetISecurityGroupByName

func (*SRegion) GetISnapshotById

func (self *SRegion) GetISnapshotById(snapshotId 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) 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) GetInstance

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

func (*SRegion) GetInstanceIdByImageId

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

func (*SRegion) GetInstanceStatus

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

func (*SRegion) GetInstanceTypes

func (self *SRegion) GetInstanceTypes(nextToken string) ([]SInstnaceType, string, error)

func (*SRegion) GetInstances

func (self *SRegion) GetInstances(zoneId string, ids []string, offset int, limit int) ([]SInstance, int, error)

func (*SRegion) GetInternetGateways

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

func (*SRegion) GetKeypairs

func (self *SRegion) GetKeypairs(finger string, name string, offset int, limit int) ([]SKeypair, int, 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, vpcId string) ([]SNetwork, 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) 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 string, mainRouteOnly bool) ([]SRouteTable, error)

func (*SRegion) GetRouteTablesByNetworkId

func (self *SRegion) GetRouteTablesByNetworkId(netId string) ([]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) GetSElasticacheById

func (region *SRegion) GetSElasticacheById(Id string) (*SElasticache, error)

func (*SRegion) GetSecurityGroupDetails

func (self *SRegion) GetSecurityGroupDetails(secGroupId string) (*SSecurityGroup, error)

func (*SRegion) GetSecurityGroups

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

func (*SRegion) GetSkus

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

func (*SRegion) GetSnapshots

func (self *SRegion) GetSnapshots(instanceId string, diskId string, snapshotName string, snapshotIds []string, offset int, limit int) ([]SSnapshot, int, error)

func (*SRegion) GetStatus

func (self *SRegion) GetStatus() string

func (*SRegion) GetVpcPeeringConnectionById

func (self *SRegion) GetVpcPeeringConnectionById(Id string) (*ec2.VpcPeeringConnection, error)

func (*SRegion) GetVpcs

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

func (*SRegion) GetWebAcl

func (self *SRegion) GetWebAcl(id, name, scope string) (*SWebAcl, 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) 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) 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) 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) RemoveRdsTagsFromResource

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

func (*SRegion) RemoveRoute

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

func (*SRegion) ReplaceRoute

func (self *SRegion) ReplaceRoute(routeTableId string, DestinationCIDRBlock 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) 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) SyncELbBackendGroup

func (self *SRegion) SyncELbBackendGroup(backendgroupId string, group *cloudprovider.SLoadbalancerBackendGroup) error

func (*SRegion) SyncElbBackend

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

func (*SRegion) SyncElbListener

func (self *SRegion) SyncElbListener(listener *SElbListener, config *cloudprovider.SLoadbalancerListener) error

func (*SRegion) TagResources

func (self *SRegion) TagResources(arns []string, tags map[string]string) error

func (*SRegion) TestStorageAvailable

func (self *SRegion) TestStorageAvailable(zoneId, storageType string) (bool, error)

func (*SRegion) UntagResources

func (self *SRegion) UntagResources(arns []string, tagKeys []string) error

func (*SRegion) UpdateEipBandwidth

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

func (*SRegion) UpdateResourceTags

func (self *SRegion) UpdateResourceTags(arn string, oldTags, tags map[string]string, replace bool) error

func (*SRegion) UpdateRulesPriority

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

func (*SRegion) UpdateVM

func (self *SRegion) UpdateVM(instanceId string, hostname 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
	multicloud.AwsTags

	DestinationCIDRBlock string `json:"DestinationCidrBlock"`
	Origin               string `json:"Origin"`
	State                string `json:"State"`
	// only one exist
	GatewayID              *string `json:"GatewayId,omitempty"`
	NatGatewayID           *string `json:"NatGatewayId,omitempty"`
	InstanceID             *string `json:"InstanceId,omitempty"`
	LocalGatewayID         *string `json:"LocalGatewayId,omitempty"`
	NetworkInterfaceID     *string `json:"NetworkInterfaceId,omitempty"`
	TransitGatewayID       *string `json:"TransitGatewayId,omitempty"`
	VpcPeeringConnectionID *string `json:"VpcPeeringConnectionId,omitempty"`
	// contains filtered or unexported fields
}

func (*SRoute) GetCidr

func (self *SRoute) GetCidr() 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
	multicloud.AwsTags

	Associations    []Association `json:"Associations"`
	PropagatingVgws []string      `json:"PropagatingVgws"`
	RouteTableID    string        `json:"RouteTableId"`
	Routes          []SRoute      `json:"Routes"`
	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) IsEmulated

func (self *SRouteTable) IsEmulated() bool

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
	multicloud.AwsTags

	RegionId          string
	VpcId             string
	SecurityGroupId   string
	Description       string
	SecurityGroupName string
	Permissions       []cloudprovider.SecurityRule
	// 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) GetProjectId

func (self *SSecurityGroup) GetProjectId() string

func (*SSecurityGroup) GetRules

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

func (*SSecurityGroup) GetStatus

func (self *SSecurityGroup) GetStatus() string

func (*SSecurityGroup) GetVpcId

func (self *SSecurityGroup) GetVpcId() string

func (*SSecurityGroup) IsEmulated

func (self *SSecurityGroup) IsEmulated() bool

func (*SSecurityGroup) Refresh

func (self *SSecurityGroup) Refresh() error

func (*SSecurityGroup) SyncRules

func (self *SSecurityGroup) SyncRules(common, inAdds, outAdds, inDels, outDels []cloudprovider.SecurityRule) error

type SSecurityGroupIds

type SSecurityGroupIds struct {
	SecurityGroupId []string
}

type SSnapshot

type SSnapshot struct {
	multicloud.SResourceBase
	multicloud.AwsTags

	Progress       string
	SnapshotId     string
	SnapshotName   string
	SourceDiskId   string
	SourceDiskSize int32
	SourceDiskType string
	Status         SnapshotStatusType
	Usage          string
	// contains filtered or unexported fields
}

func (*SSnapshot) Delete

func (self *SSnapshot) Delete() error

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) IsEmulated

func (self *SSnapshot) IsEmulated() bool

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) GetEnabled

func (self *SStorage) GetEnabled() bool

func (*SStorage) GetGlobalId

func (self *SStorage) GetGlobalId() string

func (*SStorage) GetIDiskById

func (self *SStorage) GetIDiskById(idStr 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

func (*SStorage) Refresh

func (self *SStorage) Refresh() error

type SStoragecache

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

func (*SStoragecache) CreateIImage

func (self *SStoragecache) CreateIImage(snapshotId, imageName, osType, imageDesc string) (cloudprovider.ICloudImage, error)

func (*SStoragecache) DownloadImage

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

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, userCred mcclient.TokenCredential, 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 STrafficPolicy

type STrafficPolicy struct {
	Comment  string `json:"Comment"`
	Document string `json:"Document"` //require decode
	Id       string `json:"Id"`
	Name     string `json:"Name"`
	DNSType  string `json:"Type"`
	Version  int64  `json:"Version"`
	// contains filtered or unexported fields
}

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
	multicloud.AwsTags

	RegionId                string
	VpcId                   string
	VpcName                 string
	CidrBlock               string
	CidrBlockAssociationSet []string
	IsDefault               bool
	Status                  string
	InstanceTenancy         string
	// 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) DeleteInternetGateway

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

func (*SVpc) DeleteInternetGateways

func (self *SVpc) DeleteInternetGateways() error

func (*SVpc) DetachInternetGateway

func (self *SVpc) DetachInternetGateway(igwId string) 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) IsEmulated

func (self *SVpc) IsEmulated() bool

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
	multicloud.AwsTags
	// contains filtered or unexported fields
}

func (*SVpcPeeringConnection) Delete

func (self *SVpcPeeringConnection) Delete() error

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

tags?

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
	multicloud.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) 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
	multicloud.AwsTags
	// contains filtered or unexported fields
}

func (*SWire) CreateINetwork

func (*SWire) GetBandwidth

func (self *SWire) GetBandwidth() int

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

func (*SWire) Refresh

func (self *SWire) Refresh() error

type SZone

type SZone struct {
	multicloud.SResourceBase
	multicloud.AwsTags

	ZoneId    string // 沿用阿里云ZoneId,对应Aws ZoneName
	LocalName string
	State     string
	// contains filtered or unexported fields
}

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

func (*SZone) IsEmulated

func (self *SZone) IsEmulated() bool

func (*SZone) Refresh

func (self *SZone) Refresh() error

type SdnsRecordSet

type SdnsRecordSet struct {
	AliasTarget             SAliasTarget     `json:"AliasTarget"`
	Name                    string           `json:"Name"`
	ResourceRecords         []resourceRecord `json:"ResourceRecords"`
	TTL                     int64            `json:"TTL"`
	TrafficPolicyInstanceId string           `json:"TrafficPolicyInstanceId"`
	Type                    string           `json:"Type"`
	SetIdentifier           string           `json:"SetIdentifier"` // 区别 多值 等名称重复的记录
	// policy info
	Failover         string            `json:"Failover"`
	GeoLocation      *SGeoLocationCode `json:"GeoLocation"`
	Region           string            `json:"Region"` // latency based
	MultiValueAnswer *bool             `json:"MultiValueAnswer"`
	Weight           *int64            `json:"Weight"`

	HealthCheckId string `json:"HealthCheckId"`
	// contains filtered or unexported fields
}

func (*SdnsRecordSet) GetDnsName

func (self *SdnsRecordSet) GetDnsName() string

func (*SdnsRecordSet) GetDnsType

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

func (*SdnsRecordSet) GetDnsValue

func (self *SdnsRecordSet) GetDnsValue() string

func (*SdnsRecordSet) GetEnabled

func (self *SdnsRecordSet) GetEnabled() bool

func (*SdnsRecordSet) GetGlobalId

func (self *SdnsRecordSet) GetGlobalId() string

func (*SdnsRecordSet) GetMxPriority

func (self *SdnsRecordSet) GetMxPriority() int64

func (*SdnsRecordSet) GetPolicyOptions

func (self *SdnsRecordSet) GetPolicyOptions() *jsonutils.JSONDict

func (*SdnsRecordSet) GetPolicyType

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

trafficpolicy 信息

func (*SdnsRecordSet) GetPolicyValue

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

func (*SdnsRecordSet) GetStatus

func (self *SdnsRecordSet) GetStatus() string

func (*SdnsRecordSet) GetTTL

func (self *SdnsRecordSet) GetTTL() int64

type SnapshotStatusType

type SnapshotStatusType string
const (
	SnapshotStatusAccomplished SnapshotStatusType = "completed"
	SnapshotStatusProgress     SnapshotStatusType = "pending"
	SnapshotStatusFailed       SnapshotStatusType = "error"
)

type State

type State struct {
	Code string `json:"Code"`
}

type TImageOwnerType

type TImageOwnerType string

type TagSpec

type TagSpec struct {
	ResourceType string // "customer-gateway"|"dedicated-host"|"dhcp-options"|"image"|"instance"|"internet-gateway"|"network-acl"|"network-interface"|"reserved-instances"|"route-table"|"snapshot"|"spot-instances-request"|"subnet"|"security-group"|"volume"|"vpc"|"vpn-connection"|"vpn-gateway"
	Tags         map[string]string
}

func (*TagSpec) GetDescTag

func (self *TagSpec) GetDescTag() string

func (*TagSpec) GetNameTag

func (self *TagSpec) GetNameTag() string

func (*TagSpec) GetTag

func (self *TagSpec) GetTag(k string) (string, error)

func (*TagSpec) GetTagSpecifications

func (self *TagSpec) GetTagSpecifications() (*ec2.TagSpecification, error)

func (*TagSpec) GetTagWithDefault

func (self *TagSpec) GetTagWithDefault(k, Default string) string

找不到的情况下返回传入的默认值

func (*TagSpec) GetTags

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

func (*TagSpec) LoadingEc2Tags

func (self *TagSpec) LoadingEc2Tags(tags []*ec2.Tag)

func (*TagSpec) SetDescTag

func (self *TagSpec) SetDescTag(v string)

func (*TagSpec) SetNameTag

func (self *TagSpec) SetNameTag(v string)

func (*TagSpec) SetTag

func (self *TagSpec) SetTag(k, v 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"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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