cloudpods

package
v0.3.11-8 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2024 License: Apache-2.0, Apache-2.0 Imports: 31 Imported by: 6

Documentation

Index

Constants

View Source
const (
	CLOUD_PROVIDER_CLOUDPODS = api.CLOUD_PROVIDER_CLOUDPODS

	CLOUDPODS_DEFAULT_REGION = "default"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudpodsClientConfig

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

func NewCloudpodsClientConfig

func NewCloudpodsClientConfig(authURL, accessKey, accessSecret string) *CloudpodsClientConfig

func (*CloudpodsClientConfig) CloudproviderConfig

func (*CloudpodsClientConfig) Debug

type CloudpodsTags

type CloudpodsTags struct {
	Metadata map[string]string
}

func (*CloudpodsTags) GetSysTags

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

func (*CloudpodsTags) GetTags

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

func (*CloudpodsTags) SetTags

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

type ModelManager

type ModelManager interface {
	List(session *mcclient.ClientSession, params jsonutils.JSONObject) (*printutils.ListResult, error)
	Create(session *mcclient.ClientSession, params jsonutils.JSONObject) (jsonutils.JSONObject, error)
	Delete(session *mcclient.ClientSession, id string, param jsonutils.JSONObject) (jsonutils.JSONObject, error)
	DeleteWithParam(session *mcclient.ClientSession, id string, query jsonutils.JSONObject, body jsonutils.JSONObject) (jsonutils.JSONObject, error)
	PerformAction(session *mcclient.ClientSession, id string, action string, params jsonutils.JSONObject) (jsonutils.JSONObject, error)
	Get(session *mcclient.ClientSession, id string, params jsonutils.JSONObject) (jsonutils.JSONObject, error)
	Update(session *mcclient.ClientSession, id string, params jsonutils.JSONObject) (jsonutils.JSONObject, error)
	GetKeyword() string
}

type SCloudpodsClient

type SCloudpodsClient struct {
	*CloudpodsClientConfig
	// contains filtered or unexported fields
}

func NewCloudpodsClient

func NewCloudpodsClient(cfg *CloudpodsClientConfig) (*SCloudpodsClient, error)

func (*SCloudpodsClient) GetAccountId

func (self *SCloudpodsClient) GetAccountId() string

func (*SCloudpodsClient) GetCapabilities

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

func (*SCloudpodsClient) GetCloudRegionExternalIdPrefix

func (self *SCloudpodsClient) GetCloudRegionExternalIdPrefix() string

func (*SCloudpodsClient) GetIProjects

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

func (*SCloudpodsClient) GetIRegionById

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

func (*SCloudpodsClient) GetIRegions

func (self *SCloudpodsClient) GetIRegions() ([]cloudprovider.ICloudRegion, error)

func (*SCloudpodsClient) GetMetrics

func (*SCloudpodsClient) GetProjects

func (self *SCloudpodsClient) GetProjects() ([]SProject, error)

func (*SCloudpodsClient) GetRegion

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

func (*SCloudpodsClient) GetRegions

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

func (*SCloudpodsClient) GetSubAccounts

func (self *SCloudpodsClient) GetSubAccounts() ([]cloudprovider.SSubAccount, error)

func (*SCloudpodsClient) GetVersion

func (self *SCloudpodsClient) GetVersion() string

type SDisk

type SDisk struct {
	multicloud.SVirtualResourceBase
	multicloud.SBillingBase
	CloudpodsTags

	api.DiskDetails
	// contains filtered or unexported fields
}

func (*SDisk) CreateISnapshot

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

func (*SDisk) Delete

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

func (*SDisk) GetAccessPath

func (self *SDisk) GetAccessPath() string

func (*SDisk) GetCacheMode

func (self *SDisk) GetCacheMode() string

func (*SDisk) GetCreatedAt

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

func (*SDisk) GetDiskFormat

func (self *SDisk) GetDiskFormat() string

func (*SDisk) GetDiskSizeMB

func (self *SDisk) GetDiskSizeMB() int

func (*SDisk) GetDiskType

func (self *SDisk) GetDiskType() string

func (*SDisk) GetDriver

func (self *SDisk) GetDriver() string

func (*SDisk) GetExpiredAt

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

func (*SDisk) GetExtSnapshotPolicyIds

func (self *SDisk) GetExtSnapshotPolicyIds() ([]string, error)

func (*SDisk) GetFsFormat

func (self *SDisk) GetFsFormat() string

func (*SDisk) GetGlobalId

func (self *SDisk) GetGlobalId() string

func (*SDisk) GetISnapshots

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

func (*SDisk) GetIStorage

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

func (*SDisk) GetIStorageId

func (self *SDisk) GetIStorageId() string

func (*SDisk) GetId

func (self *SDisk) GetId() string

func (*SDisk) GetIops

func (self *SDisk) GetIops() int

func (*SDisk) GetIsAutoDelete

func (self *SDisk) GetIsAutoDelete() bool

func (*SDisk) GetIsNonPersistent

func (self *SDisk) GetIsNonPersistent() bool

func (*SDisk) GetMountpoint

func (self *SDisk) GetMountpoint() string

func (*SDisk) GetName

func (self *SDisk) GetName() string

func (*SDisk) GetPreallocation

func (self *SDisk) GetPreallocation() string

func (*SDisk) GetStatus

func (self *SDisk) GetStatus() string

func (*SDisk) GetTemplateId

func (self *SDisk) GetTemplateId() string

func (*SDisk) Rebuild

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

func (*SDisk) Refresh

func (self *SDisk) Refresh() error

func (*SDisk) Reset

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

func (*SDisk) Resize

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

type SEip

type SEip struct {
	multicloud.SVirtualResourceBase
	multicloud.SBillingBase
	CloudpodsTags

	api.ElasticipDetails
	// contains filtered or unexported fields
}

func (*SEip) Associate

func (self *SEip) Associate(opts *cloudprovider.AssociateConfig) error

func (*SEip) ChangeBandwidth

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

func (*SEip) Delete

func (self *SEip) Delete() error

func (*SEip) Dissociate

func (self *SEip) Dissociate() error

func (*SEip) GetAssociationExternalId

func (self *SEip) GetAssociationExternalId() string

func (*SEip) GetAssociationType

func (self *SEip) GetAssociationType() string

func (*SEip) GetBandwidth

func (self *SEip) GetBandwidth() int

func (*SEip) GetBillingType

func (self *SEip) GetBillingType() string

func (*SEip) GetCreatedAt

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

func (*SEip) GetExpiredAt

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

func (*SEip) GetGlobalId

func (self *SEip) GetGlobalId() string

func (*SEip) GetINetworkId

func (self *SEip) GetINetworkId() string

func (*SEip) GetId

func (self *SEip) GetId() string

func (*SEip) GetInternetChargeType

func (self *SEip) GetInternetChargeType() string

func (*SEip) GetIpAddr

func (self *SEip) GetIpAddr() string

func (*SEip) GetMode

func (self *SEip) GetMode() string

func (*SEip) GetName

func (self *SEip) GetName() string

func (*SEip) GetProjectId

func (self *SEip) GetProjectId() string

func (*SEip) GetStatus

func (self *SEip) GetStatus() string

func (*SEip) IsAutoRenew

func (self *SEip) IsAutoRenew() bool

func (*SEip) Refresh

func (self *SEip) Refresh() error

type SHost

type SHost struct {
	multicloud.SHostBase

	api.HostDetails
	// contains filtered or unexported fields
}

func (*SHost) CreateVM

func (*SHost) GetAccessIp

func (host *SHost) GetAccessIp() string

func (*SHost) GetAccessMac

func (host *SHost) GetAccessMac() string

func (*SHost) GetCpuCmtbound

func (host *SHost) GetCpuCmtbound() float32

func (*SHost) GetCpuCount

func (host *SHost) GetCpuCount() int

func (*SHost) GetCpuDesc

func (host *SHost) GetCpuDesc() string

func (*SHost) GetCpuMhz

func (host *SHost) GetCpuMhz() int

func (*SHost) GetEnabled

func (host *SHost) GetEnabled() bool

func (*SHost) GetGlobalId

func (host *SHost) GetGlobalId() string

func (*SHost) GetHostStatus

func (host *SHost) GetHostStatus() string

func (*SHost) GetHostType

func (host *SHost) GetHostType() string

func (*SHost) GetIHostNics

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

func (*SHost) GetIStorageById

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

func (*SHost) GetIStorages

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

func (*SHost) GetIVMById

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

func (*SHost) GetIVMs

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

func (*SHost) GetId

func (host *SHost) GetId() string

func (*SHost) GetIsMaintenance

func (host *SHost) GetIsMaintenance() bool

func (*SHost) GetMemCmtbound

func (host *SHost) GetMemCmtbound() float32

func (*SHost) GetMemSizeMB

func (host *SHost) GetMemSizeMB() int

func (*SHost) GetName

func (host *SHost) GetName() string

func (*SHost) GetNodeCount

func (host *SHost) GetNodeCount() int8

func (*SHost) GetOvnVersion

func (host *SHost) GetOvnVersion() string

func (*SHost) GetReservedMemoryMb

func (host *SHost) GetReservedMemoryMb() int

func (*SHost) GetSN

func (host *SHost) GetSN() string

func (*SHost) GetSchedtags

func (host *SHost) GetSchedtags() ([]string, error)

func (*SHost) GetStatus

func (host *SHost) GetStatus() string

func (*SHost) GetStorageSizeMB

func (host *SHost) GetStorageSizeMB() int64

func (*SHost) GetStorageType

func (host *SHost) GetStorageType() string

func (*SHost) GetSysInfo

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

func (*SHost) GetVersion

func (host *SHost) GetVersion() string

func (*SHost) Refresh

func (host *SHost) Refresh() error

type SHostNic

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

func (*SHostNic) GetBridge

func (hn *SHostNic) GetBridge() string

func (*SHostNic) GetDevice

func (hn *SHostNic) GetDevice() string

func (*SHostNic) GetDriver

func (hn *SHostNic) GetDriver() string

func (*SHostNic) GetIWire

func (hn *SHostNic) GetIWire() cloudprovider.ICloudWire

func (*SHostNic) GetIndex

func (hn *SHostNic) GetIndex() int8

func (*SHostNic) GetIpAddr

func (hn *SHostNic) GetIpAddr() string

func (*SHostNic) GetMac

func (hn *SHostNic) GetMac() string

func (*SHostNic) GetMtu

func (hn *SHostNic) GetMtu() int32

func (*SHostNic) GetNicType

func (hn *SHostNic) GetNicType() string

func (*SHostNic) GetVlanId

func (hn *SHostNic) GetVlanId() int

func (*SHostNic) IsLinkUp

func (hn *SHostNic) IsLinkUp() tristate.TriState

type SImage

type SImage struct {
	multicloud.SImageBase
	CloudpodsTags

	api.ImageDetails
	// contains filtered or unexported fields
}

func (*SImage) Delete

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

func (*SImage) GetBios

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

func (*SImage) GetCreatedAt

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

func (*SImage) GetFullOsName

func (img *SImage) GetFullOsName() string

func (*SImage) GetGlobalId

func (self *SImage) GetGlobalId() string

func (*SImage) GetIStoragecache

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

func (*SImage) GetId

func (self *SImage) GetId() string

func (*SImage) GetImageFormat

func (self *SImage) GetImageFormat() string

func (*SImage) GetImageStatus

func (self *SImage) GetImageStatus() string

func (*SImage) GetImageType

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

func (*SImage) GetMinOsDiskSizeGb

func (self *SImage) GetMinOsDiskSizeGb() int

func (*SImage) GetMinRamSizeMb

func (self *SImage) GetMinRamSizeMb() int

func (*SImage) GetName

func (self *SImage) GetName() string

func (*SImage) GetOsArch

func (self *SImage) GetOsArch() string

func (*SImage) GetOsDist

func (self *SImage) GetOsDist() string

func (*SImage) GetOsLang

func (self *SImage) GetOsLang() string

func (*SImage) GetOsType

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

func (*SImage) GetOsVersion

func (self *SImage) GetOsVersion() string

func (*SImage) GetProjectId

func (self *SImage) GetProjectId() string

func (*SImage) GetSizeByte

func (self *SImage) GetSizeByte() int64

func (*SImage) GetStatus

func (self *SImage) GetStatus() string

func (*SImage) Refresh

func (self *SImage) Refresh() error

type SInstance

type SInstance struct {
	multicloud.SInstanceBase
	CloudpodsTags

	api.ServerDetails
	// contains filtered or unexported fields
}

func (*SInstance) AllocatePublicIpAddress

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

func (*SInstance) AttachDisk

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

func (*SInstance) ChangeConfig

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

func (*SInstance) CreateDisk

func (self *SInstance) CreateDisk(ctx context.Context, opts *cloudprovider.GuestDiskCreateOptions) (string, error)

func (*SInstance) CreateInstanceSnapshot

func (self *SInstance) CreateInstanceSnapshot(ctx context.Context, name string, desc string) (cloudprovider.ICloudInstanceSnapshot, error)

func (*SInstance) DeleteVM

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

func (*SInstance) DeployVM

func (*SInstance) DetachDisk

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

func (*SInstance) GetBios

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

func (*SInstance) GetBootOrder

func (self *SInstance) GetBootOrder() string

func (*SInstance) GetCreatedAt

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

func (*SInstance) GetDetails

func (self *SInstance) GetDetails() (*api.ServerDetails, error)

func (*SInstance) GetError

func (self *SInstance) GetError() error

func (*SInstance) GetExpiredAt

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

func (*SInstance) GetFullOsName

func (self *SInstance) GetFullOsName() string

func (*SInstance) GetGlobalId

func (self *SInstance) GetGlobalId() string

func (*SInstance) GetHostname

func (self *SInstance) GetHostname() string

func (*SInstance) GetHypervisor

func (self *SInstance) GetHypervisor() string

func (*SInstance) GetIDisks

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

func (*SInstance) GetIEIP

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

func (*SInstance) GetIHost

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

func (*SInstance) GetIHostId

func (self *SInstance) GetIHostId() string

func (*SInstance) GetINics

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

func (*SInstance) GetId

func (self *SInstance) GetId() string

func (*SInstance) GetInstanceSnapshot

func (self *SInstance) GetInstanceSnapshot(idStr string) (cloudprovider.ICloudInstanceSnapshot, error)

func (*SInstance) GetInstanceSnapshots

func (self *SInstance) GetInstanceSnapshots() ([]cloudprovider.ICloudInstanceSnapshot, error)

func (*SInstance) GetInstanceType

func (self *SInstance) GetInstanceType() string

func (*SInstance) GetMachine

func (self *SInstance) GetMachine() string

func (*SInstance) GetName

func (self *SInstance) GetName() string

func (*SInstance) GetOsArch

func (ins *SInstance) GetOsArch() string

func (*SInstance) GetOsDist

func (ins *SInstance) GetOsDist() string

func (*SInstance) GetOsLang

func (ins *SInstance) GetOsLang() string

func (*SInstance) GetOsType

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

func (*SInstance) GetOsVersion

func (ins *SInstance) GetOsVersion() string

func (*SInstance) GetProjectId

func (self *SInstance) GetProjectId() string

func (*SInstance) GetSecurityGroupIds

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

func (*SInstance) GetStatus

func (self *SInstance) GetStatus() string

func (*SInstance) GetVNCInfo

func (*SInstance) GetVcpuCount

func (self *SInstance) GetVcpuCount() int

func (*SInstance) GetVdi

func (self *SInstance) GetVdi() string

func (*SInstance) GetVga

func (self *SInstance) GetVga() string

func (*SInstance) GetVmemSizeMB

func (self *SInstance) GetVmemSizeMB() int

func (*SInstance) LiveMigrateVM

func (self *SInstance) LiveMigrateVM(hostId string) error

func (*SInstance) MigrateVM

func (self *SInstance) MigrateVM(hostId string) error

func (*SInstance) RebuildRoot

func (*SInstance) Refresh

func (self *SInstance) Refresh() error

func (*SInstance) ResetToInstanceSnapshot

func (self *SInstance) ResetToInstanceSnapshot(ctx context.Context, idStr string) error

func (*SInstance) SaveImage

func (*SInstance) SetSecurityGroups

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

func (*SInstance) StartVM

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

func (*SInstance) StopVM

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

func (*SInstance) UpdateUserData

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

func (*SInstance) UpdateVM

func (*SInstance) VMSetStatus

func (self *SInstance) VMSetStatus(status string) error

type SInstanceNic

type SInstanceNic struct {
	multicloud.SResourceBase

	api.GuestnetworkDetails
	// contains filtered or unexported fields
}

func (*SInstanceNic) AssignAddress

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

func (*SInstanceNic) AssignNAddress

func (self *SInstanceNic) AssignNAddress(count int) ([]string, error)

func (*SInstanceNic) GetDriver

func (self *SInstanceNic) GetDriver() string

func (*SInstanceNic) GetINetworkId

func (self *SInstanceNic) GetINetworkId() string

func (*SInstanceNic) GetIP

func (self *SInstanceNic) GetIP() string

func (*SInstanceNic) GetIP6

func (self *SInstanceNic) GetIP6() string

func (*SInstanceNic) GetId

func (self *SInstanceNic) GetId() string

func (*SInstanceNic) GetMAC

func (self *SInstanceNic) GetMAC() string

func (*SInstanceNic) GetSubAddress

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

func (*SInstanceNic) InClassicNetwork

func (self *SInstanceNic) InClassicNetwork() bool

func (*SInstanceNic) UnassignAddress

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

type SKeypair

type SKeypair struct {
	api.KeypairDetails
}

type SMetricData

type SMetricData struct {
	Id    string    `json:"id"`
	Time  time.Time `json:"time"`
	Value float64   `json:"value"`
}

type SNetwork

type SNetwork struct {
	multicloud.SNetworkBase
	CloudpodsTags

	api.NetworkDetails
	// contains filtered or unexported fields
}

func (*SNetwork) Delete

func (self *SNetwork) Delete() error

func (*SNetwork) GetAllocTimeoutSeconds

func (self *SNetwork) GetAllocTimeoutSeconds() int

func (*SNetwork) GetGateway

func (self *SNetwork) GetGateway() string

func (*SNetwork) GetGateway6

func (self *SNetwork) GetGateway6() string

func (*SNetwork) GetGlobalId

func (self *SNetwork) GetGlobalId() string

func (*SNetwork) GetIWire

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

func (*SNetwork) GetId

func (self *SNetwork) GetId() string

func (*SNetwork) GetIp6End

func (net *SNetwork) GetIp6End() string

func (*SNetwork) GetIp6Mask

func (net *SNetwork) GetIp6Mask() uint8

func (*SNetwork) GetIp6Start

func (net *SNetwork) GetIp6Start() string

func (*SNetwork) GetIpEnd

func (self *SNetwork) GetIpEnd() string

func (*SNetwork) GetIpMask

func (self *SNetwork) GetIpMask() int8

func (*SNetwork) GetIpStart

func (self *SNetwork) GetIpStart() string

func (*SNetwork) GetName

func (self *SNetwork) GetName() string

func (*SNetwork) GetProjectId

func (self *SNetwork) GetProjectId() string

func (*SNetwork) GetPublicScope

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

func (*SNetwork) GetServerType

func (self *SNetwork) GetServerType() string

func (*SNetwork) GetStatus

func (self *SNetwork) GetStatus() string

type SProject

type SProject struct {
	multicloud.SProjectBase
	CloudpodsTags

	api.ProjectDetails
	// contains filtered or unexported fields
}

func (*SProject) GetGlobalId

func (self *SProject) GetGlobalId() string

func (*SProject) GetId

func (self *SProject) GetId() string

func (*SProject) GetName

func (self *SProject) GetName() string

func (*SProject) GetStatus

func (self *SProject) GetStatus() string

type SRegion

func (*SRegion) CreateEIP

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

func (*SRegion) CreateISecurityGroup

func (*SRegion) CreateIVpc

func (*SRegion) CreateInstance

func (self *SRegion) CreateInstance(hostId, hypervisor string, opts *cloudprovider.SManagedVMCreateConfig) (*SInstance, error)

func (*SRegion) CreateKeypair

func (self *SRegion) CreateKeypair(name, publicKey string) (*SKeypair, error)

func (*SRegion) CreateSecRule

func (self *SRegion) CreateSecRule(secId string, opts *cloudprovider.SecurityGroupRuleCreateOptions) error

func (*SRegion) CreateWire

func (self *SRegion) CreateWire(opts *cloudprovider.SWireCreateOptions, vpcId, domainId, publicScope string, isPublic bool) (*SWire, error)

func (*SRegion) DeleteSecRule

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

func (*SRegion) GetCapabilities

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

func (*SRegion) GetClient

func (self *SRegion) GetClient() *SCloudpodsClient

func (*SRegion) GetCloudEnv

func (self *SRegion) GetCloudEnv() string

func (*SRegion) GetDisk

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

func (*SRegion) GetDisks

func (self *SRegion) GetDisks(storageId, serverId string) ([]SDisk, error)

func (*SRegion) GetEip

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

func (*SRegion) GetEips

func (self *SRegion) GetEips(associateId string) ([]SEip, error)

func (*SRegion) GetGeographicInfo

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

func (*SRegion) GetGlobalId

func (self *SRegion) GetGlobalId() string

func (*SRegion) GetGuestDisks

func (self *SRegion) GetGuestDisks(guestId string, diskId string) ([]api.GuestDiskDetails, error)

func (*SRegion) GetGuestnetworks

func (self *SRegion) GetGuestnetworks(serverId string) ([]SInstanceNic, error)

func (*SRegion) GetHost

func (region *SRegion) GetHost(id string) (*SHost, error)

func (*SRegion) GetHosts

func (region *SRegion) GetHosts(zoneId string) ([]SHost, error)

func (*SRegion) GetI18n

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

func (*SRegion) GetIDiskById

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

func (*SRegion) GetIEipById

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

func (*SRegion) GetIEips

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

func (*SRegion) GetIHostById

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

func (*SRegion) GetISecurityGroupById

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

func (*SRegion) GetISecurityGroups

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

func (*SRegion) GetISkus

func (self *SRegion) GetISkus() ([]cloudprovider.ICloudSku, error)

func (*SRegion) GetISnapshotById

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

func (*SRegion) GetISnapshots

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

func (*SRegion) GetIStorageById

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

func (*SRegion) GetIStoragecacheById

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

func (*SRegion) GetIStoragecaches

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

func (*SRegion) GetIVMById

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

func (*SRegion) GetIVpcById

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

func (*SRegion) GetIVpcs

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

func (*SRegion) GetIZoneById

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

func (*SRegion) GetIZones

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

func (*SRegion) GetId

func (self *SRegion) GetId() string

func (*SRegion) GetImage

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

func (*SRegion) GetImages

func (self *SRegion) GetImages() ([]SImage, error)

func (*SRegion) GetInstance

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

func (*SRegion) GetInstanceVnc

func (self *SRegion) GetInstanceVnc(id, name string) (*cloudprovider.ServerVncOutput, error)

func (*SRegion) GetInstances

func (self *SRegion) GetInstances(hostId string) ([]SInstance, error)

func (*SRegion) GetKeypairs

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

func (*SRegion) GetName

func (self *SRegion) GetName() string

func (*SRegion) GetNetwork

func (self *SRegion) GetNetwork(id string) (*SNetwork, error)

func (*SRegion) GetNetworks

func (self *SRegion) GetNetworks(wireId string) ([]SNetwork, error)

func (*SRegion) GetProvider

func (self *SRegion) GetProvider() string

func (*SRegion) GetSecurityGroup

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

func (*SRegion) GetSecurityGroups

func (self *SRegion) GetSecurityGroups() ([]SSecurityGroup, error)

func (*SRegion) GetServerSkus

func (self *SRegion) GetServerSkus() ([]SServerSku, error)

func (*SRegion) GetSnapshot

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

func (*SRegion) GetSnapshots

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

func (*SRegion) GetStatus

func (self *SRegion) GetStatus() string

func (*SRegion) GetStorage

func (self *SRegion) GetStorage(id string) (*SStorage, error)

func (*SRegion) GetStoragecache

func (self *SRegion) GetStoragecache(id string) (*SStoragecache, error)

func (*SRegion) GetStoragecaches

func (self *SRegion) GetStoragecaches() ([]SStoragecache, error)

func (*SRegion) GetStorages

func (self *SRegion) GetStorages(zoneId, hostId string) ([]SStorage, error)

func (*SRegion) GetVpc

func (self *SRegion) GetVpc(id string) (*SVpc, error)

func (*SRegion) GetVpcs

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

func (*SRegion) GetWire

func (self *SRegion) GetWire(id string) (*SWire, error)

func (*SRegion) GetWires

func (self *SRegion) GetWires(vpcId, hostId string) ([]SWire, error)

func (*SRegion) GetZone

func (self *SRegion) GetZone(id string) (*SZone, error)

func (*SRegion) GetZones

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

func (*SRegion) SaveImage

func (self *SRegion) SaveImage(id, imageName, notes string) (*SImage, error)

func (*SRegion) UploadImage

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

type SSecurityGroup

type SSecurityGroup struct {
	multicloud.SSecurityGroup
	CloudpodsTags

	api.SecgroupDetails
	// contains filtered or unexported fields
}

func (*SSecurityGroup) Delete

func (self *SSecurityGroup) Delete() error

func (*SSecurityGroup) GetDescription

func (self *SSecurityGroup) GetDescription() string

func (*SSecurityGroup) GetGlobalId

func (self *SSecurityGroup) GetGlobalId() string

func (*SSecurityGroup) GetId

func (self *SSecurityGroup) GetId() string

func (*SSecurityGroup) GetName

func (self *SSecurityGroup) GetName() string

func (*SSecurityGroup) GetProjectId

func (self *SSecurityGroup) GetProjectId() string

func (*SSecurityGroup) GetReferences

func (self *SSecurityGroup) GetReferences() ([]cloudprovider.SecurityGroupReference, error)

func (*SSecurityGroup) GetRules

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

func (*SSecurityGroup) GetStatus

func (self *SSecurityGroup) GetStatus() string

func (*SSecurityGroup) GetVpcId

func (self *SSecurityGroup) GetVpcId() string

type SServerSku

type SServerSku struct {
	multicloud.SResourceBase
	CloudpodsTags

	api.ServerSkuDetails
	// contains filtered or unexported fields
}

func (*SServerSku) Delete

func (self *SServerSku) Delete() error

func (*SServerSku) GetAttachedDiskCount

func (self *SServerSku) GetAttachedDiskCount() int

func (*SServerSku) GetAttachedDiskSizeGB

func (self *SServerSku) GetAttachedDiskSizeGB() int

func (*SServerSku) GetAttachedDiskType

func (self *SServerSku) GetAttachedDiskType() string

func (*SServerSku) GetCpuArch

func (self *SServerSku) GetCpuArch() string

func (*SServerSku) GetCpuCoreCount

func (self *SServerSku) GetCpuCoreCount() int

func (*SServerSku) GetDataDiskMaxCount

func (self *SServerSku) GetDataDiskMaxCount() int

func (*SServerSku) GetDataDiskTypes

func (self *SServerSku) GetDataDiskTypes() string

func (*SServerSku) GetGlobalId

func (self *SServerSku) GetGlobalId() string

func (*SServerSku) GetGpuAttachable

func (self *SServerSku) GetGpuAttachable() bool

func (*SServerSku) GetGpuCount

func (self *SServerSku) GetGpuCount() string

func (*SServerSku) GetGpuMaxCount

func (self *SServerSku) GetGpuMaxCount() int

func (*SServerSku) GetGpuSpec

func (self *SServerSku) GetGpuSpec() string

func (*SServerSku) GetId

func (self *SServerSku) GetId() string

func (*SServerSku) GetInstanceTypeCategory

func (self *SServerSku) GetInstanceTypeCategory() string

func (*SServerSku) GetInstanceTypeFamily

func (self *SServerSku) GetInstanceTypeFamily() string

func (*SServerSku) GetMemorySizeMB

func (self *SServerSku) GetMemorySizeMB() int

func (*SServerSku) GetName

func (self *SServerSku) GetName() string

func (*SServerSku) GetNicMaxCount

func (self *SServerSku) GetNicMaxCount() int

func (*SServerSku) GetNicType

func (self *SServerSku) GetNicType() string

func (*SServerSku) GetOsName

func (self *SServerSku) GetOsName() string

func (*SServerSku) GetPostpaidStatus

func (self *SServerSku) GetPostpaidStatus() string

func (*SServerSku) GetPrepaidStatus

func (self *SServerSku) GetPrepaidStatus() string

func (*SServerSku) GetStatus

func (self *SServerSku) GetStatus() string

func (*SServerSku) GetSysDiskMaxSizeGB

func (self *SServerSku) GetSysDiskMaxSizeGB() int

func (*SServerSku) GetSysDiskMinSizeGB

func (self *SServerSku) GetSysDiskMinSizeGB() int

func (*SServerSku) GetSysDiskResizable

func (self *SServerSku) GetSysDiskResizable() bool

func (*SServerSku) GetSysDiskType

func (self *SServerSku) GetSysDiskType() string

type SSnapshot

type SSnapshot struct {
	multicloud.SVirtualResourceBase
	CloudpodsTags

	api.SnapshotDetails
	// contains filtered or unexported fields
}

func (*SSnapshot) Delete

func (self *SSnapshot) Delete() error

func (*SSnapshot) GetDiskId

func (self *SSnapshot) GetDiskId() string

func (*SSnapshot) GetDiskType

func (self *SSnapshot) GetDiskType() string

func (*SSnapshot) GetGlobalId

func (self *SSnapshot) GetGlobalId() string

func (*SSnapshot) GetId

func (self *SSnapshot) GetId() string

func (*SSnapshot) GetName

func (self *SSnapshot) GetName() string

func (*SSnapshot) GetProjectId

func (self *SSnapshot) GetProjectId() string

func (*SSnapshot) GetSizeMb

func (self *SSnapshot) GetSizeMb() int32

func (*SSnapshot) GetStatus

func (self *SSnapshot) GetStatus() string

func (*SSnapshot) Refresh

func (self *SSnapshot) Refresh() error

type SStorage

type SStorage struct {
	multicloud.SStorageBase

	api.StorageDetails
	// contains filtered or unexported fields
}

func (*SStorage) CreateIDisk

func (*SStorage) GetCapacityMB

func (self *SStorage) GetCapacityMB() int64

func (*SStorage) GetCapacityUsedMB

func (self *SStorage) GetCapacityUsedMB() int64

func (*SStorage) GetEnabled

func (self *SStorage) GetEnabled() bool

func (*SStorage) GetGlobalId

func (self *SStorage) GetGlobalId() string

func (*SStorage) GetIDiskById

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

func (*SStorage) GetIDisks

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

func (*SStorage) GetIStoragecache

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

func (*SStorage) GetIZone

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

func (*SStorage) GetId

func (self *SStorage) GetId() string

func (*SStorage) GetMediumType

func (self *SStorage) GetMediumType() string

func (*SStorage) GetMountPoint

func (self *SStorage) GetMountPoint() string

func (*SStorage) GetName

func (self *SStorage) GetName() string

func (*SStorage) GetStatus

func (self *SStorage) GetStatus() string

func (*SStorage) GetStorageConf

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

func (*SStorage) GetStorageType

func (self *SStorage) GetStorageType() string

func (*SStorage) IsSysDiskStore

func (self *SStorage) IsSysDiskStore() bool

type SStoragecache

type SStoragecache struct {
	multicloud.SResourceBase
	CloudpodsTags

	api.StoragecacheDetails
	// contains filtered or unexported fields
}

func (*SStoragecache) CreateIImage

func (self *SStoragecache) CreateIImage(snapshotId, name, osType, desc string) (cloudprovider.ICloudImage, error)

func (*SStoragecache) DownloadImage

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

func (*SStoragecache) GetGlobalId

func (self *SStoragecache) GetGlobalId() string

func (*SStoragecache) GetICloudImages

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

func (*SStoragecache) GetICustomizedCloudImages

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

func (*SStoragecache) GetIImageById

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

func (*SStoragecache) GetId

func (self *SStoragecache) GetId() string

func (*SStoragecache) GetName

func (self *SStoragecache) GetName() string

func (*SStoragecache) GetPath

func (self *SStoragecache) GetPath() string

func (*SStoragecache) GetStatus

func (self *SStoragecache) GetStatus() string

func (*SStoragecache) UploadImage

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

type SVpc

type SVpc struct {
	multicloud.SVpc
	CloudpodsTags

	api.VpcDetails
	// contains filtered or unexported fields
}

func (*SVpc) CreateIWire

func (self *SVpc) CreateIWire(opts *cloudprovider.SWireCreateOptions) (cloudprovider.ICloudWire, error)

func (*SVpc) Delete

func (self *SVpc) Delete() error

func (*SVpc) GetCidrBlock

func (self *SVpc) GetCidrBlock() string

func (*SVpc) GetCidrBlock6

func (self *SVpc) GetCidrBlock6() string

func (*SVpc) GetExternalAccessMode

func (self *SVpc) GetExternalAccessMode() string

func (*SVpc) GetGlobalId

func (self *SVpc) GetGlobalId() string

func (*SVpc) GetIRouteTableById

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

func (*SVpc) GetIRouteTables

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

func (*SVpc) GetISecurityGroups

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

func (*SVpc) GetIWireById

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

func (*SVpc) GetIWires

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

func (*SVpc) GetId

func (self *SVpc) GetId() string

func (*SVpc) GetIsDefault

func (self *SVpc) GetIsDefault() bool

func (*SVpc) GetName

func (self *SVpc) GetName() string

func (*SVpc) GetRegion

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

func (*SVpc) GetStatus

func (self *SVpc) GetStatus() string

func (*SVpc) Refresh

func (self *SVpc) Refresh() error

type SWire

type SWire struct {
	CloudpodsTags
	multicloud.SResourceBase

	api.WireDetails
	// contains filtered or unexported fields
}

func (*SWire) CreateINetwork

func (*SWire) GetBandwidth

func (self *SWire) GetBandwidth() int

func (*SWire) GetGlobalId

func (self *SWire) GetGlobalId() string

func (*SWire) GetINetworkById

func (self *SWire) GetINetworkById(id string) (cloudprovider.ICloudNetwork, error)

func (*SWire) GetINetworks

func (self *SWire) GetINetworks() ([]cloudprovider.ICloudNetwork, error)

func (*SWire) GetIVpc

func (self *SWire) GetIVpc() cloudprovider.ICloudVpc

func (*SWire) GetIZone

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

func (*SWire) GetId

func (self *SWire) GetId() string

func (*SWire) GetName

func (self *SWire) GetName() string

func (*SWire) GetStatus

func (self *SWire) GetStatus() string

func (*SWire) IsEmulated

func (self *SWire) IsEmulated() bool

func (*SWire) Refresh

func (self *SWire) Refresh() error

type SZone

type SZone struct {
	multicloud.SResourceBase
	CloudpodsTags

	api.ZoneDetails
	// contains filtered or unexported fields
}

func (*SZone) GetGlobalId

func (self *SZone) GetGlobalId() string

func (*SZone) GetI18n

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

func (*SZone) GetIHostById

func (zone *SZone) GetIHostById(id string) (cloudprovider.ICloudHost, error)

func (*SZone) GetIHosts

func (zone *SZone) GetIHosts() ([]cloudprovider.ICloudHost, error)

func (*SZone) GetIRegion

func (self *SZone) GetIRegion() cloudprovider.ICloudRegion

func (*SZone) GetIStorageById

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

func (*SZone) GetIStorages

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

func (*SZone) GetId

func (self *SZone) GetId() string

func (*SZone) GetName

func (self *SZone) GetName() string

func (*SZone) GetStatus

func (self *SZone) GetStatus() string

type SecurityGroupRule

type SecurityGroupRule struct {
	multicloud.SResourceBase
	CloudpodsTags

	api.SecgroupRuleDetails
	// contains filtered or unexported fields
}

func (*SecurityGroupRule) Delete

func (self *SecurityGroupRule) Delete() error

func (*SecurityGroupRule) GetAction

func (*SecurityGroupRule) GetCIDRs

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

func (*SecurityGroupRule) GetDescription

func (self *SecurityGroupRule) GetDescription() string

func (*SecurityGroupRule) GetDirection

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

func (*SecurityGroupRule) GetGlobalId

func (self *SecurityGroupRule) GetGlobalId() string

func (*SecurityGroupRule) GetPorts

func (self *SecurityGroupRule) GetPorts() string

func (*SecurityGroupRule) GetPriority

func (self *SecurityGroupRule) GetPriority() int

func (*SecurityGroupRule) GetProtocol

func (self *SecurityGroupRule) GetProtocol() string

func (*SecurityGroupRule) Update

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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