Documentation ¶
Index ¶
- Constants
- Variables
- func ToOnecloudHealthCheckHttpCode(c string) string
- func ToOpenstackHealthCheckHttpCode(c string) string
- type AclEntry
- type AclEntrys
- type AllocationPool
- type Attachment
- type CpuInfo
- type DnsAssignment
- type ExtraDhcpOpt
- type ExtraSpecs
- type HostState
- type IQuota
- type Link
- type OpenStackTags
- type OpenstackClientConfig
- func (cfg *OpenstackClientConfig) CloudproviderConfig(cpcfg cloudprovider.ProviderConfig) *OpenstackClientConfig
- func (cfg *OpenstackClientConfig) Debug(debug bool) *OpenstackClientConfig
- func (cfg *OpenstackClientConfig) DomainName(domainName string) *OpenstackClientConfig
- func (cfg *OpenstackClientConfig) EndpointType(endpointType string) *OpenstackClientConfig
- type OpenstackError
- type QuotaDetail
- type QuotaSet
- type Resource
- type SAggregate
- type SCapabilities
- type SCinderService
- type SConntrackHelper
- type SDisk
- func (disk *SDisk) CreateISnapshot(ctx context.Context, name, desc string) (cloudprovider.ICloudSnapshot, error)
- func (disk *SDisk) Delete(ctx context.Context) error
- func (disk *SDisk) GetAccessPath() string
- func (disk *SDisk) GetBillingType() string
- func (disk *SDisk) GetCacheMode() string
- func (disk *SDisk) GetCreatedAt() time.Time
- func (disk *SDisk) GetDiskFormat() string
- func (disk *SDisk) GetDiskSizeMB() int
- func (disk *SDisk) GetDiskType() string
- func (disk *SDisk) GetDriver() string
- func (disk *SDisk) GetExpiredAt() time.Time
- func (disk *SDisk) GetFsFormat() string
- func (disk *SDisk) GetGlobalId() string
- func (disk *SDisk) GetISnapshot(snapshotId string) (cloudprovider.ICloudSnapshot, error)
- func (disk *SDisk) GetISnapshots() ([]cloudprovider.ICloudSnapshot, error)
- func (disk *SDisk) GetIStorage() (cloudprovider.ICloudStorage, error)
- func (disk *SDisk) GetId() string
- func (disk *SDisk) GetIsAutoDelete() bool
- func (disk *SDisk) GetIsNonPersistent() bool
- func (disk *SDisk) GetMountpoint() string
- func (disk *SDisk) GetName() string
- func (disk *SDisk) GetProjectId() string
- func (disk *SDisk) GetStatus() string
- func (disk *SDisk) GetTemplateId() string
- func (disk *SDisk) IsEmulated() bool
- func (disk *SDisk) Rebuild(ctx context.Context) error
- func (disk *SDisk) Refresh() error
- func (disk *SDisk) Reset(ctx context.Context, snapshotId string) (string, error)
- func (disk *SDisk) Resize(ctx context.Context, sizeMb int64) error
- func (disk *SDisk) ResizeDisk(sizeMb int64) error
- type SEipAddress
- func (eip *SEipAddress) Associate(conf *cloudprovider.AssociateConfig) error
- func (eip *SEipAddress) ChangeBandwidth(bw int) error
- func (eip *SEipAddress) Delete() error
- func (eip *SEipAddress) Dissociate() error
- func (eip *SEipAddress) GetAssociationExternalId() string
- func (eip *SEipAddress) GetAssociationType() string
- func (eip *SEipAddress) GetBandwidth() int
- func (eip *SEipAddress) GetBillingType() string
- func (eip *SEipAddress) GetCreatedAt() time.Time
- func (eip *SEipAddress) GetExpiredAt() time.Time
- func (eip *SEipAddress) GetGlobalId() string
- func (eip *SEipAddress) GetINetworkId() string
- func (eip *SEipAddress) GetId() string
- func (eip *SEipAddress) GetInternetChargeType() string
- func (eip *SEipAddress) GetIpAddr() string
- func (eip *SEipAddress) GetMode() string
- func (eip *SEipAddress) GetName() string
- func (eip *SEipAddress) GetProjectId() string
- func (eip *SEipAddress) GetStatus() string
- func (eip *SEipAddress) IsEmulated() bool
- func (eip *SEipAddress) Refresh() error
- type SExternalFixedIP
- type SExternalGatewayInfo
- type SExtraSpecs
- type SFault
- type SFixedIP
- type SFixedIp
- type SFlavor
- func (flavor *SFlavor) Delete() error
- func (flavor *SFlavor) GetAttachedDiskCount() int
- func (flavor *SFlavor) GetAttachedDiskSizeGB() int
- func (flavor *SFlavor) GetAttachedDiskType() string
- func (flavor *SFlavor) GetCpuArch() string
- func (flavor *SFlavor) GetCpuCoreCount() int
- func (flavor *SFlavor) GetDataDiskMaxCount() int
- func (flavor *SFlavor) GetDataDiskTypes() string
- func (flavor *SFlavor) GetGlobalId() string
- func (flavor *SFlavor) GetGpuAttachable() bool
- func (flavor *SFlavor) GetGpuCount() int
- func (flavor *SFlavor) GetGpuMaxCount() int
- func (flavor *SFlavor) GetGpuSpec() string
- func (flavor *SFlavor) GetId() string
- func (flavor *SFlavor) GetInstanceTypeCategory() string
- func (flavor *SFlavor) GetInstanceTypeFamily() string
- func (flavor *SFlavor) GetMemorySizeMB() int
- func (flavor *SFlavor) GetName() string
- func (flavor *SFlavor) GetNicMaxCount() int
- func (flavor *SFlavor) GetNicType() string
- func (flavor *SFlavor) GetOsName() string
- func (flavor *SFlavor) GetPostpaidStatus() string
- func (flavor *SFlavor) GetPrepaidStatus() string
- func (flavor *SFlavor) GetSysDiskMaxSizeGB() int
- func (flavor *SFlavor) GetSysDiskMinSizeGB() int
- func (flavor *SFlavor) GetSysDiskResizable() bool
- func (flavor *SFlavor) GetSysDiskType() string
- func (flavor *SFlavor) IsEmulated() bool
- func (flavor *SFlavor) Refresh() error
- type SHost
- type SHypervisor
- func (host *SHypervisor) CreateVM(desc *cloudprovider.SManagedVMCreateConfig) (cloudprovider.ICloudVM, error)
- func (host *SHypervisor) GetAccessIp() string
- func (host *SHypervisor) GetAccessMac() string
- func (host *SHypervisor) GetCpuCmtbound() float32
- func (host *SHypervisor) GetCpuCount() int
- func (host *SHypervisor) GetCpuDesc() string
- func (host *SHypervisor) GetCpuMhz() int
- func (host *SHypervisor) GetEnabled() bool
- func (host *SHypervisor) GetGlobalId() string
- func (host *SHypervisor) GetHostStatus() string
- func (host *SHypervisor) GetHostType() string
- func (host *SHypervisor) GetIHostNics() ([]cloudprovider.ICloudHostNetInterface, error)
- func (host *SHypervisor) GetIStorageById(id string) (cloudprovider.ICloudStorage, error)
- func (host *SHypervisor) GetIStorages() ([]cloudprovider.ICloudStorage, error)
- func (host *SHypervisor) GetIVMById(gid string) (cloudprovider.ICloudVM, error)
- func (host *SHypervisor) GetIVMs() ([]cloudprovider.ICloudVM, error)
- func (host *SHypervisor) GetIWires() ([]cloudprovider.ICloudWire, error)
- func (host *SHypervisor) GetId() string
- func (host *SHypervisor) GetIsMaintenance() bool
- func (host *SHypervisor) GetMemCmtbound() float32
- func (host *SHypervisor) GetMemSizeMB() int
- func (host *SHypervisor) GetName() string
- func (host *SHypervisor) GetNodeCount() int8
- func (host *SHypervisor) GetSN() string
- func (host *SHypervisor) GetStatus() string
- func (host *SHypervisor) GetStorageSizeMB() int
- func (host *SHypervisor) GetStorageType() string
- func (host *SHypervisor) GetSysInfo() jsonutils.JSONObject
- func (host *SHypervisor) GetVersion() string
- func (host *SHypervisor) IsEmulated() bool
- func (host *SHypervisor) Refresh() error
- type SImage
- func (image *SImage) Delete(ctx context.Context) error
- func (image *SImage) GetBios() cloudprovider.TBiosType
- func (image *SImage) GetCreatedAt() time.Time
- func (image *SImage) GetFullOsName() string
- func (image *SImage) GetGlobalId() string
- func (image *SImage) GetIStoragecache() cloudprovider.ICloudStoragecache
- func (image *SImage) GetId() string
- func (image *SImage) GetImageFormat() string
- func (image *SImage) GetImageStatus() string
- func (image *SImage) GetImageType() cloudprovider.TImageType
- func (image *SImage) GetMinOsDiskSizeGb() int
- func (image *SImage) GetMinRamSizeMb() int
- func (image *SImage) GetName() string
- func (image *SImage) GetOsArch() string
- func (image *SImage) GetOsDist() string
- func (image *SImage) GetOsLang() string
- func (image *SImage) GetOsType() cloudprovider.TOsType
- func (image *SImage) GetOsVersion() string
- func (image *SImage) GetProjectId() string
- func (image *SImage) GetPublicScope() rbacutils.TRbacScope
- func (image *SImage) GetSizeByte() int64
- func (image *SImage) GetStatus() string
- func (image *SImage) IsEmulated() bool
- func (image *SImage) Refresh() error
- type SInsertHeaders
- type SInstance
- func (instance *SInstance) AssignSecurityGroup(secgroupId string) error
- func (instance *SInstance) AttachDisk(ctx context.Context, diskId string) error
- func (instance *SInstance) ChangeConfig(ctx context.Context, config *cloudprovider.SManagedVMChangeConfig) error
- func (instance *SInstance) DeleteVM(ctx context.Context) error
- func (instance *SInstance) DeployVM(ctx context.Context, name string, username string, password string, ...) error
- func (instance *SInstance) DetachDisk(ctx context.Context, diskId string) error
- func (instance *SInstance) GetBillingType() string
- func (instance *SInstance) GetBios() cloudprovider.TBiosType
- func (instance *SInstance) GetBootOrder() string
- func (instance *SInstance) GetCreatedAt() time.Time
- func (self *SInstance) GetError() error
- func (instance *SInstance) GetExpiredAt() time.Time
- func (instance *SInstance) GetFullOsName() string
- func (instance *SInstance) GetGlobalId() string
- func (instance *SInstance) GetHostname() string
- func (instance *SInstance) GetHypervisor() string
- func (instance *SInstance) GetIDisks() ([]cloudprovider.ICloudDisk, error)
- func (instance *SInstance) GetIEIP() (cloudprovider.ICloudEIP, error)
- func (instance *SInstance) GetIHost() cloudprovider.ICloudHost
- func (instance *SInstance) GetIHostId() string
- func (instance *SInstance) GetINics() ([]cloudprovider.ICloudNic, error)
- func (instance *SInstance) GetId() string
- func (instance *SInstance) GetInstanceType() string
- func (instance *SInstance) GetMachine() string
- func (instance *SInstance) GetName() string
- func (instance *SInstance) GetOsArch() string
- func (instance *SInstance) GetOsDist() string
- func (instance *SInstance) GetOsLang() string
- func (instance *SInstance) GetOsType() cloudprovider.TOsType
- func (instance *SInstance) GetOsVersion() string
- func (instance *SInstance) GetProjectId() string
- func (instance *SInstance) GetSecurityGroupIds() ([]string, error)
- func (instance *SInstance) GetStatus() string
- func (instance *SInstance) GetVNCInfo(input *cloudprovider.ServerVncInput) (*cloudprovider.ServerVncOutput, error)
- func (instance *SInstance) GetVcpuCount() int
- func (instance *SInstance) GetVdi() string
- func (instance *SInstance) GetVga() string
- func (instance *SInstance) GetVmemSizeMB() int
- func (instance *SInstance) IsEmulated() bool
- func (instance *SInstance) LiveMigrateVM(hostId string) error
- func (instance *SInstance) MigrateVM(hostId string) error
- func (instance *SInstance) RebuildRoot(ctx context.Context, desc *cloudprovider.SManagedVMRebuildRootConfig) (string, error)
- func (instance *SInstance) Refresh() error
- func (instance *SInstance) Renew(bc billing.SBillingCycle) error
- func (instance *SInstance) RevokeSecurityGroup(secgroupId string) error
- func (instance *SInstance) SetSecurityGroups(secgroupIds []string) error
- func (instance *SInstance) StartVM(ctx context.Context) error
- func (instance *SInstance) StopVM(ctx context.Context, opts *cloudprovider.ServerStopOptions) error
- func (instance *SInstance) UpdateUserData(userData string) error
- func (instance *SInstance) UpdateVM(ctx context.Context, name string) error
- type SInstanceNic
- type SInstancePort
- type SKeyPair
- type SKeypair
- type SL7PolicieID
- type SL7RuleID
- type SListenerID
- type SLoadbalancer
- func (lb *SLoadbalancer) CreateILoadBalancerBackendGroup(group *cloudprovider.SLoadbalancerBackendGroup) (cloudprovider.ICloudLoadbalancerBackendGroup, error)
- func (lb *SLoadbalancer) CreateILoadBalancerListener(ctx context.Context, listener *cloudprovider.SLoadbalancerListener) (cloudprovider.ICloudLoadbalancerListener, error)
- func (lb *SLoadbalancer) Delete(ctx context.Context) error
- func (lb *SLoadbalancer) GetAddress() string
- func (lb *SLoadbalancer) GetAddressType() string
- func (lb *SLoadbalancer) GetChargeType() string
- func (lb *SLoadbalancer) GetEgressMbps() int
- func (lb *SLoadbalancer) GetGlobalId() string
- func (lb *SLoadbalancer) GetIEIP() (cloudprovider.ICloudEIP, error)
- func (lb *SLoadbalancer) GetILoadBalancerBackendGroupById(poolId string) (cloudprovider.ICloudLoadbalancerBackendGroup, error)
- func (lb *SLoadbalancer) GetILoadBalancerBackendGroups() ([]cloudprovider.ICloudLoadbalancerBackendGroup, error)
- func (lb *SLoadbalancer) GetILoadBalancerListenerById(listenerId string) (cloudprovider.ICloudLoadbalancerListener, error)
- func (lb *SLoadbalancer) GetILoadBalancerListeners() ([]cloudprovider.ICloudLoadbalancerListener, error)
- func (lb *SLoadbalancer) GetId() string
- func (lb *SLoadbalancer) GetLoadbalancerSpec() string
- func (lb *SLoadbalancer) GetName() string
- func (lb *SLoadbalancer) GetNetworkIds() []string
- func (lb *SLoadbalancer) GetNetworkType() string
- func (lb *SLoadbalancer) GetProjectId() string
- func (lb *SLoadbalancer) GetStatus() string
- func (lb *SLoadbalancer) GetVpcId() string
- func (self *SLoadbalancer) GetZone1Id() string
- func (lb *SLoadbalancer) GetZoneId() string
- func (lb *SLoadbalancer) IsEmulated() bool
- func (lb *SLoadbalancer) Refresh() error
- func (self *SLoadbalancer) SetTags(tags map[string]string, replace bool) error
- func (lb *SLoadbalancer) Start() error
- func (lb *SLoadbalancer) Stop() error
- type SLoadbalancerAcl
- func (acl *SLoadbalancerAcl) Delete() error
- func (acl *SLoadbalancerAcl) GetAclEntries() []cloudprovider.SLoadbalancerAccessControlListEntry
- func (acl *SLoadbalancerAcl) GetAclListenerID() string
- func (acl *SLoadbalancerAcl) GetGlobalId() string
- func (acl *SLoadbalancerAcl) GetId() string
- func (acl *SLoadbalancerAcl) GetName() string
- func (acl *SLoadbalancerAcl) GetProjectId() string
- func (acl *SLoadbalancerAcl) GetStatus() string
- func (acl *SLoadbalancerAcl) IsEmulated() bool
- func (acl *SLoadbalancerAcl) Refresh() error
- func (acl *SLoadbalancerAcl) Sync(_acl *cloudprovider.SLoadbalancerAccessControlList) error
- type SLoadbalancerCreateParams
- type SLoadbalancerHealthmonitor
- func (healthmonitor *SLoadbalancerHealthmonitor) GetGlobalId() string
- func (healthmonitor *SLoadbalancerHealthmonitor) GetId() string
- func (healthmonitor *SLoadbalancerHealthmonitor) GetName() string
- func (healthmonitor *SLoadbalancerHealthmonitor) GetStatus() string
- func (healthmonitor *SLoadbalancerHealthmonitor) IsEmulated() bool
- func (healthmonitor *SLoadbalancerHealthmonitor) Refresh() error
- type SLoadbalancerHealthmonitorCreateParams
- type SLoadbalancerHealthmonitorUpdateParams
- type SLoadbalancerID
- type SLoadbalancerL7Policy
- func (L7policy *SLoadbalancerL7Policy) GetGlobalId() string
- func (L7policy *SLoadbalancerL7Policy) GetId() string
- func (L7policy *SLoadbalancerL7Policy) GetName() string
- func (L7policy *SLoadbalancerL7Policy) GetStatus() string
- func (L7policy *SLoadbalancerL7Policy) IsEmulated() bool
- func (L7policy *SLoadbalancerL7Policy) Refresh() error
- type SLoadbalancerL7PolicyCreateParams
- type SLoadbalancerL7Rule
- func (l7r *SLoadbalancerL7Rule) Delete(ctx context.Context) error
- func (l7r *SLoadbalancerL7Rule) GetBackendGroupId() string
- func (l7r *SLoadbalancerL7Rule) GetCondition() string
- func (l7r *SLoadbalancerL7Rule) GetDomain() string
- func (l7r *SLoadbalancerL7Rule) GetGlobalId() string
- func (l7r *SLoadbalancerL7Rule) GetId() string
- func (l7r *SLoadbalancerL7Rule) GetName() string
- func (l7r *SLoadbalancerL7Rule) GetPath() string
- func (l7r *SLoadbalancerL7Rule) GetProjectId() string
- func (l7r *SLoadbalancerL7Rule) GetStatus() string
- func (self *SLoadbalancerL7Rule) IsDefault() bool
- func (l7r *SLoadbalancerL7Rule) IsEmulated() bool
- func (l7r *SLoadbalancerL7Rule) Refresh() error
- type SLoadbalancerL7RuleCreateParams
- type SLoadbalancerListener
- func (listener *SLoadbalancerListener) CreateILoadBalancerListenerRule(rule *cloudprovider.SLoadbalancerListenerRule) (cloudprovider.ICloudLoadbalancerListenerRule, error)
- func (listener *SLoadbalancerListener) Delete(ctx context.Context) error
- func (listener *SLoadbalancerListener) GetAclId() string
- func (listener *SLoadbalancerListener) GetAclStatus() string
- func (listener *SLoadbalancerListener) GetAclType() string
- func (listener *SLoadbalancerListener) GetBackendConnectTimeout() int
- func (listener *SLoadbalancerListener) GetBackendGroupId() string
- func (listener *SLoadbalancerListener) GetBackendServerPort() int
- func (listener *SLoadbalancerListener) GetCertificateId() string
- func (listener *SLoadbalancerListener) GetClientIdleTimeout() int
- func (listener *SLoadbalancerListener) GetEgressMbps() int
- func (listener *SLoadbalancerListener) GetGlobalId() string
- func (listener *SLoadbalancerListener) GetHealthCheck() string
- func (listener *SLoadbalancerListener) GetHealthCheckCode() string
- func (listener *SLoadbalancerListener) GetHealthCheckDomain() string
- func (listener *SLoadbalancerListener) GetHealthCheckExp() string
- func (listener *SLoadbalancerListener) GetHealthCheckFail() int
- func (listener *SLoadbalancerListener) GetHealthCheckInterval() int
- func (listener *SLoadbalancerListener) GetHealthCheckReq() string
- func (listener *SLoadbalancerListener) GetHealthCheckRise() int
- func (listener *SLoadbalancerListener) GetHealthCheckTimeout() int
- func (listener *SLoadbalancerListener) GetHealthCheckType() string
- func (listener *SLoadbalancerListener) GetHealthCheckURI() string
- func (listener *SLoadbalancerListener) GetILoadBalancerListenerRuleById(ruleId string) (cloudprovider.ICloudLoadbalancerListenerRule, error)
- func (listener *SLoadbalancerListener) GetILoadbalancerListenerRules() ([]cloudprovider.ICloudLoadbalancerListenerRule, error)
- func (listener *SLoadbalancerListener) GetId() string
- func (listener *SLoadbalancerListener) GetListenerPort() int
- func (listener *SLoadbalancerListener) GetListenerType() string
- func (listener *SLoadbalancerListener) GetName() string
- func (listener *SLoadbalancerListener) GetProjectId() string
- func (listener *SLoadbalancerListener) GetScheduler() string
- func (listener *SLoadbalancerListener) GetStatus() string
- func (listener *SLoadbalancerListener) GetStickySession() string
- func (listener *SLoadbalancerListener) GetStickySessionCookie() string
- func (listener *SLoadbalancerListener) GetStickySessionCookieTimeout() int
- func (listener *SLoadbalancerListener) GetStickySessionType() string
- func (listener *SLoadbalancerListener) GetTLSCipherPolicy() string
- func (listener *SLoadbalancerListener) GzipEnabled() bool
- func (listener *SLoadbalancerListener) HTTP2Enabled() bool
- func (listener *SLoadbalancerListener) IsEmulated() bool
- func (listener *SLoadbalancerListener) Refresh() error
- func (listener *SLoadbalancerListener) Start() error
- func (listener *SLoadbalancerListener) Stop() error
- func (listener *SLoadbalancerListener) Sync(ctx context.Context, lblis *cloudprovider.SLoadbalancerListener) error
- func (listener *SLoadbalancerListener) XForwardedForEnabled() bool
- type SLoadbalancerListenerCreateParams
- type SLoadbalancerListenerUpdateParams
- type SLoadbalancerMember
- func (member *SLoadbalancerMember) GetBackendId() string
- func (member *SLoadbalancerMember) GetBackendRole() string
- func (member *SLoadbalancerMember) GetBackendType() string
- func (member *SLoadbalancerMember) GetGlobalId() string
- func (member *SLoadbalancerMember) GetId() string
- func (member *SLoadbalancerMember) GetIpAddress() string
- func (member *SLoadbalancerMember) GetName() string
- func (member *SLoadbalancerMember) GetPort() int
- func (member *SLoadbalancerMember) GetProjectId() string
- func (member *SLoadbalancerMember) GetStatus() string
- func (member *SLoadbalancerMember) GetWeight() int
- func (member *SLoadbalancerMember) IsEmulated() bool
- func (member *SLoadbalancerMember) Refresh() error
- func (member *SLoadbalancerMember) SyncConf(ctx context.Context, port, weight int) error
- type SLoadbalancerMemberCreateParams
- type SLoadbalancerPool
- func (pool *SLoadbalancerPool) AddBackendServer(serverId string, weight, port int) (cloudprovider.ICloudLoadbalancerBackend, error)
- func (pool *SLoadbalancerPool) Delete(ctx context.Context) error
- func (pool *SLoadbalancerPool) GetGlobalId() string
- func (pool *SLoadbalancerPool) GetHealthCheck() (*cloudprovider.SLoadbalancerHealthCheck, error)
- func (pool *SLoadbalancerPool) GetILoadbalancer() cloudprovider.ICloudLoadbalancer
- func (pool *SLoadbalancerPool) GetILoadbalancerBackendById(memberId string) (cloudprovider.ICloudLoadbalancerBackend, error)
- func (pool *SLoadbalancerPool) GetILoadbalancerBackends() ([]cloudprovider.ICloudLoadbalancerBackend, error)
- func (pool *SLoadbalancerPool) GetId() string
- func (pool *SLoadbalancerPool) GetLoadbalancerId() string
- func (pool *SLoadbalancerPool) GetName() string
- func (pool *SLoadbalancerPool) GetProjectId() string
- func (pool *SLoadbalancerPool) GetProtocolType() string
- func (pool *SLoadbalancerPool) GetScheduler() string
- func (pool *SLoadbalancerPool) GetStatus() string
- func (pool *SLoadbalancerPool) GetStickySession() (*cloudprovider.SLoadbalancerStickySession, error)
- func (pool *SLoadbalancerPool) GetType() string
- func (pool *SLoadbalancerPool) IsDefault() bool
- func (pool *SLoadbalancerPool) IsEmulated() bool
- func (pool *SLoadbalancerPool) Refresh() error
- func (pool *SLoadbalancerPool) RemoveBackendServer(id string, weight, port int) error
- func (pool *SLoadbalancerPool) Sync(ctx context.Context, group *cloudprovider.SLoadbalancerBackendGroup) error
- type SLoadbalancerPoolCreateParams
- type SLoadbalancerPoolUpdateParams
- type SMemberID
- type SMessage
- type SNetwork
- func (network *SNetwork) Contains(ipAddr string) bool
- func (network *SNetwork) Delete() error
- func (network *SNetwork) GetAllocTimeoutSeconds() int
- func (network *SNetwork) GetGateway() string
- func (network *SNetwork) GetGlobalId() string
- func (network *SNetwork) GetIPRange() netutils.IPV4AddrRange
- func (network *SNetwork) GetIWire() cloudprovider.ICloudWire
- func (network *SNetwork) GetId() string
- func (network *SNetwork) GetIpEnd() string
- func (network *SNetwork) GetIpMask() int8
- func (network *SNetwork) GetIpStart() string
- func (network *SNetwork) GetIsPublic() bool
- func (network *SNetwork) GetName() string
- func (network *SNetwork) GetProjectId() string
- func (network *SNetwork) GetPublicScope() rbacutils.TRbacScope
- func (network *SNetwork) GetServerType() string
- func (network *SNetwork) GetStatus() string
- func (network *SNetwork) IsEmulated() bool
- func (network *SNetwork) Refresh() error
- type SNextLink
- type SNextLinks
- type SNovaDisk
- func (disk *SNovaDisk) CreateISnapshot(ctx context.Context, name, desc string) (cloudprovider.ICloudSnapshot, error)
- func (disk *SNovaDisk) Delete(ctx context.Context) error
- func (disk *SNovaDisk) GetAccessPath() string
- func (disk *SNovaDisk) GetBillingType() string
- func (disk *SNovaDisk) GetCacheMode() string
- func (disk *SNovaDisk) GetCreatedAt() time.Time
- func (disk *SNovaDisk) GetDiskFormat() string
- func (disk *SNovaDisk) GetDiskSizeMB() int
- func (disk *SNovaDisk) GetDiskType() string
- func (disk *SNovaDisk) GetDriver() string
- func (disk *SNovaDisk) GetExpiredAt() time.Time
- func (disk *SNovaDisk) GetFsFormat() string
- func (disk *SNovaDisk) GetGlobalId() string
- func (disk *SNovaDisk) GetISnapshot(snapshotId string) (cloudprovider.ICloudSnapshot, error)
- func (disk *SNovaDisk) GetISnapshots() ([]cloudprovider.ICloudSnapshot, error)
- func (disk *SNovaDisk) GetIStorage() (cloudprovider.ICloudStorage, error)
- func (disk *SNovaDisk) GetId() string
- func (disk *SNovaDisk) GetIsAutoDelete() bool
- func (disk *SNovaDisk) GetIsNonPersistent() bool
- func (disk *SNovaDisk) GetMountpoint() string
- func (disk *SNovaDisk) GetName() string
- func (disk *SNovaDisk) GetProjectId() string
- func (disk *SNovaDisk) GetStatus() string
- func (disk *SNovaDisk) GetTemplateId() string
- func (disk *SNovaDisk) IsEmulated() bool
- func (disk *SNovaDisk) Rebuild(ctx context.Context) error
- func (disk *SNovaDisk) Refresh() error
- func (disk *SNovaDisk) Reset(ctx context.Context, snapshotId string) (string, error)
- func (disk *SNovaDisk) Resize(ctx context.Context, sizeMb int64) error
- type SNovaStorage
- func (storage *SNovaStorage) CreateIDisk(conf *cloudprovider.DiskCreateConfig) (cloudprovider.ICloudDisk, error)
- func (self *SNovaStorage) DisableSync() bool
- func (storage *SNovaStorage) GetCapacityMB() int64
- func (storage *SNovaStorage) GetCapacityUsedMB() int64
- func (storage *SNovaStorage) GetEnabled() bool
- func (storage *SNovaStorage) GetGlobalId() string
- func (storage *SNovaStorage) GetIDiskById(idStr string) (cloudprovider.ICloudDisk, error)
- func (storage *SNovaStorage) GetIDisks() ([]cloudprovider.ICloudDisk, error)
- func (storage *SNovaStorage) GetIStoragecache() cloudprovider.ICloudStoragecache
- func (storage *SNovaStorage) GetIZone() cloudprovider.ICloudZone
- func (storage *SNovaStorage) GetId() string
- func (storage *SNovaStorage) GetMediumType() string
- func (storage *SNovaStorage) GetMountPoint() string
- func (storage *SNovaStorage) GetName() string
- func (storage *SNovaStorage) GetStatus() string
- func (storage *SNovaStorage) GetStorageConf() jsonutils.JSONObject
- func (storage *SNovaStorage) GetStorageType() string
- func (storage *SNovaStorage) IsEmulated() bool
- func (storage *SNovaStorage) IsSysDiskStore() bool
- func (storage *SNovaStorage) Refresh() error
- type SOpenStackClient
- func (cli *SOpenStackClient) AssignRoleToUserOnProject(userId, projectId, roleName string) error
- func (cli *SOpenStackClient) CreateIProject(name string) (cloudprovider.ICloudProject, error)
- func (cli *SOpenStackClient) CreateProject(name, desc string) (*SProject, error)
- func (cli *SOpenStackClient) DeleteProject(projectId string) error
- func (self *SOpenStackClient) GetCapabilities() []string
- func (cli *SOpenStackClient) GetCloudRegionExternalIdPrefix() string
- func (cli *SOpenStackClient) GetIProjects() ([]cloudprovider.ICloudProject, error)
- func (cli *SOpenStackClient) GetIRegionById(id string) (cloudprovider.ICloudRegion, error)
- func (cli *SOpenStackClient) GetIRegions() []cloudprovider.ICloudRegion
- func (cli *SOpenStackClient) GetMaxVersion(region, service string) (string, error)
- func (cli *SOpenStackClient) GetProject(id string) (*SProject, error)
- func (cli *SOpenStackClient) GetProjects() ([]SProject, error)
- func (cli *SOpenStackClient) GetRegion(regionId string) *SRegion
- func (cli *SOpenStackClient) GetRegions() []SRegion
- func (cli *SOpenStackClient) GetRoles(name string) ([]SRole, error)
- func (cli *SOpenStackClient) GetSubAccounts() ([]cloudprovider.SSubAccount, error)
- type SPool
- type SPoolID
- type SPort
- func (port *SPort) GetAssociateId() string
- func (port *SPort) GetAssociateType() string
- func (port *SPort) GetGlobalId() string
- func (port *SPort) GetICloudInterfaceAddresses() ([]cloudprovider.ICloudInterfaceAddress, error)
- func (port *SPort) GetId() string
- func (port *SPort) GetMacAddress() string
- func (port *SPort) GetName() string
- func (port *SPort) GetStatus() string
- type SPortDetail
- type SPrivate
- type SProject
- type SProjectLinks
- type SQuota
- type SRegion
- func (region *SRegion) AssociateEip(instanceId, eipId string) error
- func (region *SRegion) AssociateEipWithPortId(portid, eipId string) error
- func (region *SRegion) AttachDisk(instanceId string, diskId string) error
- func (region *SRegion) ChangeConfig(instance *SInstance, flavorId string) error
- func (region *SRegion) CreateDisk(imageRef string, volumeType string, name string, sizeGb int, desc string, ...) (*SDisk, error)
- func (region *SRegion) CreateEIP(eip *cloudprovider.SEip) (cloudprovider.ICloudEIP, error)
- func (region *SRegion) CreateEip(vpcId, networkId, ip string, projectId string) (*SEipAddress, error)
- func (region *SRegion) CreateFlavor(name string, cpu int, memoryMb int, diskGB int) (*SFlavor, error)
- func (region *SRegion) CreateIBucket(name string, storageClassStr string, acl string) error
- func (region *SRegion) CreateILoadBalancer(loadbalancer *cloudprovider.SLoadbalancer) (cloudprovider.ICloudLoadbalancer, error)
- func (region *SRegion) CreateILoadBalancerAcl(acl *cloudprovider.SLoadbalancerAccessControlList) (cloudprovider.ICloudLoadbalancerAcl, error)
- func (region *SRegion) CreateILoadBalancerCertificate(cert *cloudprovider.SLoadbalancerCertificate) (cloudprovider.ICloudLoadbalancerCertificate, error)
- func (region *SRegion) CreateISecurityGroup(conf *cloudprovider.SecurityGroupCreateInput) (cloudprovider.ICloudSecurityGroup, error)
- func (region *SRegion) CreateISku(opts *cloudprovider.SServerSkuCreateOption) (cloudprovider.ICloudSku, error)
- func (region *SRegion) CreateIVpc(opts *cloudprovider.VpcCreateOptions) (cloudprovider.ICloudVpc, error)
- func (region *SRegion) CreateImage(imageName string, osType string, osDist string, minDiskGb int, minRam int, ...) (*SImage, error)
- func (region *SRegion) CreateKeypair(name, publicKey, Type string) (*SKeyPair, error)
- func (region *SRegion) CreateLoadBalancer(loadbalancer *cloudprovider.SLoadbalancer) (*SLoadbalancer, error)
- func (region *SRegion) CreateLoadBalancerAcl(acl *cloudprovider.SLoadbalancerAccessControlList) (*SLoadbalancerAcl, error)
- func (region *SRegion) CreateLoadbalancerHealthmonitor(poolId string, healthcheck *cloudprovider.SLoadbalancerHealthCheck) (*SLoadbalancerHealthmonitor, error)
- func (region *SRegion) CreateLoadbalancerL7Policy(listenerId string, rule *cloudprovider.SLoadbalancerListenerRule) (*SLoadbalancerL7Policy, error)
- func (region *SRegion) CreateLoadbalancerL7Rule(l7policyId string, rule *cloudprovider.SLoadbalancerListenerRule) (*SLoadbalancerL7Rule, error)
- func (region *SRegion) CreateLoadbalancerListener(loadbalancerId string, listenerParams *cloudprovider.SLoadbalancerListener) (*SLoadbalancerListener, error)
- func (region *SRegion) CreateLoadbalancerMember(poolId, serverId string, weight, port int) (*SLoadbalancerMember, error)
- func (region *SRegion) CreateLoadbalancerPool(group *cloudprovider.SLoadbalancerBackendGroup) (*SLoadbalancerPool, error)
- func (region *SRegion) CreateNetwork(vpcId string, projectId, name string, cidr string, desc string) (*SNetwork, error)
- func (region *SRegion) CreateSecurityGroup(projectId, name, description string) (*SSecurityGroup, error)
- func (region *SRegion) CreateSnapshot(diskId, name, desc string) (*SSnapshot, error)
- func (region *SRegion) CreateVpc(name, desc string) (*SVpc, error)
- func (region *SRegion) DeleteDisk(diskId string) error
- func (region *SRegion) DeleteEip(eipId string) error
- func (region *SRegion) DeleteFlavor(flavorId string) error
- func (region *SRegion) DeleteIBucket(name string) error
- func (region *SRegion) DeleteImage(imageId string) error
- func (region *SRegion) DeleteKeypair(name string) error
- func (region *SRegion) DeleteLoadBalancerPool(poolId string) error
- func (region *SRegion) DeleteLoadbalancer(loadbalancerId string) error
- func (region *SRegion) DeleteLoadbalancerHealthmonitor(healthmonitorId string) error
- func (region *SRegion) DeleteLoadbalancerListener(listenerId string) error
- func (region *SRegion) DeleteLoadbalancerListenerL7policy(policyId string) error
- func (region *SRegion) DeleteLoadbalancerMember(poolId, memberId string) error
- func (region *SRegion) DeleteMigration(instanceId string, migrationId string) error
- func (region *SRegion) DeleteNetwork(networkId string) error
- func (region *SRegion) DeleteSecurityGroup(secGroupId string) error
- func (region *SRegion) DeleteSnapshot(snapshotId string) error
- func (region *SRegion) DeleteVM(instanceId string) error
- func (region *SRegion) DeleteVpc(vpcId string) error
- func (region *SRegion) DeployVM(instanceId string, name string, password string, keypairName string, ...) error
- func (region *SRegion) DetachDisk(instanceId string, diskId string) error
- func (region *SRegion) DisassociateEip(eipId string) error
- func (region *SRegion) ForceCompleteMigration(instanceId string, migrationId string) error
- func (region *SRegion) GetAggregates() ([]SAggregate, error)
- func (region *SRegion) GetCapabilities() []string
- func (region *SRegion) GetCinderServices() ([]SCinderService, error)
- func (region *SRegion) GetClient() *SOpenStackClient
- func (region *SRegion) GetCloudEnv() string
- func (region *SRegion) GetDisk(diskId string) (*SDisk, error)
- func (region *SRegion) GetDisks() ([]SDisk, error)
- func (region *SRegion) GetEip(eipId string) (*SEipAddress, error)
- func (region *SRegion) GetEipByIp(ip string) (*SEipAddress, error)
- func (region *SRegion) GetEips(ip string) ([]SEipAddress, error)
- func (region *SRegion) GetFlavor(flavorId string) (*SFlavor, error)
- func (region *SRegion) GetFlavors() ([]SFlavor, error)
- func (region *SRegion) GetGeographicInfo() cloudprovider.SGeographicInfo
- func (region *SRegion) GetGlobalId() string
- func (region *SRegion) GetHosts() ([]SHost, error)
- func (region *SRegion) GetHypervisor(id string) (*SHypervisor, error)
- func (region *SRegion) GetHypervisors() ([]SHypervisor, error)
- func (region *SRegion) GetI18n() cloudprovider.SModelI18nTable
- func (region *SRegion) GetIBucketById(name string) (cloudprovider.ICloudBucket, error)
- func (region *SRegion) GetIBucketByName(name string) (cloudprovider.ICloudBucket, error)
- func (region *SRegion) GetIBuckets() ([]cloudprovider.ICloudBucket, error)
- func (region *SRegion) GetICloudQuotas() ([]cloudprovider.ICloudQuota, error)
- func (region *SRegion) GetIDiskById(id string) (cloudprovider.ICloudDisk, error)
- func (region *SRegion) GetIEipById(eipId string) (cloudprovider.ICloudEIP, error)
- func (region *SRegion) GetIEips() ([]cloudprovider.ICloudEIP, error)
- func (region *SRegion) GetIHostById(id string) (cloudprovider.ICloudHost, error)
- func (region *SRegion) GetIHosts() ([]cloudprovider.ICloudHost, error)
- func (region *SRegion) GetILoadBalancerAclById(aclId string) (cloudprovider.ICloudLoadbalancerAcl, error)
- func (region *SRegion) GetILoadBalancerAcls() ([]cloudprovider.ICloudLoadbalancerAcl, error)
- func (region *SRegion) GetILoadBalancerBackendGroups() ([]cloudprovider.ICloudLoadbalancerBackendGroup, error)
- func (region *SRegion) GetILoadBalancerById(loadbalancerId string) (cloudprovider.ICloudLoadbalancer, error)
- func (region *SRegion) GetILoadBalancerCertificateById(certId string) (cloudprovider.ICloudLoadbalancerCertificate, error)
- func (region *SRegion) GetILoadBalancerCertificates() ([]cloudprovider.ICloudLoadbalancerCertificate, error)
- func (region *SRegion) GetILoadBalancers() ([]cloudprovider.ICloudLoadbalancer, error)
- func (region *SRegion) GetINetworkInterfaces() ([]cloudprovider.ICloudNetworkInterface, error)
- func (region *SRegion) GetISecurityGroupById(secgroupId string) (cloudprovider.ICloudSecurityGroup, error)
- func (region *SRegion) GetISecurityGroupByName(opts *cloudprovider.SecurityGroupFilterOptions) (cloudprovider.ICloudSecurityGroup, error)
- func (region *SRegion) GetISkus() ([]cloudprovider.ICloudSku, error)
- func (region *SRegion) GetISnapshotById(snapshotId string) (cloudprovider.ICloudSnapshot, error)
- func (region *SRegion) GetISnapshots() ([]cloudprovider.ICloudSnapshot, error)
- func (region *SRegion) GetIStorageById(id string) (cloudprovider.ICloudStorage, error)
- func (region *SRegion) GetIStoragecacheById(id string) (cloudprovider.ICloudStoragecache, error)
- func (region *SRegion) GetIStoragecaches() ([]cloudprovider.ICloudStoragecache, error)
- func (region *SRegion) GetIStorages() ([]cloudprovider.ICloudStorage, error)
- func (region *SRegion) GetIVMById(id string) (cloudprovider.ICloudVM, error)
- func (region *SRegion) GetIVpcById(id string) (cloudprovider.ICloudVpc, error)
- func (region *SRegion) GetIVpcs() ([]cloudprovider.ICloudVpc, error)
- func (region *SRegion) GetIZoneById(id string) (cloudprovider.ICloudZone, error)
- func (region *SRegion) GetIZones() ([]cloudprovider.ICloudZone, error)
- func (region *SRegion) GetId() string
- func (region *SRegion) GetImage(imageId string) (*SImage, error)
- func (region *SRegion) GetImageByName(name string) (*SImage, error)
- func (region *SRegion) GetImageStatus(imageId string) (string, error)
- func (region *SRegion) GetImages(name string, status string, imageId string) ([]SImage, error)
- func (region *SRegion) GetInstance(instanceId string) (*SInstance, error)
- func (region *SRegion) GetInstanceMetadata(instanceId string) (map[string]string, error)
- func (region *SRegion) GetInstancePorts(instanceId string) ([]SInstancePort, error)
- func (region *SRegion) GetInstanceVNC(instanceId string, origin bool) (*cloudprovider.ServerVncOutput, error)
- func (region *SRegion) GetInstanceVNCUrl(instanceId string, origin bool) (*cloudprovider.ServerVncOutput, error)
- func (region *SRegion) GetInstances(host string) ([]SInstance, error)
- func (region *SRegion) GetKeypair(name string) (*SKeyPair, error)
- func (region *SRegion) GetKeypairs() ([]SKeyPair, error)
- func (region *SRegion) GetLoadBalancerAcls() ([]SLoadbalancerAcl, error)
- func (region *SRegion) GetLoadbalancerAclDetail(aclId string) (*SLoadbalancerAcl, error)
- func (region *SRegion) GetLoadbalancerHealthmonitorById(healthmonitorId string) (*SLoadbalancerHealthmonitor, error)
- func (region *SRegion) GetLoadbalancerL7PolicybyId(policieId string) (*SLoadbalancerL7Policy, error)
- func (region *SRegion) GetLoadbalancerL7RulebyId(policyId string, l7ruleId string) (*SLoadbalancerL7Rule, error)
- func (region *SRegion) GetLoadbalancerL7Rules(policyId string) ([]SLoadbalancerL7Rule, error)
- func (region *SRegion) GetLoadbalancerListenerbyId(listenerId string) (*SLoadbalancerListener, error)
- func (region *SRegion) GetLoadbalancerListeners() ([]SLoadbalancerListener, error)
- func (region *SRegion) GetLoadbalancerMenberById(poolId string, MenberId string) (*SLoadbalancerMember, error)
- func (region *SRegion) GetLoadbalancerMenbers(poolId string) ([]SLoadbalancerMember, error)
- func (region *SRegion) GetLoadbalancerPoolById(poolId string) (*SLoadbalancerPool, error)
- func (region *SRegion) GetLoadbalancerPools() ([]SLoadbalancerPool, error)
- func (region *SRegion) GetLoadbalancerbyId(loadbalancerId string) (*SLoadbalancer, error)
- func (region *SRegion) GetLoadbalancers() ([]SLoadbalancer, error)
- func (region *SRegion) GetMaxVersion(service string) (string, error)
- func (region *SRegion) GetMessages(resourceId string) ([]SMessage, error)
- func (region *SRegion) GetMigrations(instanceId string, migrationType string) (jsonutils.JSONObject, error)
- func (region *SRegion) GetName() string
- func (region *SRegion) GetNetwork(networkId string) (*SNetwork, error)
- func (region *SRegion) GetNetworks(vpcId string) ([]SNetwork, error)
- func (region *SRegion) GetPort(portId string) (*SPort, error)
- func (region *SRegion) GetPorts(macAddress, deviceId string) ([]SPort, error)
- func (region *SRegion) GetProvider() string
- func (region *SRegion) GetQuota() (*QuotaSet, error)
- func (region *SRegion) GetRouters() ([]SRouter, error)
- func (region *SRegion) GetSchedulerStatsPool() ([]SPool, error)
- func (region *SRegion) GetSecurityGroup(secgroupId string) (*SSecurityGroup, error)
- func (region *SRegion) GetSecurityGroups(projectId, name string) ([]SSecurityGroup, error)
- func (region *SRegion) GetSecurityGroupsByInstance(instanceId string) ([]SecurityGroup, error)
- func (region *SRegion) GetSnapshots(diskId string) ([]SSnapshot, error)
- func (region *SRegion) GetStatus() string
- func (region *SRegion) GetStorageTypes() ([]SStorage, error)
- func (region *SRegion) GetVpc(vpcId string) (*SVpc, error)
- func (region *SRegion) GetVpcs(projectId string) ([]SVpc, error)
- func (region *SRegion) GetZones() ([]SZone, error)
- func (region *SRegion) IBucketExist(name string) (bool, error)
- func (region *SRegion) IsEmulated() bool
- func (region *SRegion) IsStorageAvailable(storageType string) (bool, error)
- func (region *SRegion) ListServerMigration(instanceId string) error
- func (region *SRegion) LiveMigrateVM(instanceId string, hostName string) error
- func (region *SRegion) MigrateVM(instanceId string, hostName string) error
- func (region *SRegion) ProjectId() string
- func (region *SRegion) Refresh() error
- func (region *SRegion) RenewInstances(instanceId []string, bc billing.SBillingCycle) error
- func (region *SRegion) ReplaceSystemDisk(instanceId string, imageId string, passwd string, publicKey string, ...) error
- func (region *SRegion) ResetDisk(diskId, snapshotId string) error
- func (region *SRegion) ResizeDisk(diskId string, sizeMb int64) error
- func (region *SRegion) SetQuota(quota *SQuota) error
- func (region *SRegion) StartVM(instanceId string) error
- func (region *SRegion) StopVM(instanceId string, isForce bool) error
- func (region *SRegion) SyncFlavor(name string, cpu, memoryMb, diskGB int) (string, error)
- func (region *SRegion) UpdateLoadBalancerAdminStateUp(AdminStateUp bool, loadbalancerId string) error
- func (region *SRegion) UpdateLoadBalancerListener(loadbalancerListenerId string, lblis *cloudprovider.SLoadbalancerListener) error
- func (region *SRegion) UpdateLoadBalancerListenerAdminStateUp(AdminStateUp bool, loadbalancerListenerId string) error
- func (region *SRegion) UpdateLoadBalancerMemberWtight(poolId, memberId string, weight int) error
- func (region *SRegion) UpdateLoadBalancerPool(poolId string, group *cloudprovider.SLoadbalancerBackendGroup) error
- func (region *SRegion) UpdateLoadbalancerHealthmonitor(healthmonitorId string, healthcheck *cloudprovider.SLoadbalancerHealthCheck) (*SLoadbalancerHealthmonitor, error)
- func (region *SRegion) UpdateLoadbalancerListenerAllowedCidrs(listenerId string, cidrs []string) error
- type SResource
- type SRole
- type SRouteEntry
- func (route *SRouteEntry) GetCidr() string
- func (route *SRouteEntry) GetGlobalId() string
- func (route *SRouteEntry) GetId() string
- func (route *SRouteEntry) GetName() string
- func (route *SRouteEntry) GetNextHop() string
- func (route *SRouteEntry) GetNextHopType() string
- func (route *SRouteEntry) GetStatus() string
- func (route *SRouteEntry) GetType() string
- func (route *SRouteEntry) IsEmulated() bool
- func (route *SRouteEntry) Refresh() error
- type SRouteTable
- func (self *SRouteTable) CreateRoute(route cloudprovider.RouteSet) error
- func (self *SRouteTable) GetAssociations() []cloudprovider.RouteTableAssociation
- func (self *SRouteTable) GetDescription() string
- func (self *SRouteTable) GetGlobalId() string
- func (self *SRouteTable) GetIRoutes() ([]cloudprovider.ICloudRoute, error)
- func (self *SRouteTable) GetId() string
- func (self *SRouteTable) GetName() string
- func (self *SRouteTable) GetRegionId() string
- func (self *SRouteTable) GetStatus() string
- func (self *SRouteTable) GetType() cloudprovider.RouteTableType
- func (self *SRouteTable) GetVpcId() string
- func (self *SRouteTable) IsEmulated() bool
- func (self *SRouteTable) Refresh() error
- func (self *SRouteTable) RemoveRoute(route cloudprovider.RouteSet) error
- func (self *SRouteTable) UpdateRoute(route cloudprovider.RouteSet) error
- type SRouter
- type SSecurityGroup
- func (secgroup *SSecurityGroup) Delete() error
- func (secgroup *SSecurityGroup) GetDescription() string
- func (secgroup *SSecurityGroup) GetGlobalId() string
- func (secgroup *SSecurityGroup) GetId() string
- func (secgroup *SSecurityGroup) GetName() string
- func (secgroup *SSecurityGroup) GetProjectId() string
- func (secgroup *SSecurityGroup) GetRules() ([]cloudprovider.SecurityRule, error)
- func (secgroup *SSecurityGroup) GetStatus() string
- func (secgroup *SSecurityGroup) GetVpcId() string
- func (secgroup *SSecurityGroup) IsEmulated() bool
- func (secgroup *SSecurityGroup) Refresh() error
- func (secgroup *SSecurityGroup) SyncRules(common, inAdds, outAdds, inDels, outDels []cloudprovider.SecurityRule) error
- type SSecurityGroupRule
- type SSessionPersistence
- type SSnapshot
- func (snapshot *SSnapshot) Delete() error
- func (snapshot *SSnapshot) GetDiskId() string
- func (snapshot *SSnapshot) GetDiskType() string
- func (snapshot *SSnapshot) GetGlobalId() string
- func (snapshot *SSnapshot) GetId() string
- func (snapshot *SSnapshot) GetName() string
- func (self *SSnapshot) GetProjectId() string
- func (snapshot *SSnapshot) GetSizeMb() int32
- func (snapshot *SSnapshot) GetStatus() string
- func (snapshot *SSnapshot) IsEmulated() bool
- func (snapshot *SSnapshot) Refresh() error
- type SStorage
- func (storage *SStorage) CreateIDisk(conf *cloudprovider.DiskCreateConfig) (cloudprovider.ICloudDisk, error)
- func (storage *SStorage) GetCapacityMB() int64
- func (storage *SStorage) GetCapacityUsedMB() int64
- func (storage *SStorage) GetEnabled() bool
- func (storage *SStorage) GetGlobalId() string
- func (storage *SStorage) GetIDiskById(idStr string) (cloudprovider.ICloudDisk, error)
- func (storage *SStorage) GetIDisks() ([]cloudprovider.ICloudDisk, error)
- func (storage *SStorage) GetIStoragecache() cloudprovider.ICloudStoragecache
- func (storage *SStorage) GetIZone() cloudprovider.ICloudZone
- func (storage *SStorage) GetId() string
- func (storage *SStorage) GetMediumType() string
- func (storage *SStorage) GetMountPoint() string
- func (storage *SStorage) GetName() string
- func (storage *SStorage) GetStatus() string
- func (storage *SStorage) GetStorageConf() jsonutils.JSONObject
- func (storage *SStorage) GetStorageType() string
- func (storage *SStorage) IsEmulated() bool
- func (storage *SStorage) IsSysDiskStore() bool
- func (storage *SStorage) Refresh() error
- type SStoragecache
- func (cache *SStoragecache) CreateIImage(snapshoutId, imageName, osType, imageDesc string) (cloudprovider.ICloudImage, error)
- func (cache *SStoragecache) DownloadImage(userCred mcclient.TokenCredential, imageId string, extId string, path string) (jsonutils.JSONObject, error)
- func (cache *SStoragecache) GetGlobalId() string
- func (cache *SStoragecache) GetICloudImages() ([]cloudprovider.ICloudImage, error)
- func (cache *SStoragecache) GetICustomizedCloudImages() ([]cloudprovider.ICloudImage, error)
- func (cache *SStoragecache) GetIImageById(extId string) (cloudprovider.ICloudImage, error)
- func (cache *SStoragecache) GetId() string
- func (cache *SStoragecache) GetName() string
- func (cache *SStoragecache) GetPath() string
- func (cache *SStoragecache) GetStatus() string
- func (cache *SStoragecache) IsEmulated() bool
- func (cache *SStoragecache) Refresh() error
- func (cache *SStoragecache) UploadImage(ctx context.Context, userCred mcclient.TokenCredential, ...) (string, error)
- type SVpc
- func (vpc *SVpc) Delete() error
- func (vpc *SVpc) GetCidrBlock() string
- func (vpc *SVpc) GetGlobalId() string
- func (self *SVpc) GetIRouteTableById(routeTableId string) (cloudprovider.ICloudRouteTable, error)
- func (vpc *SVpc) GetIRouteTables() ([]cloudprovider.ICloudRouteTable, error)
- func (vpc *SVpc) GetISecurityGroups() ([]cloudprovider.ICloudSecurityGroup, error)
- func (vpc *SVpc) GetIWireById(wireId string) (cloudprovider.ICloudWire, error)
- func (vpc *SVpc) GetIWires() ([]cloudprovider.ICloudWire, error)
- func (vpc *SVpc) GetId() string
- func (vpc *SVpc) GetIsDefault() bool
- func (vpc *SVpc) GetName() string
- func (vpc *SVpc) GetRegion() cloudprovider.ICloudRegion
- func (vpc *SVpc) GetStatus() string
- func (vpc *SVpc) IsEmulated() bool
- func (vpc *SVpc) Refresh() error
- type SWire
- func (wire *SWire) CreateINetwork(opts *cloudprovider.SNetworkCreateOptions) (cloudprovider.ICloudNetwork, error)
- func (wire *SWire) GetBandwidth() int
- func (wire *SWire) GetGlobalId() string
- func (wire *SWire) GetINetworkById(netid string) (cloudprovider.ICloudNetwork, error)
- func (wire *SWire) GetINetworks() ([]cloudprovider.ICloudNetwork, error)
- func (wire *SWire) GetIVpc() cloudprovider.ICloudVpc
- func (wire *SWire) GetIZone() cloudprovider.ICloudZone
- func (wire *SWire) GetId() string
- func (wire *SWire) GetName() string
- func (wire *SWire) GetStatus() string
- func (wire *SWire) IsEmulated() bool
- func (wire *SWire) Refresh() error
- type SZone
- func (zone *SZone) CreateVM(hypervisor string, opts *cloudprovider.SManagedVMCreateConfig) (*SInstance, error)
- func (zone *SZone) GetGlobalId() string
- func (zone *SZone) GetI18n() cloudprovider.SModelI18nTable
- func (zone *SZone) GetIHostById(id string) (cloudprovider.ICloudHost, error)
- func (zone *SZone) GetIHosts() ([]cloudprovider.ICloudHost, error)
- func (zone *SZone) GetIRegion() cloudprovider.ICloudRegion
- func (zone *SZone) GetIStorageById(id string) (cloudprovider.ICloudStorage, error)
- func (zone *SZone) GetIStorages() ([]cloudprovider.ICloudStorage, error)
- func (zone *SZone) GetId() string
- func (zone *SZone) GetName() string
- func (zone *SZone) GetStatus() string
- func (zone *SZone) IsEmulated() bool
- func (zone *SZone) Refresh() error
- type SecurityGroup
- type Service
- type VolumeImageMetadata
- type VolumesAttached
- type ZoneState
Constants ¶
View Source
const ( DISK_STATUS_CREATING = "creating" // The volume is being created. DISK_STATUS_ATTACHING = "attaching" // The volume is attaching to an instance. DISK_STATUS_DETACHING = "detaching" // The volume is detaching from an instance. DISK_STATUS_EXTENDING = "extending" // The volume is being extended. DISK_STATUS_DELETING = "deleting" // The volume is being deleted. DISK_STATUS_RETYPING = "retyping" // The volume is changing type to another volume type. DISK_STATUS_AVAILABLE = "available" // The volume is ready to attach to an instance. DISK_STATUS_RESERVED = "reserved" // The volume is reserved for attaching or shelved. DISK_STATUS_IN_USE = "in-use" // The volume is attached to an instance. DISK_STATUS_MAINTENANCE = "maintenance" // The volume is locked and being migrated. DISK_STATUS_AWAITING_TRANSFER = "awaiting-transfer" // The volume is awaiting for transfer. DISK_STATUS_BACKING_UP = "backing-up" // The volume is being backed up. DISK_STATUS_RESTORING_BACKUP = "restoring-backup" // A backup is being restored to the volume. DISK_STATUS_DOWNLOADING = "downloading" // The volume is downloading an image. DISK_STATUS_UPLOADING = "uploading" // The volume is being uploaded to an image. DISK_STATUS_ERROR = "error" // A volume creation error occurred. DISK_STATUS_ERROR_DELETING = "error_deleting" // A volume deletion error occurred. DISK_STATUS_ERROR_BACKING_UP = "error_backing-up" // A backup error occurred. DISK_STATUS_ERROR_RESTORING = "error_restoring" // A backup restoration error occurred. DISK_STATUS_ERROR_EXTENDING = "error_extending" // An error occurred while attempting to extend a volume. )
View Source
const ( QUEUED = "queued" // The Image service reserved an image ID for the image in the catalog but did not yet upload any image data. SAVING = "saving" // The Image service is in the process of saving the raw data for the image into the backing store. ACTIVE = "active" // The image is active and ready for consumption in the Image service. KILLED = "killed" // An image data upload error occurred. DELETED = "deleted" // The Image service retains information about the image but the image is no longer available for use. PENDING_DELETE = "pending_delete" // Similar to the deleted status. An image in this state is not recoverable. DEACTIVATED = "deactivated" // The image data is not available for use. UPLOADING = "uploading" // Data has been staged as part of the interoperable image import process. It is not yet available for use. (Since Image API 2.6) IMPORTING = "importing" // The image data is being processed as part of the interoperable image import process, but is not yet available for use. (Since Image API 2.6) )
View Source
const ( INSTANCE_STATUS_ACTIVE = "ACTIVE" //The server is active. INSTANCE_STATUS_BUILD = "BUILD" //The server has not finished the original build process. INSTANCE_STATUS_DELETED = "DELETED" //The server is permanently deleted. INSTANCE_STATUS_ERROR = "ERROR" //The server is in error. INSTANCE_STATUS_HARD_REBOOT = "HARD_REBOOT" //The server is hard rebooting. This is equivalent to pulling the power plug on a physical server, plugging it back in, and rebooting it. INSTANCE_STATUS_MIGRATING = "MIGRATING" //The server is being migrated to a new host. INSTANCE_STATUS_PASSWORD = "PASSWORD" //The password is being reset on the server. INSTANCE_STATUS_PAUSED = "PAUSED" //In a paused state, the state of the server is stored in RAM.A paused server continues to run in frozen state. INSTANCE_STATUS_REBOOT = "REBOOT" //The server is in a soft reboot state. A reboot command was passed to the operating system. INSTANCE_STATUS_REBUILD = "REBUILD" //The server is currently being rebuilt from an image. INSTANCE_STATUS_RESCUE = "RESCUE" //The server is in rescue mode. A rescue image is running with the original server image attached. INSTANCE_STATUS_RESIZE = "RESIZE" //Server is performing the differential copy of data that changed during its initial copy. Server is down for this stage. INSTANCE_STATUS_REVERT_RESIZE = "REVERT_RESIZE" //The resize or migration of a server failed for some reason. The destination server is being cleaned up and the original source server is restarting. INSTANCE_STATUS_SHELVED = "SHELVED" // The server is in shelved state. Depending on the shelve offload time, the server will be automatically shelved offloaded. INSTANCE_STATUS_SHELVED_OFFLOADED = "SHELVED_OFFLOADED" // The shelved server is offloaded (removed from the compute host) and it needs unshelved action to be used again. INSTANCE_STATUS_SHUTOFF = "SHUTOFF" //The server is powered off and the disk image still persists. INSTANCE_STATUS_SOFT_DELETED = "SOFT_DELETED" //The server is marked as deleted but the disk images are still available to restore. INSTANCE_STATUS_SUSPENDED = "SUSPENDED" //The server is suspended, either by request or necessity. This status appears for only the XenServer/XCP, KVM, and ESXi hypervisors. Administrative users can suspend an instance if it is infrequently used or to perform system maintenance. When you suspend an instance, its VM state is stored on disk, all memory is written to disk, and the virtual machine is stopped. Suspending an instance is similar to placing a device in hibernation; memory and vCPUs become available to create other instances. INSTANCE_STATUS_UNKNOWN = "UNKNOWN" //The state of the server is unknown. Contact your cloud provider. INSTANCE_STATUS_VERIFY_RESIZE = "VERIFY_RESIZE" //System is awaiting confirmation that the server is operational after a move or resize. )
View Source
const ( CLOUD_PROVIDER_OPENSTACK = api.CLOUD_PROVIDER_OPENSTACK OPENSTACK_DEFAULT_REGION = "RegionOne" OPENSTACK_SERVICE_COMPUTE = "compute" OPENSTACK_SERVICE_NETWORK = "network" OPENSTACK_SERVICE_IDENTITY = "identity" OPENSTACK_SERVICE_VOLUMEV3 = "volumev3" OPENSTACK_SERVICE_VOLUMEV2 = "volumev2" OPENSTACK_SERVICE_VOLUME = "volume" OPENSTACK_SERVICE_IMAGE = "image" OPENSTACK_SERVICE_LOADBALANCER = "load-balancer" ErrNoEndpoint = errors.Error("no valid endpoint") )
View Source
const ( SNAPSHOT_STATUS_CREATING = "creating" //The snapshot is being created. SNAPSHOT_STATUS_AVAILABLE = "available" //The snapshot is ready to use. SNAPSHOT_STATUS_BACKING_UP = "backing-up" //The snapshot is being backed up. SNAPSHOT_STATUS_DELETING = "deleting" //The snapshot is being deleted. SNAPSHOT_STATUS_ERROR = "error" //A snapshot creation error occurred. SNAPSHOT_STATUS_DELETED = "deleted" //The snapshot has been deleted. SNAPSHOT_STATUS_UNMANAGING = "unmanaging" //The snapshot is being unmanaged. SNAPSHOT_STATUS_RESTORING = "restoring" //The snapshot is being restored to a volume. SNAPSHOT_STATUS_ERROR_DELETING = "error_deleting" //A snapshot deletion error occurred. )
View Source
const ( VPC_STATUS_ACTIVE = "ACTIVE" VPC_STATUS_DOWN = "DOWN" VPC_STATUS_BUILD = "BUILD" VPC_STATUS_ERROR = "ERROR" )
View Source
const (
DEFAULT_STORAGE_TYPE = "scheduler"
)
View Source
const (
SECGROUP_NOT_SUPPORT = "openstack_skip_security_group"
)
Variables ¶
View Source
var LB_ALGORITHM_MAP = map[string]string{ api.LB_SCHEDULER_RR: "ROUND_ROBIN", api.LB_SCHEDULER_WRR: "ROUND_ROBIN", api.LB_SCHEDULER_WLC: "LEAST_CONNECTIONS", api.LB_SCHEDULER_SCH: "SOURCE_IP", api.LB_SCHEDULER_TCH: "SOURCE_IP_PORT", }
View Source
var LB_HEALTHCHECK_TYPE_MAP = map[string]string{ api.LB_HEALTH_CHECK_HTTP: "HTTP", api.LB_HEALTH_CHECK_HTTPS: "HTTPS", api.LB_HEALTH_CHECK_TCP: "TCP", api.LB_HEALTH_CHECK_UDP: "UDP_CONNECT", }
View Source
var LB_PROTOCOL_MAP = map[string]string{ api.LB_LISTENER_TYPE_HTTP: "HTTP", api.LB_LISTENER_TYPE_HTTPS: "HTTPS", api.LB_LISTENER_TYPE_TERMINATED_HTTPS: "TERMINATED_HTTPS", api.LB_LISTENER_TYPE_UDP: "UDP", api.LB_LISTENER_TYPE_TCP: "TCP", }
View Source
var LB_STICKY_SESSION_MAP = map[string]string{ api.LB_STICKY_SESSION_TYPE_INSERT: "HTTP_COOKIE", api.LB_STICKY_SESSION_TYPE_SERVER: "APP_COOKIE", }
Functions ¶
Types ¶
type AllocationPool ¶
func (AllocationPool) Contains ¶
func (p AllocationPool) Contains(ip string) bool
func (AllocationPool) Equals ¶
func (p AllocationPool) Equals(s AllocationPool) bool
func (AllocationPool) IsValid ¶
func (p AllocationPool) IsValid() bool
type Attachment ¶
type DnsAssignment ¶
type ExtraDhcpOpt ¶
type ExtraSpecs ¶
type IQuota ¶
func (*IQuota) GetCurrentQuotaUsedCount ¶
func (*IQuota) GetGlobalId ¶
func (*IQuota) GetMaxQuotaCount ¶
func (*IQuota) GetQuotaType ¶
type OpenStackTags ¶
func (*OpenStackTags) GetSysTags ¶
func (self *OpenStackTags) GetSysTags() map[string]string
type OpenstackClientConfig ¶
type OpenstackClientConfig struct {
// contains filtered or unexported fields
}
func NewOpenstackClientConfig ¶
func NewOpenstackClientConfig(authURL, username, password, project, projectDomain string) *OpenstackClientConfig
func (*OpenstackClientConfig) CloudproviderConfig ¶
func (cfg *OpenstackClientConfig) CloudproviderConfig(cpcfg cloudprovider.ProviderConfig) *OpenstackClientConfig
func (*OpenstackClientConfig) Debug ¶
func (cfg *OpenstackClientConfig) Debug(debug bool) *OpenstackClientConfig
func (*OpenstackClientConfig) DomainName ¶
func (cfg *OpenstackClientConfig) DomainName(domainName string) *OpenstackClientConfig
func (*OpenstackClientConfig) EndpointType ¶
func (cfg *OpenstackClientConfig) EndpointType(endpointType string) *OpenstackClientConfig
type OpenstackError ¶
type OpenstackError struct {
httputils.JSONClientError
}
func (*OpenstackError) ParseErrorFromJsonResponse ¶
func (ce *OpenstackError) ParseErrorFromJsonResponse(statusCode int, body jsonutils.JSONObject) error
type QuotaDetail ¶
type QuotaSet ¶
type QuotaSet struct { InjectedFileContentBytes QuotaDetail MetadataItems QuotaDetail ServerGroupMembers QuotaDetail ServerGroups QuotaDetail Ram QuotaDetail FloatingIps QuotaDetail KeyPairs QuotaDetail Id string Instances QuotaDetail SecurityGroupRules QuotaDetail InjectedFiles QuotaDetail Cores QuotaDetail FixedIps QuotaDetail InjectedFilePathBytes QuotaDetail SecurityGroups QuotaDetail }
type SAggregate ¶
type SCapabilities ¶
type SCapabilities struct { }
type SCinderService ¶
type SConntrackHelper ¶
type SDisk ¶
type SDisk struct { multicloud.SDisk OpenStackTags Id string Name string MigrationStatus string Attachments []Attachment Links []Link AvailabilityZone string Host string `json:"os-vol-host-attr:host"` Encrypted bool ReplicationStatus string SnapshotId string Size int UserId string TenantId string `json:"os-vol-tenant-attr:tenant_id"` Migstat string `json:"os-vol-mig-status-attr:migstat"` Status string Description string Multiattach string SourceVolid string ConsistencygroupId string VolumeImageMetadata VolumeImageMetadata NameId string `json:"os-vol-mig-status-attr:name_id"` Bootable bool CreatedAt time.Time VolumeType string // contains filtered or unexported fields }
func (*SDisk) CreateISnapshot ¶
func (disk *SDisk) CreateISnapshot(ctx context.Context, name, desc string) (cloudprovider.ICloudSnapshot, error)
func (*SDisk) GetAccessPath ¶
func (*SDisk) GetBillingType ¶
func (*SDisk) GetCacheMode ¶
func (*SDisk) GetCreatedAt ¶
func (*SDisk) GetDiskFormat ¶
func (*SDisk) GetDiskSizeMB ¶
func (*SDisk) GetDiskType ¶
func (*SDisk) GetExpiredAt ¶
func (*SDisk) GetFsFormat ¶
func (*SDisk) GetGlobalId ¶
func (*SDisk) GetISnapshot ¶
func (disk *SDisk) GetISnapshot(snapshotId string) (cloudprovider.ICloudSnapshot, error)
func (*SDisk) GetISnapshots ¶
func (disk *SDisk) GetISnapshots() ([]cloudprovider.ICloudSnapshot, error)
func (*SDisk) GetIStorage ¶
func (disk *SDisk) GetIStorage() (cloudprovider.ICloudStorage, error)
func (*SDisk) GetIsAutoDelete ¶
func (*SDisk) GetIsNonPersistent ¶
func (*SDisk) GetMountpoint ¶
func (*SDisk) GetProjectId ¶
func (*SDisk) GetTemplateId ¶
func (*SDisk) IsEmulated ¶
func (*SDisk) ResizeDisk ¶
type SEipAddress ¶
type SEipAddress struct { multicloud.SEipBase OpenStackTags RouterId string `json:"router_id"` Status string `json:"status"` Description string `json:"description"` Tags []string `json:"tags"` TenantId string `json:"tenant_id"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` FloatingNetworkId string `json:"floating_network_id"` PortDetails SPortDetail `json:"port_details"` FixedIPAddress string `json:"fixed_ip_address"` FloatingIPAddress string `json:"floating_ip_address"` RevisionNumber int `json:"revision_number"` ProjectId string `json:"project_id"` PortId string `json:"port_id"` Id string `json:"id"` QosPolicyId string `json:"qos_policy_id"` // contains filtered or unexported fields }
func (*SEipAddress) Associate ¶
func (eip *SEipAddress) Associate(conf *cloudprovider.AssociateConfig) error
func (*SEipAddress) ChangeBandwidth ¶
func (eip *SEipAddress) ChangeBandwidth(bw int) error
func (*SEipAddress) Delete ¶
func (eip *SEipAddress) Delete() error
func (*SEipAddress) Dissociate ¶
func (eip *SEipAddress) Dissociate() error
func (*SEipAddress) GetAssociationExternalId ¶
func (eip *SEipAddress) GetAssociationExternalId() string
func (*SEipAddress) GetAssociationType ¶
func (eip *SEipAddress) GetAssociationType() string
func (*SEipAddress) GetBandwidth ¶
func (eip *SEipAddress) GetBandwidth() int
func (*SEipAddress) GetBillingType ¶
func (eip *SEipAddress) GetBillingType() string
func (*SEipAddress) GetCreatedAt ¶
func (eip *SEipAddress) GetCreatedAt() time.Time
func (*SEipAddress) GetExpiredAt ¶
func (eip *SEipAddress) GetExpiredAt() time.Time
func (*SEipAddress) GetGlobalId ¶
func (eip *SEipAddress) GetGlobalId() string
func (*SEipAddress) GetINetworkId ¶
func (eip *SEipAddress) GetINetworkId() string
func (*SEipAddress) GetId ¶
func (eip *SEipAddress) GetId() string
func (*SEipAddress) GetInternetChargeType ¶
func (eip *SEipAddress) GetInternetChargeType() string
func (*SEipAddress) GetIpAddr ¶
func (eip *SEipAddress) GetIpAddr() string
func (*SEipAddress) GetMode ¶
func (eip *SEipAddress) GetMode() string
func (*SEipAddress) GetName ¶
func (eip *SEipAddress) GetName() string
func (*SEipAddress) GetProjectId ¶
func (eip *SEipAddress) GetProjectId() string
func (*SEipAddress) GetStatus ¶
func (eip *SEipAddress) GetStatus() string
func (*SEipAddress) IsEmulated ¶
func (eip *SEipAddress) IsEmulated() bool
func (*SEipAddress) Refresh ¶
func (eip *SEipAddress) Refresh() error
type SExternalFixedIP ¶
type SExternalGatewayInfo ¶
type SExternalGatewayInfo struct { EnableSnat bool `json:"enable_snat"` ExtrernalFiedIps []SExternalFixedIP `json:"external_fixed_ips"` NetworkId string `json:"network_id"` }
type SExtraSpecs ¶
type SExtraSpecs struct {
VolumeBackendName string
}
type SFlavor ¶
type SFlavor struct { multicloud.SServerSku OpenStackTags Id string Disk int Ephemeral int ExtraSpecs ExtraSpecs OriginalName string Name string RAM int Swap string Vcpus int // contains filtered or unexported fields }
func (*SFlavor) GetAttachedDiskCount ¶
func (*SFlavor) GetAttachedDiskSizeGB ¶
func (*SFlavor) GetAttachedDiskType ¶
func (*SFlavor) GetCpuArch ¶
func (*SFlavor) GetCpuCoreCount ¶
func (*SFlavor) GetDataDiskMaxCount ¶
func (*SFlavor) GetDataDiskTypes ¶
func (*SFlavor) GetGlobalId ¶
func (*SFlavor) GetGpuAttachable ¶
func (*SFlavor) GetGpuCount ¶
func (*SFlavor) GetGpuMaxCount ¶
func (*SFlavor) GetGpuSpec ¶
func (*SFlavor) GetInstanceTypeCategory ¶
func (*SFlavor) GetInstanceTypeFamily ¶
func (*SFlavor) GetMemorySizeMB ¶
func (*SFlavor) GetNicMaxCount ¶
func (*SFlavor) GetNicType ¶
func (*SFlavor) GetPostpaidStatus ¶
func (*SFlavor) GetPrepaidStatus ¶
func (*SFlavor) GetSysDiskMaxSizeGB ¶
func (*SFlavor) GetSysDiskMinSizeGB ¶
func (*SFlavor) GetSysDiskResizable ¶
func (*SFlavor) GetSysDiskType ¶
func (*SFlavor) IsEmulated ¶
type SHypervisor ¶
type SHypervisor struct { multicloud.SHostBase CpuInfo string Aggregates []string CurrentWorkload int Status string State string DiskAvailableLeast int HostIP string FreeDiskGB int FreeRamMB int HypervisorHostname string HypervisorType string HypervisorVersion string Id string LocalGB int LocalGbUsed int MemoryMB int MemoryMbUsed int RunningVms int Service Service Vcpus int VcpusUsed int8 // contains filtered or unexported fields }
func (*SHypervisor) CreateVM ¶
func (host *SHypervisor) CreateVM(desc *cloudprovider.SManagedVMCreateConfig) (cloudprovider.ICloudVM, error)
func (*SHypervisor) GetAccessIp ¶
func (host *SHypervisor) GetAccessIp() string
func (*SHypervisor) GetAccessMac ¶
func (host *SHypervisor) GetAccessMac() string
func (*SHypervisor) GetCpuCmtbound ¶
func (host *SHypervisor) GetCpuCmtbound() float32
func (*SHypervisor) GetCpuCount ¶
func (host *SHypervisor) GetCpuCount() int
func (*SHypervisor) GetCpuDesc ¶
func (host *SHypervisor) GetCpuDesc() string
func (*SHypervisor) GetCpuMhz ¶
func (host *SHypervisor) GetCpuMhz() int
func (*SHypervisor) GetEnabled ¶
func (host *SHypervisor) GetEnabled() bool
func (*SHypervisor) GetGlobalId ¶
func (host *SHypervisor) GetGlobalId() string
func (*SHypervisor) GetHostStatus ¶
func (host *SHypervisor) GetHostStatus() string
func (*SHypervisor) GetHostType ¶
func (host *SHypervisor) GetHostType() string
func (*SHypervisor) GetIHostNics ¶
func (host *SHypervisor) GetIHostNics() ([]cloudprovider.ICloudHostNetInterface, error)
func (*SHypervisor) GetIStorageById ¶
func (host *SHypervisor) GetIStorageById(id string) (cloudprovider.ICloudStorage, error)
func (*SHypervisor) GetIStorages ¶
func (host *SHypervisor) GetIStorages() ([]cloudprovider.ICloudStorage, error)
func (*SHypervisor) GetIVMById ¶
func (host *SHypervisor) GetIVMById(gid string) (cloudprovider.ICloudVM, error)
func (*SHypervisor) GetIVMs ¶
func (host *SHypervisor) GetIVMs() ([]cloudprovider.ICloudVM, error)
func (*SHypervisor) GetIWires ¶
func (host *SHypervisor) GetIWires() ([]cloudprovider.ICloudWire, error)
func (*SHypervisor) GetId ¶
func (host *SHypervisor) GetId() string
func (*SHypervisor) GetIsMaintenance ¶
func (host *SHypervisor) GetIsMaintenance() bool
func (*SHypervisor) GetMemCmtbound ¶
func (host *SHypervisor) GetMemCmtbound() float32
func (*SHypervisor) GetMemSizeMB ¶
func (host *SHypervisor) GetMemSizeMB() int
func (*SHypervisor) GetName ¶
func (host *SHypervisor) GetName() string
func (*SHypervisor) GetNodeCount ¶
func (host *SHypervisor) GetNodeCount() int8
func (*SHypervisor) GetSN ¶
func (host *SHypervisor) GetSN() string
func (*SHypervisor) GetStatus ¶
func (host *SHypervisor) GetStatus() string
func (*SHypervisor) GetStorageSizeMB ¶
func (host *SHypervisor) GetStorageSizeMB() int
func (*SHypervisor) GetStorageType ¶
func (host *SHypervisor) GetStorageType() string
func (*SHypervisor) GetSysInfo ¶
func (host *SHypervisor) GetSysInfo() jsonutils.JSONObject
func (*SHypervisor) GetVersion ¶
func (host *SHypervisor) GetVersion() string
func (*SHypervisor) IsEmulated ¶
func (host *SHypervisor) IsEmulated() bool
func (*SHypervisor) Refresh ¶
func (host *SHypervisor) Refresh() error
type SImage ¶
type SImage struct { multicloud.SImageBase OpenStackTags Status string Name string Tags []string ContainerFormat string CreatedAt time.Time DiskFormat string UpdatedAt time.Time Visibility string Self string MinDisk int Protected bool Id string File string Checksum string OsHashAlgo string OsHashValue string OsHidden bool OsDistro string OsType string Owner string Size int MinRAM int Schema string VirtualSize int // contains filtered or unexported fields }
func (*SImage) GetBios ¶
func (image *SImage) GetBios() cloudprovider.TBiosType
func (*SImage) GetCreatedAt ¶
func (*SImage) GetFullOsName ¶
func (*SImage) GetGlobalId ¶
func (*SImage) GetIStoragecache ¶
func (image *SImage) GetIStoragecache() cloudprovider.ICloudStoragecache
func (*SImage) GetImageFormat ¶
func (*SImage) GetImageStatus ¶
func (*SImage) GetImageType ¶
func (image *SImage) GetImageType() cloudprovider.TImageType
func (*SImage) GetMinOsDiskSizeGb ¶
func (*SImage) GetMinRamSizeMb ¶
func (*SImage) GetOsType ¶
func (image *SImage) GetOsType() cloudprovider.TOsType
func (*SImage) GetOsVersion ¶
func (*SImage) GetProjectId ¶
func (*SImage) GetPublicScope ¶
func (image *SImage) GetPublicScope() rbacutils.TRbacScope
func (*SImage) GetSizeByte ¶
func (*SImage) IsEmulated ¶
type SInsertHeaders ¶
type SInstance ¶
type SInstance struct { multicloud.SInstanceBase OpenStackTags DiskConfig string `json:"OS-DCF:diskConfig,omitempty"` AvailabilityZone string `json:"OS-EXT-AZ:availability_zone,omitempty"` Host string `json:"OS-EXT-SRV-ATTR:host,omitempty"` Hostname string `json:"OS-EXT-SRV-ATTR:hostname,omitempty"` HypervisorHostname string `json:"OS-EXT-SRV-ATTR:hypervisor_hostname,omitempty"` InstanceName string `json:"OS-EXT-SRV-ATTR:instance_name,omitempty"` KernelId string `json:"OS-EXT-SRV-ATTR:kernel_id,omitempty"` LaunchIndex int `json:"OS-EXT-SRV-ATTR:launch_index,omitempty"` RamdiskId string `json:"OS-EXT-SRV-ATTR:ramdisk_id,omitempty"` ReservationId string `json:"OS-EXT-SRV-ATTR:reservation_id,omitempty"` RootDeviceName string `json:"OS-EXT-SRV-ATTR:root_device_name,omitempty"` UserData string `json:"OS-EXT-SRV-ATTR:user_data,omitempty"` PowerState int `json:"OS-EXT-STS:power_state,omitempty"` TaskState string `json:"OS-EXT-STS:task_state,omitempty"` VmState string `json:"OS-EXT-STS:vm_state,omitempty"` LaunchedAt time.Time `json:"OS-SRV-USG:launched_at,omitempty"` TerminatedAt string `json:"OS-SRV-USG:terminated_at,omitempty"` AccessIPv4 string AccessIPv6 string Addresses map[string][]SInstanceNic ConfigDrive string Created time.Time Description string Flavor SFlavor HostId string HostStatus string Id string Image jsonutils.JSONObject `json:"image"` //有可能是字符串 KeyName string Links []Link Locked bool Name string VolumesAttached []VolumesAttached `json:"os-extended-volumes:volumes_attached,omitempty"` Progress int SecurityGroups []SecurityGroup Status string Tags []string TenantId string TrustedImageCertificates []string Updated time.Time UserId string Fault SFault // contains filtered or unexported fields }
func (*SInstance) AssignSecurityGroup ¶
func (*SInstance) AttachDisk ¶
func (*SInstance) ChangeConfig ¶
func (instance *SInstance) ChangeConfig(ctx context.Context, config *cloudprovider.SManagedVMChangeConfig) error
func (*SInstance) DetachDisk ¶
func (*SInstance) GetBillingType ¶
func (*SInstance) GetBios ¶
func (instance *SInstance) GetBios() cloudprovider.TBiosType
func (*SInstance) GetBootOrder ¶
func (*SInstance) GetCreatedAt ¶
func (*SInstance) GetExpiredAt ¶
func (*SInstance) GetFullOsName ¶
func (*SInstance) GetGlobalId ¶
func (*SInstance) GetHostname ¶
func (*SInstance) GetHypervisor ¶
func (*SInstance) GetIDisks ¶
func (instance *SInstance) GetIDisks() ([]cloudprovider.ICloudDisk, error)
func (*SInstance) GetIHost ¶
func (instance *SInstance) GetIHost() cloudprovider.ICloudHost
func (*SInstance) GetIHostId ¶
func (*SInstance) GetINics ¶
func (instance *SInstance) GetINics() ([]cloudprovider.ICloudNic, error)
func (*SInstance) GetInstanceType ¶
func (*SInstance) GetMachine ¶
func (*SInstance) GetOsType ¶
func (instance *SInstance) GetOsType() cloudprovider.TOsType
func (*SInstance) GetOsVersion ¶
func (*SInstance) GetProjectId ¶
func (*SInstance) GetSecurityGroupIds ¶
func (*SInstance) GetVNCInfo ¶
func (instance *SInstance) GetVNCInfo(input *cloudprovider.ServerVncInput) (*cloudprovider.ServerVncOutput, error)
func (*SInstance) GetVcpuCount ¶
func (*SInstance) GetVmemSizeMB ¶
func (*SInstance) IsEmulated ¶
func (*SInstance) LiveMigrateVM ¶
func (*SInstance) RebuildRoot ¶
func (instance *SInstance) RebuildRoot(ctx context.Context, desc *cloudprovider.SManagedVMRebuildRootConfig) (string, error)
func (*SInstance) RevokeSecurityGroup ¶
func (*SInstance) SetSecurityGroups ¶
func (*SInstance) StopVM ¶
func (instance *SInstance) StopVM(ctx context.Context, opts *cloudprovider.ServerStopOptions) error
func (*SInstance) UpdateUserData ¶
type SInstanceNic ¶
type SInstancePort ¶
type SInstancePort struct { FixedIps []SFixedIp MacAddr string NetId string PortId string PortState string cloudprovider.DummyICloudNic // contains filtered or unexported fields }
func (*SInstancePort) GetDriver ¶
func (nic *SInstancePort) GetDriver() string
func (*SInstancePort) GetINetworkId ¶
func (nic *SInstancePort) GetINetworkId() string
func (*SInstancePort) GetIP ¶
func (nic *SInstancePort) GetIP() string
func (*SInstancePort) GetId ¶
func (nic *SInstancePort) GetId() string
func (*SInstancePort) GetMAC ¶
func (nic *SInstancePort) GetMAC() string
func (*SInstancePort) InClassicNetwork ¶
func (nic *SInstancePort) InClassicNetwork() bool
type SL7PolicieID ¶
type SL7PolicieID struct {
ID string `json:"id"`
}
type SListenerID ¶
type SListenerID struct {
ID string `json:"id"`
}
type SLoadbalancer ¶
type SLoadbalancer struct { multicloud.SLoadbalancerBase OpenStackTags Description string `json:"description"` AdminStateUp bool `json:"admin_state_up"` ProjectID string `json:"project_id"` ProvisioningStatus string `json:"provisioning_status"` FlavorID string `json:"flavor_id"` VipSubnetID string `json:"vip_subnet_id"` ListenerIds []SListenerID `json:"listeners"` VipAddress string `json:"vip_address"` VipNetworkID string `json:"vip_network_id"` VipPortID string `json:"vip_port_id"` Provider string `json:"provider"` PoolIds []SPoolID `json:"pools"` CreatedAt string `json:"created_at"` UpdatedAt string `json:"updated_at"` ID string `json:"id"` OperatingStatus string `json:"operating_status"` Name string `json:"name"` VipQosPolicyID string `json:"vip_qos_policy_id"` AvailabilityZone string `json:"availability_zone"` Tags []string `json:"tags"` // contains filtered or unexported fields }
func (*SLoadbalancer) CreateILoadBalancerBackendGroup ¶
func (lb *SLoadbalancer) CreateILoadBalancerBackendGroup(group *cloudprovider.SLoadbalancerBackendGroup) (cloudprovider.ICloudLoadbalancerBackendGroup, error)
func (*SLoadbalancer) CreateILoadBalancerListener ¶
func (lb *SLoadbalancer) CreateILoadBalancerListener(ctx context.Context, listener *cloudprovider.SLoadbalancerListener) (cloudprovider.ICloudLoadbalancerListener, error)
func (*SLoadbalancer) GetAddress ¶
func (lb *SLoadbalancer) GetAddress() string
func (*SLoadbalancer) GetAddressType ¶
func (lb *SLoadbalancer) GetAddressType() string
func (*SLoadbalancer) GetChargeType ¶
func (lb *SLoadbalancer) GetChargeType() string
func (*SLoadbalancer) GetEgressMbps ¶
func (lb *SLoadbalancer) GetEgressMbps() int
func (*SLoadbalancer) GetGlobalId ¶
func (lb *SLoadbalancer) GetGlobalId() string
func (*SLoadbalancer) GetIEIP ¶
func (lb *SLoadbalancer) GetIEIP() (cloudprovider.ICloudEIP, error)
func (*SLoadbalancer) GetILoadBalancerBackendGroupById ¶
func (lb *SLoadbalancer) GetILoadBalancerBackendGroupById(poolId string) (cloudprovider.ICloudLoadbalancerBackendGroup, error)
func (*SLoadbalancer) GetILoadBalancerBackendGroups ¶
func (lb *SLoadbalancer) GetILoadBalancerBackendGroups() ([]cloudprovider.ICloudLoadbalancerBackendGroup, error)
func (*SLoadbalancer) GetILoadBalancerListenerById ¶
func (lb *SLoadbalancer) GetILoadBalancerListenerById(listenerId string) (cloudprovider.ICloudLoadbalancerListener, error)
func (*SLoadbalancer) GetILoadBalancerListeners ¶
func (lb *SLoadbalancer) GetILoadBalancerListeners() ([]cloudprovider.ICloudLoadbalancerListener, error)
func (*SLoadbalancer) GetId ¶
func (lb *SLoadbalancer) GetId() string
func (*SLoadbalancer) GetLoadbalancerSpec ¶
func (lb *SLoadbalancer) GetLoadbalancerSpec() string
func (*SLoadbalancer) GetName ¶
func (lb *SLoadbalancer) GetName() string
func (*SLoadbalancer) GetNetworkIds ¶
func (lb *SLoadbalancer) GetNetworkIds() []string
func (*SLoadbalancer) GetNetworkType ¶
func (lb *SLoadbalancer) GetNetworkType() string
func (*SLoadbalancer) GetProjectId ¶
func (lb *SLoadbalancer) GetProjectId() string
func (*SLoadbalancer) GetStatus ¶
func (lb *SLoadbalancer) GetStatus() string
func (*SLoadbalancer) GetVpcId ¶
func (lb *SLoadbalancer) GetVpcId() string
func (*SLoadbalancer) GetZone1Id ¶
func (self *SLoadbalancer) GetZone1Id() string
func (*SLoadbalancer) GetZoneId ¶
func (lb *SLoadbalancer) GetZoneId() string
func (*SLoadbalancer) IsEmulated ¶
func (lb *SLoadbalancer) IsEmulated() bool
func (*SLoadbalancer) Refresh ¶
func (lb *SLoadbalancer) Refresh() error
func (*SLoadbalancer) SetTags ¶
func (self *SLoadbalancer) SetTags(tags map[string]string, replace bool) error
func (*SLoadbalancer) Start ¶
func (lb *SLoadbalancer) Start() error
func (*SLoadbalancer) Stop ¶
func (lb *SLoadbalancer) Stop() error
type SLoadbalancerAcl ¶
type SLoadbalancerAcl struct { multicloud.SResourceBase OpenStackTags // contains filtered or unexported fields }
func (*SLoadbalancerAcl) Delete ¶
func (acl *SLoadbalancerAcl) Delete() error
func (*SLoadbalancerAcl) GetAclEntries ¶
func (acl *SLoadbalancerAcl) GetAclEntries() []cloudprovider.SLoadbalancerAccessControlListEntry
func (*SLoadbalancerAcl) GetAclListenerID ¶
func (acl *SLoadbalancerAcl) GetAclListenerID() string
func (*SLoadbalancerAcl) GetGlobalId ¶
func (acl *SLoadbalancerAcl) GetGlobalId() string
func (*SLoadbalancerAcl) GetId ¶
func (acl *SLoadbalancerAcl) GetId() string
func (*SLoadbalancerAcl) GetName ¶
func (acl *SLoadbalancerAcl) GetName() string
func (*SLoadbalancerAcl) GetProjectId ¶
func (acl *SLoadbalancerAcl) GetProjectId() string
func (*SLoadbalancerAcl) GetStatus ¶
func (acl *SLoadbalancerAcl) GetStatus() string
func (*SLoadbalancerAcl) IsEmulated ¶
func (acl *SLoadbalancerAcl) IsEmulated() bool
func (*SLoadbalancerAcl) Refresh ¶
func (acl *SLoadbalancerAcl) Refresh() error
func (*SLoadbalancerAcl) Sync ¶
func (acl *SLoadbalancerAcl) Sync(_acl *cloudprovider.SLoadbalancerAccessControlList) error
type SLoadbalancerCreateParams ¶
type SLoadbalancerCreateParams struct { Description string `json:"description,omitempty"` AdminStateUp bool `json:"admin_state_up,omitempty"` ProjectID string `json:"project_id,omitempty"` VipNetworkId string `json:"vip_network_id,omitempty"` VipSubnetID string `json:"vip_subnet_id,omitempty"` VipAddress string `json:"vip_address,omitempty"` Provider string `json:"provider,omitempty"` Name string `json:"name,omitempty"` VipQosPolicyID string `json:"vip_qos_policy_id,omitempty"` AvailabilityZone string `json:"availability_zone,omitempty"` Tags []string `json:"tags,omitempty"` }
type SLoadbalancerHealthmonitor ¶
type SLoadbalancerHealthmonitor struct { multicloud.SResourceBase OpenStackTags ProjectID string `json:"project_id"` Name string `json:"name"` AdminStateUp bool `json:"admin_state_up"` PoolIds []SPoolID `json:"pools"` CreatedAt string `json:"created_at"` ProvisioningStatus string `json:"provisioning_status"` UpdatedAt string `json:"updated_at"` Delay int `json:"delay"` ExpectedCodes string `json:"expected_codes"` MaxRetries int `json:"max_retries"` HTTPMethod string `json:"http_method"` Timeout int `json:"timeout"` MaxRetriesDown int `json:"max_retries_down"` URLPath string `json:"url_path"` Type string `json:"type"` ID string `json:"id"` OperatingStatus string `json:"operating_status"` Tags []string `json:"tags"` HTTPVersion float64 `json:"http_version"` DomainName string `json:"domain_name"` // contains filtered or unexported fields }
func (*SLoadbalancerHealthmonitor) GetGlobalId ¶
func (healthmonitor *SLoadbalancerHealthmonitor) GetGlobalId() string
func (*SLoadbalancerHealthmonitor) GetId ¶
func (healthmonitor *SLoadbalancerHealthmonitor) GetId() string
func (*SLoadbalancerHealthmonitor) GetName ¶
func (healthmonitor *SLoadbalancerHealthmonitor) GetName() string
func (*SLoadbalancerHealthmonitor) GetStatus ¶
func (healthmonitor *SLoadbalancerHealthmonitor) GetStatus() string
func (*SLoadbalancerHealthmonitor) IsEmulated ¶
func (healthmonitor *SLoadbalancerHealthmonitor) IsEmulated() bool
func (*SLoadbalancerHealthmonitor) Refresh ¶
func (healthmonitor *SLoadbalancerHealthmonitor) Refresh() error
type SLoadbalancerHealthmonitorCreateParams ¶
type SLoadbalancerHealthmonitorCreateParams struct { Name string `json:"name,omitempty"` AdminStateUp bool `json:"admin_state_up"` PoolID string `json:"pool_id,omitempty"` Delay *int `json:"delay,omitempty"` ExpectedCodes string `json:"expected_codes,omitempty"` MaxRetries *int `json:"max_retries,omitempty"` HTTPMethod string `json:"http_method,omitempty"` Timeout *int `json:"timeout,omitempty"` URLPath string `json:"url_path,omitempty"` Type string `json:"type,omitempty"` MaxRetriesDown *int `json:"max_retries_down,omitempty"` Tags []string `json:"tags,omitempty"` HTTPVersion *float64 `json:"http_version,omitempty"` DomainName string `json:"domain_name,omitempty"` }
type SLoadbalancerHealthmonitorUpdateParams ¶
type SLoadbalancerHealthmonitorUpdateParams struct { Name string `json:"name,omitempty"` AdminStateUp bool `json:"admin_state_up"` Delay *int `json:"delay,omitempty"` ExpectedCodes string `json:"expected_codes,omitempty"` MaxRetries *int `json:"max_retries,omitempty"` HTTPMethod string `json:"http_method,omitempty"` Timeout *int `json:"timeout,omitempty"` URLPath string `json:"url_path,omitempty"` MaxRetriesDown *int `json:"max_retries_down,omitempty"` Tags []string `json:"tags,omitempty"` HTTPVersion *float64 `json:"http_version,omitempty"` DomainName string `json:"domain_name,omitempty"` }
type SLoadbalancerID ¶
type SLoadbalancerID struct {
ID string `json:"id"`
}
type SLoadbalancerL7Policy ¶
type SLoadbalancerL7Policy struct { multicloud.SResourceBase OpenStackTags ListenerID string `json:"listener_id"` Description string `json:"description"` AdminStateUp bool `json:"admin_state_up"` RuleIds []SL7RuleID `json:"rules"` CreatedAt string `json:"created_at"` ProvisioningStatus string `json:"provisioning_status"` UpdatedAt string `json:"updated_at"` RedirectHTTPCode int `json:"redirect_http_code"` RedirectPoolID string `json:"redirect_pool_id"` RedirectPrefix string `json:"redirect_prefix"` RedirectURL string `json:"redirect_url"` Action string `json:"action"` Position int `json:"position"` ProjectID string `json:"project_id"` ID string `json:"id"` OperatingStatus string `json:"operating_status"` Name string `json:"name"` Tags []string `json:"tags"` // contains filtered or unexported fields }
func (*SLoadbalancerL7Policy) GetGlobalId ¶
func (L7policy *SLoadbalancerL7Policy) GetGlobalId() string
func (*SLoadbalancerL7Policy) GetId ¶
func (L7policy *SLoadbalancerL7Policy) GetId() string
func (*SLoadbalancerL7Policy) GetName ¶
func (L7policy *SLoadbalancerL7Policy) GetName() string
func (*SLoadbalancerL7Policy) GetStatus ¶
func (L7policy *SLoadbalancerL7Policy) GetStatus() string
func (*SLoadbalancerL7Policy) IsEmulated ¶
func (L7policy *SLoadbalancerL7Policy) IsEmulated() bool
func (*SLoadbalancerL7Policy) Refresh ¶
func (L7policy *SLoadbalancerL7Policy) Refresh() error
type SLoadbalancerL7PolicyCreateParams ¶
type SLoadbalancerL7PolicyCreateParams struct { Description string `json:"description,omitempty"` AdminStateUp bool `json:"admin_state_up,omitempty"` ListenerID string `json:"listener_id,omitempty"` RedirectPrefix string `json:"redirect_prefix,omitempty"` RedirectURL string `json:"redirect_url,omitempty"` RedirectPoolID string `json:"redirect_pool_id,omitempty"` RedirectHTTPCode *int `json:"redirect_http_code,omitempty"` Name string `json:"name,omitempty"` Action string `json:"action,omitempty"` Position *int `json:"position,omitempty"` Tags []string `json:"tags,omitempty"` }
type SLoadbalancerL7Rule ¶
type SLoadbalancerL7Rule struct { multicloud.SResourceBase multicloud.SLoadbalancerRedirectBase OpenStackTags CreatedAt string `json:"created_at"` CompareType string `json:"compare_type"` ProvisioningStatus string `json:"provisioning_status"` Invert bool `json:"invert"` AdminStateUp bool `json:"admin_state_up"` UpdatedAt string `json:"updated_at"` Value string `json:"value"` Key string `json:"key"` ProjectID string `json:"project_id"` Type string `json:"type"` ID string `json:"id"` OperatingStatus string `json:"operating_status"` Tags []string `json:"tags"` // contains filtered or unexported fields }
func (*SLoadbalancerL7Rule) Delete ¶
func (l7r *SLoadbalancerL7Rule) Delete(ctx context.Context) error
func (*SLoadbalancerL7Rule) GetBackendGroupId ¶
func (l7r *SLoadbalancerL7Rule) GetBackendGroupId() string
func (*SLoadbalancerL7Rule) GetCondition ¶
func (l7r *SLoadbalancerL7Rule) GetCondition() string
func (*SLoadbalancerL7Rule) GetDomain ¶
func (l7r *SLoadbalancerL7Rule) GetDomain() string
func (*SLoadbalancerL7Rule) GetGlobalId ¶
func (l7r *SLoadbalancerL7Rule) GetGlobalId() string
func (*SLoadbalancerL7Rule) GetId ¶
func (l7r *SLoadbalancerL7Rule) GetId() string
func (*SLoadbalancerL7Rule) GetName ¶
func (l7r *SLoadbalancerL7Rule) GetName() string
func (*SLoadbalancerL7Rule) GetPath ¶
func (l7r *SLoadbalancerL7Rule) GetPath() string
func (*SLoadbalancerL7Rule) GetProjectId ¶
func (l7r *SLoadbalancerL7Rule) GetProjectId() string
func (*SLoadbalancerL7Rule) GetStatus ¶
func (l7r *SLoadbalancerL7Rule) GetStatus() string
func (*SLoadbalancerL7Rule) IsDefault ¶
func (self *SLoadbalancerL7Rule) IsDefault() bool
func (*SLoadbalancerL7Rule) IsEmulated ¶
func (l7r *SLoadbalancerL7Rule) IsEmulated() bool
func (*SLoadbalancerL7Rule) Refresh ¶
func (l7r *SLoadbalancerL7Rule) Refresh() error
type SLoadbalancerListener ¶
type SLoadbalancerListener struct { multicloud.SResourceBase multicloud.SLoadbalancerRedirectBase OpenStackTags Description string `json:"description"` AdminStateUp bool `json:"admin_state_up"` ProjectID string `json:"project_id"` Protocol string `json:"protocol"` ProtocolPort int `json:"protocol_port"` ProvisioningStatus string `json:"provisioning_status"` DefaultTLSContainerRef string `json:"default_tls_container_ref"` LoadbalancerIds []SLoadbalancerID `json:"loadbalancers"` InsertHeaders SInsertHeaders `json:"insert_headers"` CreatedAt string `json:"created_at"` UpdatedAt string `json:"updated_at"` ID string `json:"id"` OperatingStatus string `json:"operating_status"` DefaultPoolID string `json:"default_pool_id"` SniContainerRefs []string `json:"sni_container_refs"` L7PolicieIds []SL7PolicieID `json:"l7policies"` Name string `json:"name"` TimeoutClientData int `json:"timeout_client_data"` TimeoutMemberConnect int `json:"timeout_member_connect"` TimeoutMemberData int `json:"timeout_member_data"` TimeoutTCPInspect int `json:"timeout_tcp_inspect"` Tags []string `json:"tags"` ClientCaTLSContainerRef string `json:"client_ca_tls_container_ref"` ClientAuthentication string `json:"client_authentication"` ClientCrlContainerRef string `json:"client_crl_container_ref"` AllowedCidrs []string `json:"allowed_cidrs"` TLSCiphers string `json:"tls_ciphers"` TLSVersions []string `json:"tls_versions"` // contains filtered or unexported fields }
func (*SLoadbalancerListener) CreateILoadBalancerListenerRule ¶
func (listener *SLoadbalancerListener) CreateILoadBalancerListenerRule(rule *cloudprovider.SLoadbalancerListenerRule) (cloudprovider.ICloudLoadbalancerListenerRule, error)
func (*SLoadbalancerListener) Delete ¶
func (listener *SLoadbalancerListener) Delete(ctx context.Context) error
func (*SLoadbalancerListener) GetAclId ¶
func (listener *SLoadbalancerListener) GetAclId() string
func (*SLoadbalancerListener) GetAclStatus ¶
func (listener *SLoadbalancerListener) GetAclStatus() string
func (*SLoadbalancerListener) GetAclType ¶
func (listener *SLoadbalancerListener) GetAclType() string
func (*SLoadbalancerListener) GetBackendConnectTimeout ¶
func (listener *SLoadbalancerListener) GetBackendConnectTimeout() int
func (*SLoadbalancerListener) GetBackendGroupId ¶
func (listener *SLoadbalancerListener) GetBackendGroupId() string
func (*SLoadbalancerListener) GetBackendServerPort ¶
func (listener *SLoadbalancerListener) GetBackendServerPort() int
func (*SLoadbalancerListener) GetCertificateId ¶
func (listener *SLoadbalancerListener) GetCertificateId() string
func (*SLoadbalancerListener) GetClientIdleTimeout ¶
func (listener *SLoadbalancerListener) GetClientIdleTimeout() int
func (*SLoadbalancerListener) GetEgressMbps ¶
func (listener *SLoadbalancerListener) GetEgressMbps() int
func (*SLoadbalancerListener) GetGlobalId ¶
func (listener *SLoadbalancerListener) GetGlobalId() string
func (*SLoadbalancerListener) GetHealthCheck ¶
func (listener *SLoadbalancerListener) GetHealthCheck() string
func (*SLoadbalancerListener) GetHealthCheckCode ¶
func (listener *SLoadbalancerListener) GetHealthCheckCode() string
func (*SLoadbalancerListener) GetHealthCheckDomain ¶
func (listener *SLoadbalancerListener) GetHealthCheckDomain() string
func (*SLoadbalancerListener) GetHealthCheckExp ¶
func (listener *SLoadbalancerListener) GetHealthCheckExp() string
func (*SLoadbalancerListener) GetHealthCheckFail ¶
func (listener *SLoadbalancerListener) GetHealthCheckFail() int
func (*SLoadbalancerListener) GetHealthCheckInterval ¶
func (listener *SLoadbalancerListener) GetHealthCheckInterval() int
func (*SLoadbalancerListener) GetHealthCheckReq ¶
func (listener *SLoadbalancerListener) GetHealthCheckReq() string
func (*SLoadbalancerListener) GetHealthCheckRise ¶
func (listener *SLoadbalancerListener) GetHealthCheckRise() int
func (*SLoadbalancerListener) GetHealthCheckTimeout ¶
func (listener *SLoadbalancerListener) GetHealthCheckTimeout() int
func (*SLoadbalancerListener) GetHealthCheckType ¶
func (listener *SLoadbalancerListener) GetHealthCheckType() string
func (*SLoadbalancerListener) GetHealthCheckURI ¶
func (listener *SLoadbalancerListener) GetHealthCheckURI() string
func (*SLoadbalancerListener) GetILoadBalancerListenerRuleById ¶
func (listener *SLoadbalancerListener) GetILoadBalancerListenerRuleById(ruleId string) (cloudprovider.ICloudLoadbalancerListenerRule, error)
func (*SLoadbalancerListener) GetILoadbalancerListenerRules ¶
func (listener *SLoadbalancerListener) GetILoadbalancerListenerRules() ([]cloudprovider.ICloudLoadbalancerListenerRule, error)
func (*SLoadbalancerListener) GetId ¶
func (listener *SLoadbalancerListener) GetId() string
func (*SLoadbalancerListener) GetListenerPort ¶
func (listener *SLoadbalancerListener) GetListenerPort() int
func (*SLoadbalancerListener) GetListenerType ¶
func (listener *SLoadbalancerListener) GetListenerType() string
func (*SLoadbalancerListener) GetName ¶
func (listener *SLoadbalancerListener) GetName() string
func (*SLoadbalancerListener) GetProjectId ¶
func (listener *SLoadbalancerListener) GetProjectId() string
func (*SLoadbalancerListener) GetScheduler ¶
func (listener *SLoadbalancerListener) GetScheduler() string
func (*SLoadbalancerListener) GetStatus ¶
func (listener *SLoadbalancerListener) GetStatus() string
func (*SLoadbalancerListener) GetStickySession ¶
func (listener *SLoadbalancerListener) GetStickySession() string
func (*SLoadbalancerListener) GetStickySessionCookie ¶
func (listener *SLoadbalancerListener) GetStickySessionCookie() string
func (*SLoadbalancerListener) GetStickySessionCookieTimeout ¶
func (listener *SLoadbalancerListener) GetStickySessionCookieTimeout() int
func (*SLoadbalancerListener) GetStickySessionType ¶
func (listener *SLoadbalancerListener) GetStickySessionType() string
func (*SLoadbalancerListener) GetTLSCipherPolicy ¶
func (listener *SLoadbalancerListener) GetTLSCipherPolicy() string
func (*SLoadbalancerListener) GzipEnabled ¶
func (listener *SLoadbalancerListener) GzipEnabled() bool
func (*SLoadbalancerListener) HTTP2Enabled ¶
func (listener *SLoadbalancerListener) HTTP2Enabled() bool
func (*SLoadbalancerListener) IsEmulated ¶
func (listener *SLoadbalancerListener) IsEmulated() bool
func (*SLoadbalancerListener) Refresh ¶
func (listener *SLoadbalancerListener) Refresh() error
func (*SLoadbalancerListener) Start ¶
func (listener *SLoadbalancerListener) Start() error
func (*SLoadbalancerListener) Stop ¶
func (listener *SLoadbalancerListener) Stop() error
func (*SLoadbalancerListener) Sync ¶
func (listener *SLoadbalancerListener) Sync(ctx context.Context, lblis *cloudprovider.SLoadbalancerListener) error
func (*SLoadbalancerListener) XForwardedForEnabled ¶
func (listener *SLoadbalancerListener) XForwardedForEnabled() bool
type SLoadbalancerListenerCreateParams ¶
type SLoadbalancerListenerCreateParams struct { Protocol string `json:"protocol,omitempty"` Description string `json:"description,omitempty"` AdminStateUp bool `json:"admin_state_up,omitempty"` ConnectionLimit *int `json:"connection_limit,omitempty"` ProtocolPort string `json:"protocol_port,omitempty"` LoadbalancerID string `json:"loadbalancer_id,omitempty"` DefaultPoolId string `json:"default_pool_id,omitempty"` Name string `json:"name,omitempty"` InsertHeaders SInsertHeaders `json:"insert_headers,omitempty"` DefaultTLSContainerRef string `json:"default_tls_container_ref,omitempty"` SniContainerRefs []string `json:"sni_container_refs,omitempty"` TimeoutClientData *int `json:"timeout_client_data,omitempty"` TimeoutMemberConnect *int `json:"timeout_member_connect,omitempty"` TimeoutMemberData *int `json:"timeout_member_data,omitempty"` TimeoutTCPInspect *int `json:"timeout_tcp_inspect,omitempty"` Tags []string `json:"tags,omitempty"` ClientCaTLSContainerRef string `json:"client_ca_tls_container_ref,omitempty"` ClientAuthentication string `json:"client_authentication,omitempty"` ClientCrlContainerRef string `json:"client_crl_container_ref,omitempty"` AllowedCidrs []string `json:"allowed_cidrs,omitempty"` TLSCiphers string `json:"tls_ciphers,omitempty"` TLSVersions []string `json:"tls_versions,omitempty"` }
type SLoadbalancerListenerUpdateParams ¶
type SLoadbalancerListenerUpdateParams struct { Description string `json:"description,omitempty"` AdminStateUp bool `json:"admin_state_up,omitempty"` ConnectionLimit *int `json:"connection_limit,omitempty"` DefaultPoolId string `json:"default_pool_id,omitempty"` Name string `json:"name,omitempty"` InsertHeaders SInsertHeaders `json:"insert_headers,omitempty"` DefaultTLSContainerRef string `json:"default_tls_container_ref,omitempty"` SniContainerRefs []string `json:"sni_container_refs,omitempty"` TimeoutClientData *int `json:"timeout_client_data,omitempty"` TimeoutMemberConnect *int `json:"timeout_member_connect,omitempty"` TimeoutMemberData *int `json:"timeout_member_data,omitempty"` TimeoutTCPInspect *int `json:"timeout_tcp_inspect,omitempty"` Tags []string `json:"tags,omitempty"` ClientCaTLSContainerRef string `json:"client_ca_tls_container_ref,omitempty"` ClientAuthentication string `json:"client_authentication,omitempty"` ClientCrlContainerRef string `json:"client_crl_container_ref,omitempty"` AllowedCidrs []string `json:"allowed_cidrs,omitempty"` TLSCiphers string `json:"tls_ciphers,omitempty"` TLSVersions []string `json:"tls_versions,omitempty"` }
type SLoadbalancerMember ¶
type SLoadbalancerMember struct { multicloud.SResourceBase OpenStackTags MonitorPort int `json:"monitor_port"` ProjectID string `json:"project_id"` Name string `json:"name"` Weight int `json:"weight"` Backup bool `json:"backup"` AdminStateUp bool `json:"admin_state_up"` SubnetID string `json:"subnet_id"` CreatedAt string `json:"created_at"` ProvisioningStatus string `json:"provisioning_status"` MonitorAddress string `json:"monitor_address"` UpdatedAt string `json:"updated_at"` Address string `json:"address"` ProtocolPort int `json:"protocol_port"` ID string `json:"id"` OperatingStatus string `json:"operating_status"` Tags []string `json:"tags"` // contains filtered or unexported fields }
func (*SLoadbalancerMember) GetBackendId ¶
func (member *SLoadbalancerMember) GetBackendId() string
网络地址映射设备
func (*SLoadbalancerMember) GetBackendRole ¶
func (member *SLoadbalancerMember) GetBackendRole() string
func (*SLoadbalancerMember) GetBackendType ¶
func (member *SLoadbalancerMember) GetBackendType() string
func (*SLoadbalancerMember) GetGlobalId ¶
func (member *SLoadbalancerMember) GetGlobalId() string
func (*SLoadbalancerMember) GetId ¶
func (member *SLoadbalancerMember) GetId() string
func (*SLoadbalancerMember) GetIpAddress ¶
func (member *SLoadbalancerMember) GetIpAddress() string
func (*SLoadbalancerMember) GetName ¶
func (member *SLoadbalancerMember) GetName() string
func (*SLoadbalancerMember) GetPort ¶
func (member *SLoadbalancerMember) GetPort() int
func (*SLoadbalancerMember) GetProjectId ¶
func (member *SLoadbalancerMember) GetProjectId() string
func (*SLoadbalancerMember) GetStatus ¶
func (member *SLoadbalancerMember) GetStatus() string
func (*SLoadbalancerMember) GetWeight ¶
func (member *SLoadbalancerMember) GetWeight() int
func (*SLoadbalancerMember) IsEmulated ¶
func (member *SLoadbalancerMember) IsEmulated() bool
func (*SLoadbalancerMember) Refresh ¶
func (member *SLoadbalancerMember) Refresh() error
type SLoadbalancerMemberCreateParams ¶
type SLoadbalancerMemberCreateParams struct { Name string `json:"name,omitempty"` Weight *int `json:"weight,omitempty"` AdminStateUp bool `json:"admin_state_up,omitempty"` SubnetID string `json:"subnet_id,omitempty"` Address string `json:"address,omitempty"` ProtocolPort *int `json:"protocol_port,omitempty"` MonitorPort *int `json:"monitor_port,omitempty"` Backup *bool `json:"backup,omitempty"` Tags []string `json:"tags,omitempty"` }
type SLoadbalancerPool ¶
type SLoadbalancerPool struct { multicloud.SResourceBase OpenStackTags LbAlgorithm string `json:"lb_algorithm"` Protocol string `json:"protocol"` Description string `json:"description"` AdminStateUp bool `json:"admin_state_up"` LoadbalancerIds []SLoadbalancerID `json:"loadbalancers"` CreatedAt string `json:"created_at"` ProvisioningStatus string `json:"provisioning_status"` UpdatedAt string `json:"updated_at"` SessionPersistence SSessionPersistence `json:"session_persistence"` ListenerIds []SListenerID `json:"listeners"` MemberIds []SMemberID `json:"members"` HealthmonitorID string `json:"healthmonitor_id"` ProjectID string `json:"project_id"` ID string `json:"id"` OperatingStatus string `json:"operating_status"` Name string `json:"name"` Tags []string `json:"tags"` TLSContainerRef string `json:"tls_container_ref"` CaTLSContainerRef string `json:"ca_tls_container_ref"` CrlContainerRef string `json:"crl_container_ref"` TLSEnabled bool `json:"tls_enabled"` TLSCiphers string `json:"tls_ciphers"` TLSVersions []string `json:"tls_versions"` // contains filtered or unexported fields }
func (*SLoadbalancerPool) AddBackendServer ¶
func (pool *SLoadbalancerPool) AddBackendServer(serverId string, weight, port int) (cloudprovider.ICloudLoadbalancerBackend, error)
func (*SLoadbalancerPool) GetGlobalId ¶
func (pool *SLoadbalancerPool) GetGlobalId() string
func (*SLoadbalancerPool) GetHealthCheck ¶
func (pool *SLoadbalancerPool) GetHealthCheck() (*cloudprovider.SLoadbalancerHealthCheck, error)
func (*SLoadbalancerPool) GetILoadbalancer ¶
func (pool *SLoadbalancerPool) GetILoadbalancer() cloudprovider.ICloudLoadbalancer
func (*SLoadbalancerPool) GetILoadbalancerBackendById ¶
func (pool *SLoadbalancerPool) GetILoadbalancerBackendById(memberId string) (cloudprovider.ICloudLoadbalancerBackend, error)
func (*SLoadbalancerPool) GetILoadbalancerBackends ¶
func (pool *SLoadbalancerPool) GetILoadbalancerBackends() ([]cloudprovider.ICloudLoadbalancerBackend, error)
func (*SLoadbalancerPool) GetId ¶
func (pool *SLoadbalancerPool) GetId() string
func (*SLoadbalancerPool) GetLoadbalancerId ¶
func (pool *SLoadbalancerPool) GetLoadbalancerId() string
func (*SLoadbalancerPool) GetName ¶
func (pool *SLoadbalancerPool) GetName() string
func (*SLoadbalancerPool) GetProjectId ¶
func (pool *SLoadbalancerPool) GetProjectId() string
func (*SLoadbalancerPool) GetProtocolType ¶
func (pool *SLoadbalancerPool) GetProtocolType() string
func (*SLoadbalancerPool) GetScheduler ¶
func (pool *SLoadbalancerPool) GetScheduler() string
func (*SLoadbalancerPool) GetStatus ¶
func (pool *SLoadbalancerPool) GetStatus() string
func (*SLoadbalancerPool) GetStickySession ¶
func (pool *SLoadbalancerPool) GetStickySession() (*cloudprovider.SLoadbalancerStickySession, error)
func (*SLoadbalancerPool) GetType ¶
func (pool *SLoadbalancerPool) GetType() string
func (*SLoadbalancerPool) IsDefault ¶
func (pool *SLoadbalancerPool) IsDefault() bool
func (*SLoadbalancerPool) IsEmulated ¶
func (pool *SLoadbalancerPool) IsEmulated() bool
func (*SLoadbalancerPool) Refresh ¶
func (pool *SLoadbalancerPool) Refresh() error
func (*SLoadbalancerPool) RemoveBackendServer ¶
func (pool *SLoadbalancerPool) RemoveBackendServer(id string, weight, port int) error
不是serverId,是memberId
func (*SLoadbalancerPool) Sync ¶
func (pool *SLoadbalancerPool) Sync(ctx context.Context, group *cloudprovider.SLoadbalancerBackendGroup) error
type SLoadbalancerPoolCreateParams ¶
type SLoadbalancerPoolCreateParams struct { LbAlgorithm string `json:"lb_algorithm,omitempty"` Protocol string `json:"protocol,omitempty"` Description string `json:"description,omitempty"` AdminStateUp bool `json:"admin_state_up,omitempty"` SessionPersistence *SSessionPersistence `json:"session_persistence"` LoadbalancerID string `json:"loadbalancer_id,omitempty"` ListenerID string `json:"listener_id,omitempty"` Name string `json:"name,omitempty"` Tags []string `json:"tags,omitempty"` TLSContainerRef string `json:"tls_container_ref,omitempty"` CaTLSContainerRef string `json:"ca_tls_container_ref,omitempty"` CrlContainerRef string `json:"crl_container_ref,omitempty"` TLSEnabled *bool `json:"tls_enabled,omitempty"` TLSCiphers string `json:"tls_ciphers,omitempty"` TLSVersions []string `json:"tls_versions,omitempty"` }
type SLoadbalancerPoolUpdateParams ¶
type SLoadbalancerPoolUpdateParams struct { LbAlgorithm string `json:"lb_algorithm,omitempty"` Description string `json:"description,omitempty"` AdminStateUp bool `json:"admin_state_up,omitempty"` SessionPersistence *SSessionPersistence `json:"session_persistence"` Name string `json:"name,omitempty"` Tags []string `json:"tags,omitempty"` TLSContainerRef string `json:"tls_container_ref,omitempty"` CaTLSContainerRef string `json:"ca_tls_container_ref,omitempty"` CrlContainerRef string `json:"crl_container_ref,omitempty"` TLSEnabled *bool `json:"tls_enabled,omitempty"` TLSCiphers string `json:"tls_ciphers,omitempty"` TLSVersions []string `json:"tls_versions,omitempty"` }
type SNetwork ¶
type SNetwork struct { multicloud.SResourceBase OpenStackTags Name string EnableDhcp bool NetworkId string SegmentId string ProjectId string TenantId string DnsNameservers []string AllocationPools []AllocationPool HostRoutes []string IpVersion int GatewayIP string CIDR string Id string CreatedAt time.Time Description string Ipv6AddressMode string Ipv6RaMode string RevisionNumber int ServiceTypes []string SubnetpoolId string Tags []string UpdatedAt time.Time // contains filtered or unexported fields }
func (*SNetwork) GetAllocTimeoutSeconds ¶
func (*SNetwork) GetGateway ¶
func (*SNetwork) GetGlobalId ¶
func (*SNetwork) GetIPRange ¶
func (network *SNetwork) GetIPRange() netutils.IPV4AddrRange
func (*SNetwork) GetIWire ¶
func (network *SNetwork) GetIWire() cloudprovider.ICloudWire
func (*SNetwork) GetIpStart ¶
func (*SNetwork) GetIsPublic ¶
func (*SNetwork) GetProjectId ¶
func (*SNetwork) GetPublicScope ¶
func (network *SNetwork) GetPublicScope() rbacutils.TRbacScope
func (*SNetwork) GetServerType ¶
func (*SNetwork) IsEmulated ¶
type SNextLinks ¶
type SNextLinks []SNextLink
func (SNextLinks) GetNextMark ¶
func (links SNextLinks) GetNextMark() string
type SNovaDisk ¶
type SNovaDisk struct { multicloud.SDisk OpenStackTags // contains filtered or unexported fields }
func (*SNovaDisk) CreateISnapshot ¶
func (disk *SNovaDisk) CreateISnapshot(ctx context.Context, name, desc string) (cloudprovider.ICloudSnapshot, error)
func (*SNovaDisk) GetAccessPath ¶
func (*SNovaDisk) GetBillingType ¶
func (*SNovaDisk) GetCacheMode ¶
func (*SNovaDisk) GetCreatedAt ¶
func (*SNovaDisk) GetDiskFormat ¶
func (*SNovaDisk) GetDiskSizeMB ¶
func (*SNovaDisk) GetDiskType ¶
func (*SNovaDisk) GetExpiredAt ¶
func (*SNovaDisk) GetFsFormat ¶
func (*SNovaDisk) GetGlobalId ¶
func (*SNovaDisk) GetISnapshot ¶
func (disk *SNovaDisk) GetISnapshot(snapshotId string) (cloudprovider.ICloudSnapshot, error)
func (*SNovaDisk) GetISnapshots ¶
func (disk *SNovaDisk) GetISnapshots() ([]cloudprovider.ICloudSnapshot, error)
func (*SNovaDisk) GetIStorage ¶
func (disk *SNovaDisk) GetIStorage() (cloudprovider.ICloudStorage, error)
func (*SNovaDisk) GetIsAutoDelete ¶
func (*SNovaDisk) GetIsNonPersistent ¶
func (*SNovaDisk) GetMountpoint ¶
func (*SNovaDisk) GetProjectId ¶
func (*SNovaDisk) GetTemplateId ¶
func (*SNovaDisk) IsEmulated ¶
type SNovaStorage ¶
type SNovaStorage struct { multicloud.SStorageBase OpenStackTags // contains filtered or unexported fields }
func (*SNovaStorage) CreateIDisk ¶
func (storage *SNovaStorage) CreateIDisk(conf *cloudprovider.DiskCreateConfig) (cloudprovider.ICloudDisk, error)
func (*SNovaStorage) DisableSync ¶
func (self *SNovaStorage) DisableSync() bool
func (*SNovaStorage) GetCapacityMB ¶
func (storage *SNovaStorage) GetCapacityMB() int64
func (*SNovaStorage) GetCapacityUsedMB ¶
func (storage *SNovaStorage) GetCapacityUsedMB() int64
func (*SNovaStorage) GetEnabled ¶
func (storage *SNovaStorage) GetEnabled() bool
func (*SNovaStorage) GetGlobalId ¶
func (storage *SNovaStorage) GetGlobalId() string
func (*SNovaStorage) GetIDiskById ¶
func (storage *SNovaStorage) GetIDiskById(idStr string) (cloudprovider.ICloudDisk, error)
func (*SNovaStorage) GetIDisks ¶
func (storage *SNovaStorage) GetIDisks() ([]cloudprovider.ICloudDisk, error)
func (*SNovaStorage) GetIStoragecache ¶
func (storage *SNovaStorage) GetIStoragecache() cloudprovider.ICloudStoragecache
func (*SNovaStorage) GetIZone ¶
func (storage *SNovaStorage) GetIZone() cloudprovider.ICloudZone
func (*SNovaStorage) GetId ¶
func (storage *SNovaStorage) GetId() string
func (*SNovaStorage) GetMediumType ¶
func (storage *SNovaStorage) GetMediumType() string
func (*SNovaStorage) GetMountPoint ¶
func (storage *SNovaStorage) GetMountPoint() string
func (*SNovaStorage) GetName ¶
func (storage *SNovaStorage) GetName() string
func (*SNovaStorage) GetStatus ¶
func (storage *SNovaStorage) GetStatus() string
func (*SNovaStorage) GetStorageConf ¶
func (storage *SNovaStorage) GetStorageConf() jsonutils.JSONObject
func (*SNovaStorage) GetStorageType ¶
func (storage *SNovaStorage) GetStorageType() string
func (*SNovaStorage) IsEmulated ¶
func (storage *SNovaStorage) IsEmulated() bool
func (*SNovaStorage) IsSysDiskStore ¶
func (storage *SNovaStorage) IsSysDiskStore() bool
func (*SNovaStorage) Refresh ¶
func (storage *SNovaStorage) Refresh() error
type SOpenStackClient ¶
type SOpenStackClient struct { *OpenstackClientConfig // contains filtered or unexported fields }
func NewOpenStackClient ¶
func NewOpenStackClient(cfg *OpenstackClientConfig) (*SOpenStackClient, error)
func (*SOpenStackClient) AssignRoleToUserOnProject ¶
func (cli *SOpenStackClient) AssignRoleToUserOnProject(userId, projectId, roleName string) error
func (*SOpenStackClient) CreateIProject ¶
func (cli *SOpenStackClient) CreateIProject(name string) (cloudprovider.ICloudProject, error)
func (*SOpenStackClient) CreateProject ¶
func (cli *SOpenStackClient) CreateProject(name, desc string) (*SProject, error)
func (*SOpenStackClient) DeleteProject ¶
func (cli *SOpenStackClient) DeleteProject(projectId string) error
func (*SOpenStackClient) GetCapabilities ¶
func (self *SOpenStackClient) GetCapabilities() []string
func (*SOpenStackClient) GetCloudRegionExternalIdPrefix ¶
func (cli *SOpenStackClient) GetCloudRegionExternalIdPrefix() string
func (*SOpenStackClient) GetIProjects ¶
func (cli *SOpenStackClient) GetIProjects() ([]cloudprovider.ICloudProject, error)
func (*SOpenStackClient) GetIRegionById ¶
func (cli *SOpenStackClient) GetIRegionById(id string) (cloudprovider.ICloudRegion, error)
func (*SOpenStackClient) GetIRegions ¶
func (cli *SOpenStackClient) GetIRegions() []cloudprovider.ICloudRegion
func (*SOpenStackClient) GetMaxVersion ¶
func (cli *SOpenStackClient) GetMaxVersion(region, service string) (string, error)
func (*SOpenStackClient) GetProject ¶
func (cli *SOpenStackClient) GetProject(id string) (*SProject, error)
func (*SOpenStackClient) GetProjects ¶
func (cli *SOpenStackClient) GetProjects() ([]SProject, error)
func (*SOpenStackClient) GetRegion ¶
func (cli *SOpenStackClient) GetRegion(regionId string) *SRegion
func (*SOpenStackClient) GetRegions ¶
func (cli *SOpenStackClient) GetRegions() []SRegion
func (*SOpenStackClient) GetRoles ¶
func (cli *SOpenStackClient) GetRoles(name string) ([]SRole, error)
func (*SOpenStackClient) GetSubAccounts ¶
func (cli *SOpenStackClient) GetSubAccounts() ([]cloudprovider.SSubAccount, error)
type SPool ¶
type SPool struct { Name string Capabilities SCapabilities }
type SPort ¶
type SPort struct { multicloud.SNetworkInterfaceBase OpenStackTags AdminStateUp bool AllowedAddressPairs []string CreatedAt time.Time DataPlaneStatus string Description string DeviceID string DeviceOwner string DnsAssignment []DnsAssignment DnsDomain string DnsName string ExtraDhcpOpts []ExtraDhcpOpt FixedIps []SFixedIP ID string IpAllocation string MacAddress string Name string NetworkID string ProjectID string RevisionNumber int SecurityGroups []string Status string Tags []string TenantID string UpdatedAt time.Time QosPolicyID string PortSecurityEnabled bool UplinkStatusPropagation bool // contains filtered or unexported fields }
func (*SPort) GetAssociateId ¶
func (*SPort) GetAssociateType ¶
func (*SPort) GetGlobalId ¶
func (*SPort) GetICloudInterfaceAddresses ¶
func (port *SPort) GetICloudInterfaceAddresses() ([]cloudprovider.ICloudInterfaceAddress, error)
func (*SPort) GetMacAddress ¶
type SPortDetail ¶
type SProject ¶
type SProject struct { multicloud.SProjectBase OpenStackTags Description string Enabled bool Id string Name string // contains filtered or unexported fields }
func (*SProject) GetGlobalId ¶
func (*SProject) IsEmulated ¶
type SProjectLinks ¶
func (SProjectLinks) GetNextMark ¶
func (link SProjectLinks) GetNextMark() string
type SQuota ¶
type SQuota struct { Cores int Instances int KeyPairs int FixedIps int MetadataItems int Ram int ServerGroups int ServerGroupMembers int InjectedFileContentBytes int InjectedFilePathBytes int InjectedFiles int Floatingips int Networks int Port int RbacPolicy int Router int SecurityGroups int SecurityGroupRules int }
type SRegion ¶
type SRegion struct { multicloud.SRegion Name string // contains filtered or unexported fields }
func (*SRegion) AssociateEip ¶
func (*SRegion) AssociateEipWithPortId ¶
func (*SRegion) AttachDisk ¶
func (*SRegion) ChangeConfig ¶
func (*SRegion) CreateDisk ¶
func (*SRegion) CreateEIP ¶
func (region *SRegion) CreateEIP(eip *cloudprovider.SEip) (cloudprovider.ICloudEIP, error)
func (*SRegion) CreateEip ¶
func (region *SRegion) CreateEip(vpcId, networkId, ip string, projectId string) (*SEipAddress, error)
func (*SRegion) CreateFlavor ¶
func (*SRegion) CreateIBucket ¶
func (*SRegion) CreateILoadBalancer ¶
func (region *SRegion) CreateILoadBalancer(loadbalancer *cloudprovider.SLoadbalancer) (cloudprovider.ICloudLoadbalancer, error)
func (*SRegion) CreateILoadBalancerAcl ¶
func (region *SRegion) CreateILoadBalancerAcl(acl *cloudprovider.SLoadbalancerAccessControlList) (cloudprovider.ICloudLoadbalancerAcl, error)
func (*SRegion) CreateILoadBalancerCertificate ¶
func (region *SRegion) CreateILoadBalancerCertificate(cert *cloudprovider.SLoadbalancerCertificate) (cloudprovider.ICloudLoadbalancerCertificate, error)
func (*SRegion) CreateISecurityGroup ¶
func (region *SRegion) CreateISecurityGroup(conf *cloudprovider.SecurityGroupCreateInput) (cloudprovider.ICloudSecurityGroup, error)
func (*SRegion) CreateISku ¶
func (region *SRegion) CreateISku(opts *cloudprovider.SServerSkuCreateOption) (cloudprovider.ICloudSku, error)
func (*SRegion) CreateIVpc ¶
func (region *SRegion) CreateIVpc(opts *cloudprovider.VpcCreateOptions) (cloudprovider.ICloudVpc, error)
func (*SRegion) CreateImage ¶
func (*SRegion) CreateKeypair ¶
func (*SRegion) CreateLoadBalancer ¶
func (region *SRegion) CreateLoadBalancer(loadbalancer *cloudprovider.SLoadbalancer) (*SLoadbalancer, error)
func (*SRegion) CreateLoadBalancerAcl ¶
func (region *SRegion) CreateLoadBalancerAcl(acl *cloudprovider.SLoadbalancerAccessControlList) (*SLoadbalancerAcl, error)
func (*SRegion) CreateLoadbalancerHealthmonitor ¶
func (region *SRegion) CreateLoadbalancerHealthmonitor(poolId string, healthcheck *cloudprovider.SLoadbalancerHealthCheck) (*SLoadbalancerHealthmonitor, error)
func (*SRegion) CreateLoadbalancerL7Policy ¶
func (region *SRegion) CreateLoadbalancerL7Policy(listenerId string, rule *cloudprovider.SLoadbalancerListenerRule) (*SLoadbalancerL7Policy, error)
func (*SRegion) CreateLoadbalancerL7Rule ¶
func (region *SRegion) CreateLoadbalancerL7Rule(l7policyId string, rule *cloudprovider.SLoadbalancerListenerRule) (*SLoadbalancerL7Rule, error)
func (*SRegion) CreateLoadbalancerListener ¶
func (region *SRegion) CreateLoadbalancerListener(loadbalancerId string, listenerParams *cloudprovider.SLoadbalancerListener) (*SLoadbalancerListener, error)
func (*SRegion) CreateLoadbalancerMember ¶
func (region *SRegion) CreateLoadbalancerMember(poolId, serverId string, weight, port int) (*SLoadbalancerMember, error)
serverId 转ip,对接不准确
func (*SRegion) CreateLoadbalancerPool ¶
func (region *SRegion) CreateLoadbalancerPool(group *cloudprovider.SLoadbalancerBackendGroup) (*SLoadbalancerPool, error)
func (*SRegion) CreateNetwork ¶
func (*SRegion) CreateSecurityGroup ¶
func (region *SRegion) CreateSecurityGroup(projectId, name, description string) (*SSecurityGroup, error)
func (*SRegion) CreateSnapshot ¶
func (*SRegion) DeleteDisk ¶
func (*SRegion) DeleteFlavor ¶
func (*SRegion) DeleteIBucket ¶
func (*SRegion) DeleteImage ¶
func (*SRegion) DeleteKeypair ¶
func (*SRegion) DeleteLoadBalancerPool ¶
func (*SRegion) DeleteLoadbalancer ¶
func (*SRegion) DeleteLoadbalancerHealthmonitor ¶
func (*SRegion) DeleteLoadbalancerListener ¶
func (*SRegion) DeleteLoadbalancerListenerL7policy ¶
func (*SRegion) DeleteLoadbalancerMember ¶
func (*SRegion) DeleteMigration ¶
仅live-migration
func (*SRegion) DeleteNetwork ¶
func (*SRegion) DeleteSecurityGroup ¶
func (*SRegion) DeleteSnapshot ¶
func (*SRegion) DetachDisk ¶
func (*SRegion) DisassociateEip ¶
func (*SRegion) ForceCompleteMigration ¶
仅live-migration
func (*SRegion) GetAggregates ¶
func (region *SRegion) GetAggregates() ([]SAggregate, error)
func (*SRegion) GetCapabilities ¶
func (*SRegion) GetCinderServices ¶
func (region *SRegion) GetCinderServices() ([]SCinderService, error)
func (*SRegion) GetClient ¶
func (region *SRegion) GetClient() *SOpenStackClient
func (*SRegion) GetCloudEnv ¶
func (*SRegion) GetEipByIp ¶
func (region *SRegion) GetEipByIp(ip string) (*SEipAddress, error)
func (*SRegion) GetFlavors ¶
func (*SRegion) GetGeographicInfo ¶
func (region *SRegion) GetGeographicInfo() cloudprovider.SGeographicInfo
func (*SRegion) GetGlobalId ¶
func (*SRegion) GetHypervisor ¶
func (region *SRegion) GetHypervisor(id string) (*SHypervisor, error)
func (*SRegion) GetHypervisors ¶
func (region *SRegion) GetHypervisors() ([]SHypervisor, error)
func (*SRegion) GetI18n ¶
func (region *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) GetICloudQuotas ¶
func (region *SRegion) GetICloudQuotas() ([]cloudprovider.ICloudQuota, error)
func (*SRegion) GetIDiskById ¶
func (region *SRegion) GetIDiskById(id string) (cloudprovider.ICloudDisk, error)
func (*SRegion) GetIEipById ¶
func (region *SRegion) GetIEipById(eipId string) (cloudprovider.ICloudEIP, error)
func (*SRegion) GetIHostById ¶
func (region *SRegion) GetIHostById(id string) (cloudprovider.ICloudHost, error)
func (*SRegion) GetIHosts ¶
func (region *SRegion) GetIHosts() ([]cloudprovider.ICloudHost, error)
func (*SRegion) GetILoadBalancerAclById ¶
func (region *SRegion) GetILoadBalancerAclById(aclId string) (cloudprovider.ICloudLoadbalancerAcl, error)
func (*SRegion) GetILoadBalancerAcls ¶
func (region *SRegion) GetILoadBalancerAcls() ([]cloudprovider.ICloudLoadbalancerAcl, error)
func (*SRegion) GetILoadBalancerBackendGroups ¶
func (region *SRegion) GetILoadBalancerBackendGroups() ([]cloudprovider.ICloudLoadbalancerBackendGroup, error)
func (*SRegion) GetILoadBalancerById ¶
func (region *SRegion) GetILoadBalancerById(loadbalancerId string) (cloudprovider.ICloudLoadbalancer, error)
func (*SRegion) GetILoadBalancerCertificateById ¶
func (region *SRegion) GetILoadBalancerCertificateById(certId string) (cloudprovider.ICloudLoadbalancerCertificate, error)
func (*SRegion) GetILoadBalancerCertificates ¶
func (region *SRegion) GetILoadBalancerCertificates() ([]cloudprovider.ICloudLoadbalancerCertificate, error)
func (*SRegion) GetILoadBalancers ¶
func (region *SRegion) GetILoadBalancers() ([]cloudprovider.ICloudLoadbalancer, error)
func (*SRegion) GetINetworkInterfaces ¶
func (region *SRegion) GetINetworkInterfaces() ([]cloudprovider.ICloudNetworkInterface, error)
func (*SRegion) GetISecurityGroupById ¶
func (region *SRegion) GetISecurityGroupById(secgroupId string) (cloudprovider.ICloudSecurityGroup, error)
func (*SRegion) GetISecurityGroupByName ¶
func (region *SRegion) GetISecurityGroupByName(opts *cloudprovider.SecurityGroupFilterOptions) (cloudprovider.ICloudSecurityGroup, error)
func (*SRegion) GetISnapshotById ¶
func (region *SRegion) GetISnapshotById(snapshotId string) (cloudprovider.ICloudSnapshot, error)
func (*SRegion) GetISnapshots ¶
func (region *SRegion) GetISnapshots() ([]cloudprovider.ICloudSnapshot, error)
func (*SRegion) GetIStorageById ¶
func (region *SRegion) GetIStorageById(id string) (cloudprovider.ICloudStorage, error)
func (*SRegion) GetIStoragecacheById ¶
func (region *SRegion) GetIStoragecacheById(id string) (cloudprovider.ICloudStoragecache, error)
func (*SRegion) GetIStoragecaches ¶
func (region *SRegion) GetIStoragecaches() ([]cloudprovider.ICloudStoragecache, error)
func (*SRegion) GetIStorages ¶
func (region *SRegion) GetIStorages() ([]cloudprovider.ICloudStorage, error)
func (*SRegion) GetIVMById ¶
func (region *SRegion) GetIVMById(id string) (cloudprovider.ICloudVM, error)
func (*SRegion) GetIVpcById ¶
func (region *SRegion) GetIVpcById(id string) (cloudprovider.ICloudVpc, error)
func (*SRegion) GetIZoneById ¶
func (region *SRegion) GetIZoneById(id string) (cloudprovider.ICloudZone, error)
func (*SRegion) GetIZones ¶
func (region *SRegion) GetIZones() ([]cloudprovider.ICloudZone, error)
func (*SRegion) GetImageByName ¶
func (*SRegion) GetImageStatus ¶
func (*SRegion) GetInstance ¶
func (*SRegion) GetInstanceMetadata ¶
func (*SRegion) GetInstancePorts ¶
func (region *SRegion) GetInstancePorts(instanceId string) ([]SInstancePort, error)
func (*SRegion) GetInstanceVNC ¶
func (region *SRegion) GetInstanceVNC(instanceId string, origin bool) (*cloudprovider.ServerVncOutput, error)
func (*SRegion) GetInstanceVNCUrl ¶
func (region *SRegion) GetInstanceVNCUrl(instanceId string, origin bool) (*cloudprovider.ServerVncOutput, error)
func (*SRegion) GetInstances ¶
func (*SRegion) GetKeypairs ¶
func (*SRegion) GetLoadBalancerAcls ¶
func (region *SRegion) GetLoadBalancerAcls() ([]SLoadbalancerAcl, error)
func (*SRegion) GetLoadbalancerAclDetail ¶
func (region *SRegion) GetLoadbalancerAclDetail(aclId string) (*SLoadbalancerAcl, error)
func (*SRegion) GetLoadbalancerHealthmonitorById ¶
func (region *SRegion) GetLoadbalancerHealthmonitorById(healthmonitorId string) (*SLoadbalancerHealthmonitor, error)
func (*SRegion) GetLoadbalancerL7PolicybyId ¶
func (region *SRegion) GetLoadbalancerL7PolicybyId(policieId string) (*SLoadbalancerL7Policy, error)
func (*SRegion) GetLoadbalancerL7RulebyId ¶
func (region *SRegion) GetLoadbalancerL7RulebyId(policyId string, l7ruleId string) (*SLoadbalancerL7Rule, error)
func (*SRegion) GetLoadbalancerL7Rules ¶
func (region *SRegion) GetLoadbalancerL7Rules(policyId string) ([]SLoadbalancerL7Rule, error)
func (*SRegion) GetLoadbalancerListenerbyId ¶
func (region *SRegion) GetLoadbalancerListenerbyId(listenerId string) (*SLoadbalancerListener, error)
func (*SRegion) GetLoadbalancerListeners ¶
func (region *SRegion) GetLoadbalancerListeners() ([]SLoadbalancerListener, error)
func (*SRegion) GetLoadbalancerMenberById ¶
func (region *SRegion) GetLoadbalancerMenberById(poolId string, MenberId string) (*SLoadbalancerMember, error)
func (*SRegion) GetLoadbalancerMenbers ¶
func (region *SRegion) GetLoadbalancerMenbers(poolId string) ([]SLoadbalancerMember, error)
func (*SRegion) GetLoadbalancerPoolById ¶
func (region *SRegion) GetLoadbalancerPoolById(poolId string) (*SLoadbalancerPool, error)
func (*SRegion) GetLoadbalancerPools ¶
func (region *SRegion) GetLoadbalancerPools() ([]SLoadbalancerPool, error)
func (*SRegion) GetLoadbalancerbyId ¶
func (region *SRegion) GetLoadbalancerbyId(loadbalancerId string) (*SLoadbalancer, error)
func (*SRegion) GetLoadbalancers ¶
func (region *SRegion) GetLoadbalancers() ([]SLoadbalancer, error)
func (*SRegion) GetMaxVersion ¶
func (*SRegion) GetMessages ¶
func (*SRegion) GetMigrations ¶
func (*SRegion) GetProvider ¶
func (*SRegion) GetRouters ¶
func (*SRegion) GetSchedulerStatsPool ¶
func (*SRegion) GetSecurityGroup ¶
func (region *SRegion) GetSecurityGroup(secgroupId string) (*SSecurityGroup, error)
func (*SRegion) GetSecurityGroups ¶
func (region *SRegion) GetSecurityGroups(projectId, name string) ([]SSecurityGroup, error)
func (*SRegion) GetSecurityGroupsByInstance ¶
func (region *SRegion) GetSecurityGroupsByInstance(instanceId string) ([]SecurityGroup, error)
func (*SRegion) GetSnapshots ¶
func (*SRegion) GetStorageTypes ¶
func (*SRegion) IsEmulated ¶
func (*SRegion) IsStorageAvailable ¶
func (*SRegion) ListServerMigration ¶
仅live-migration
func (*SRegion) LiveMigrateVM ¶
func (*SRegion) RenewInstances ¶
func (region *SRegion) RenewInstances(instanceId []string, bc billing.SBillingCycle) error
func (*SRegion) ReplaceSystemDisk ¶
func (*SRegion) SyncFlavor ¶
func (*SRegion) UpdateLoadBalancerAdminStateUp ¶
func (*SRegion) UpdateLoadBalancerListener ¶
func (region *SRegion) UpdateLoadBalancerListener(loadbalancerListenerId string, lblis *cloudprovider.SLoadbalancerListener) error
func (*SRegion) UpdateLoadBalancerListenerAdminStateUp ¶
func (*SRegion) UpdateLoadBalancerMemberWtight ¶
func (*SRegion) UpdateLoadBalancerPool ¶
func (region *SRegion) UpdateLoadBalancerPool(poolId string, group *cloudprovider.SLoadbalancerBackendGroup) error
func (*SRegion) UpdateLoadbalancerHealthmonitor ¶
func (region *SRegion) UpdateLoadbalancerHealthmonitor(healthmonitorId string, healthcheck *cloudprovider.SLoadbalancerHealthCheck) (*SLoadbalancerHealthmonitor, error)
type SRouteEntry ¶
type SRouteEntry struct { multicloud.SResourceBase OpenStackTags Destination string `json:"destination"` Nexthop string `json:"nexthop"` }
func (*SRouteEntry) GetCidr ¶
func (route *SRouteEntry) GetCidr() string
func (*SRouteEntry) GetGlobalId ¶
func (route *SRouteEntry) GetGlobalId() string
func (*SRouteEntry) GetId ¶
func (route *SRouteEntry) GetId() string
func (*SRouteEntry) GetName ¶
func (route *SRouteEntry) GetName() string
func (*SRouteEntry) GetNextHop ¶
func (route *SRouteEntry) GetNextHop() string
func (*SRouteEntry) GetNextHopType ¶
func (route *SRouteEntry) GetNextHopType() string
func (*SRouteEntry) GetStatus ¶
func (route *SRouteEntry) GetStatus() string
func (*SRouteEntry) GetType ¶
func (route *SRouteEntry) GetType() string
func (*SRouteEntry) IsEmulated ¶
func (route *SRouteEntry) IsEmulated() bool
func (*SRouteEntry) Refresh ¶
func (route *SRouteEntry) Refresh() error
type SRouteTable ¶
type SRouteTable struct { multicloud.SResourceBase OpenStackTags // 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 SRouter ¶
type SRouter struct { AdminStateUp bool `json:"admin_state_up"` Description string `json:"description"` FlavorId string `json:"flavor_id"` Id string `json:"id"` Name string `json:"name"` Routes []SRouteEntry `json:"routes"` Status string `json:"status"` ProjectId string `json:"project_id"` TenantId string `json:"tenant_id"` Tags []string `json:"tags"` ConntrackHelpers []SConntrackHelper `json:"conntrack_helpers"` ExternalGatewayInfo SExternalGatewayInfo `json:"external_gateway_info"` // contains filtered or unexported fields }
type SSecurityGroup ¶
type SSecurityGroup struct { multicloud.SSecurityGroup OpenStackTags Description string Id string Name string SecurityGroupRules []SSecurityGroupRule ProjectId string RevisionNumber int CreatedAt time.Time UpdatedAt time.Time Tags []string TenantId string // contains filtered or unexported fields }
func (*SSecurityGroup) Delete ¶
func (secgroup *SSecurityGroup) Delete() error
func (*SSecurityGroup) GetDescription ¶
func (secgroup *SSecurityGroup) GetDescription() string
func (*SSecurityGroup) GetGlobalId ¶
func (secgroup *SSecurityGroup) GetGlobalId() string
func (*SSecurityGroup) GetId ¶
func (secgroup *SSecurityGroup) GetId() string
func (*SSecurityGroup) GetName ¶
func (secgroup *SSecurityGroup) GetName() string
func (*SSecurityGroup) GetProjectId ¶
func (secgroup *SSecurityGroup) GetProjectId() string
func (*SSecurityGroup) GetRules ¶
func (secgroup *SSecurityGroup) GetRules() ([]cloudprovider.SecurityRule, error)
func (*SSecurityGroup) GetStatus ¶
func (secgroup *SSecurityGroup) GetStatus() string
func (*SSecurityGroup) GetVpcId ¶
func (secgroup *SSecurityGroup) GetVpcId() string
func (*SSecurityGroup) IsEmulated ¶
func (secgroup *SSecurityGroup) IsEmulated() bool
func (*SSecurityGroup) Refresh ¶
func (secgroup *SSecurityGroup) Refresh() error
func (*SSecurityGroup) SyncRules ¶
func (secgroup *SSecurityGroup) SyncRules(common, inAdds, outAdds, inDels, outDels []cloudprovider.SecurityRule) error
type SSecurityGroupRule ¶
type SSecurityGroupRule struct { Direction string Ethertype string Id string PortRangeMax int PortRangeMin int Protocol string RemoteGroupId string RemoteIpPrefix string SecurityGroupId string ProjectId string RevisionNumber int Tags []string TenantId string CreatedAt time.Time UpdatedAt time.Time Description string }
type SSessionPersistence ¶
type SSnapshot ¶
type SSnapshot struct { multicloud.SResourceBase OpenStackTags Id string VolumeId string Status string Progress string `json:"os-extended-snapshot-attributes:progress"` Name string UserId string ProjectId string `json:"os-extended-snapshot-attributes:project_id"` //CreatedAt time.Time Size int32 Description string // contains filtered or unexported fields }
func (*SSnapshot) GetDiskType ¶
func (*SSnapshot) GetGlobalId ¶
func (*SSnapshot) GetProjectId ¶
func (*SSnapshot) IsEmulated ¶
type SStorage ¶
type SStorage struct { multicloud.SStorageBase Name string ExtraSpecs SExtraSpecs ID string // contains filtered or unexported fields }
func (*SStorage) CreateIDisk ¶
func (storage *SStorage) CreateIDisk(conf *cloudprovider.DiskCreateConfig) (cloudprovider.ICloudDisk, error)
func (*SStorage) GetCapacityMB ¶
func (*SStorage) GetCapacityUsedMB ¶
func (*SStorage) GetEnabled ¶
func (*SStorage) GetGlobalId ¶
func (*SStorage) GetIDiskById ¶
func (storage *SStorage) GetIDiskById(idStr string) (cloudprovider.ICloudDisk, error)
func (*SStorage) GetIDisks ¶
func (storage *SStorage) GetIDisks() ([]cloudprovider.ICloudDisk, error)
func (*SStorage) GetIStoragecache ¶
func (storage *SStorage) GetIStoragecache() cloudprovider.ICloudStoragecache
func (*SStorage) GetIZone ¶
func (storage *SStorage) GetIZone() cloudprovider.ICloudZone
func (*SStorage) GetMediumType ¶
func (*SStorage) GetMountPoint ¶
func (*SStorage) GetStorageConf ¶
func (storage *SStorage) GetStorageConf() jsonutils.JSONObject
func (*SStorage) GetStorageType ¶
func (*SStorage) IsEmulated ¶
func (*SStorage) IsSysDiskStore ¶
type SStoragecache ¶
type SStoragecache struct { multicloud.SResourceBase OpenStackTags // contains filtered or unexported fields }
func (*SStoragecache) CreateIImage ¶
func (cache *SStoragecache) CreateIImage(snapshoutId, imageName, osType, imageDesc string) (cloudprovider.ICloudImage, error)
func (*SStoragecache) DownloadImage ¶
func (cache *SStoragecache) DownloadImage(userCred mcclient.TokenCredential, imageId string, extId string, path string) (jsonutils.JSONObject, error)
func (*SStoragecache) GetGlobalId ¶
func (cache *SStoragecache) GetGlobalId() string
func (*SStoragecache) GetICloudImages ¶
func (cache *SStoragecache) GetICloudImages() ([]cloudprovider.ICloudImage, error)
func (*SStoragecache) GetICustomizedCloudImages ¶
func (cache *SStoragecache) GetICustomizedCloudImages() ([]cloudprovider.ICloudImage, error)
func (*SStoragecache) GetIImageById ¶
func (cache *SStoragecache) GetIImageById(extId string) (cloudprovider.ICloudImage, error)
func (*SStoragecache) GetId ¶
func (cache *SStoragecache) GetId() string
func (*SStoragecache) GetName ¶
func (cache *SStoragecache) GetName() string
func (*SStoragecache) GetPath ¶
func (cache *SStoragecache) GetPath() string
func (*SStoragecache) GetStatus ¶
func (cache *SStoragecache) GetStatus() string
func (*SStoragecache) IsEmulated ¶
func (cache *SStoragecache) IsEmulated() bool
func (*SStoragecache) Refresh ¶
func (cache *SStoragecache) Refresh() error
func (*SStoragecache) UploadImage ¶
func (cache *SStoragecache) UploadImage(ctx context.Context, userCred mcclient.TokenCredential, image *cloudprovider.SImageCreateOption, callback func(progress float32)) (string, error)
type SVpc ¶
type SVpc struct { multicloud.SVpc OpenStackTags AdminStateUp bool AvailabilityZoneHints []string AvailabilityZones []string CreatedAt time.Time DnsDomain string Id string Ipv4AddressScope string Ipv6AddressScope string L2Adjacency bool Mtu int Name string PortSecurityEnabled bool ProjectID string QosPolicyID string RevisionNumber int External bool `json:"router:external"` Status string Subnets []string TenantID string UpdatedAt time.Time VlanTransparent bool Fescription string IsDefault bool NetworkType string `json:"provider:network_type"` // flat, vlan, vxlan, or gre ... PhysicalNetwork string `json:"provider:physical_network"` SegmentationId string `json:"provider:segmentation_id"` // contains filtered or unexported fields }
func (*SVpc) GetCidrBlock ¶
func (*SVpc) GetGlobalId ¶
func (*SVpc) GetIRouteTableById ¶
func (self *SVpc) GetIRouteTableById(routeTableId string) (cloudprovider.ICloudRouteTable, error)
func (*SVpc) GetIRouteTables ¶
func (vpc *SVpc) GetIRouteTables() ([]cloudprovider.ICloudRouteTable, error)
func (*SVpc) GetISecurityGroups ¶
func (vpc *SVpc) GetISecurityGroups() ([]cloudprovider.ICloudSecurityGroup, error)
func (*SVpc) GetIWireById ¶
func (vpc *SVpc) GetIWireById(wireId string) (cloudprovider.ICloudWire, error)
func (*SVpc) GetIWires ¶
func (vpc *SVpc) GetIWires() ([]cloudprovider.ICloudWire, error)
func (*SVpc) GetIsDefault ¶
func (*SVpc) GetRegion ¶
func (vpc *SVpc) GetRegion() cloudprovider.ICloudRegion
func (*SVpc) IsEmulated ¶
type SWire ¶
type SWire struct { multicloud.SResourceBase OpenStackTags // contains filtered or unexported fields }
func (*SWire) CreateINetwork ¶
func (wire *SWire) CreateINetwork(opts *cloudprovider.SNetworkCreateOptions) (cloudprovider.ICloudNetwork, error)
func (*SWire) GetBandwidth ¶
func (*SWire) GetGlobalId ¶
func (*SWire) GetINetworkById ¶
func (wire *SWire) GetINetworkById(netid string) (cloudprovider.ICloudNetwork, error)
func (*SWire) GetINetworks ¶
func (wire *SWire) GetINetworks() ([]cloudprovider.ICloudNetwork, error)
func (*SWire) GetIVpc ¶
func (wire *SWire) GetIVpc() cloudprovider.ICloudVpc
func (*SWire) GetIZone ¶
func (wire *SWire) GetIZone() cloudprovider.ICloudZone
func (*SWire) IsEmulated ¶
type SZone ¶
type SZone struct { multicloud.SResourceBase OpenStackTags ZoneName string ZoneState ZoneState Hosts map[string]jsonutils.JSONObject // contains filtered or unexported fields }
func (*SZone) CreateVM ¶
func (zone *SZone) CreateVM(hypervisor string, opts *cloudprovider.SManagedVMCreateConfig) (*SInstance, error)
func (*SZone) GetGlobalId ¶
func (*SZone) GetI18n ¶
func (zone *SZone) GetI18n() cloudprovider.SModelI18nTable
func (*SZone) GetIHostById ¶
func (zone *SZone) GetIHostById(id string) (cloudprovider.ICloudHost, error)
func (*SZone) GetIHosts ¶
func (zone *SZone) GetIHosts() ([]cloudprovider.ICloudHost, error)
func (*SZone) GetIRegion ¶
func (zone *SZone) GetIRegion() cloudprovider.ICloudRegion
func (*SZone) GetIStorageById ¶
func (zone *SZone) GetIStorageById(id string) (cloudprovider.ICloudStorage, error)
func (*SZone) GetIStorages ¶
func (zone *SZone) GetIStorages() ([]cloudprovider.ICloudStorage, error)
func (*SZone) IsEmulated ¶
type SecurityGroup ¶
type VolumeImageMetadata ¶
type VolumesAttached ¶
Source Files ¶
- disk.go
- doc.go
- eip.go
- flavor.go
- host.go
- hypervisor.go
- image.go
- instance.go
- instancenic.go
- keypaire.go
- loadbalabcerpool.go
- loadbalanceracl.go
- loadbalancerl7policy.go
- loadbalancerl7rule.go
- loadbalancerlistener.go
- loadbalancermember.go
- loadbalbacer.go
- loadbalbancerhealthmonitor.go
- message.go
- network.go
- nova_disk.go
- novastorage.go
- openstack.go
- port.go
- project.go
- quota.go
- region.go
- roles.go
- router.go
- routetable.go
- securitygroup.go
- snapshot.go
- storage.go
- storagecache.go
- tag_base.go
- vpc.go
- wire.go
- zone.go
Click to show internal directories.
Click to hide internal directories.