remotefile

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

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

Go to latest
Published: Oct 28, 2022 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

View Source
const (
	CLOUD_PROVIDER_REMOTEFILE = api.CLOUD_PROVIDER_REMOTEFILE
)

Variables

This section is empty.

Functions

This section is empty.

Types

type RemoteFileClientConfig

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

func NewRemoteFileClientConfig

func NewRemoteFileClientConfig(url, username, password string) *RemoteFileClientConfig

func (*RemoteFileClientConfig) CloudproviderConfig

func (*RemoteFileClientConfig) Debug

type RemoteFileTags

type RemoteFileTags struct {
	Tags    map[string]string
	SysTags map[string]string
}

func (*RemoteFileTags) GetSysTags

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

func (*RemoteFileTags) GetTags

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

func (*RemoteFileTags) SetTags

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

type SBucket

type SBucket struct {
	SResourceBase

	RegionId     string
	MaxPart      int
	MaxPartBytes int64
	Acl          string
	Location     string
	StorageClass string
	AccessUrls   []cloudprovider.SBucketAccessUrl

	Stats cloudprovider.SBucketStats
	Limit cloudprovider.SBucketStats
	// contains filtered or unexported fields
}

func (*SBucket) AbortMultipartUpload

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

func (*SBucket) CompleteMultipartUpload

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

func (*SBucket) CopyObject

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

func (*SBucket) CopyPart

func (self *SBucket) CopyPart(ctx context.Context, key string, uploadId string, partIndex int, srcBucketName string, srcKey string, srcOffset int64, srcLength int64) (string, error)

func (*SBucket) DeleteCORS

func (self *SBucket) DeleteCORS() error

func (*SBucket) DeleteObject

func (self *SBucket) DeleteObject(ctx context.Context, keys string) error

func (*SBucket) DeletePolicy

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

func (*SBucket) DeleteWebSiteConf

func (self *SBucket) DeleteWebSiteConf() error

func (*SBucket) GetAccessUrls

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

func (*SBucket) GetAcl

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

func (*SBucket) GetCORSRules

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

func (*SBucket) GetCdnDomains

func (self *SBucket) GetCdnDomains() ([]cloudprovider.SCdnDomain, error)

func (*SBucket) GetIRegion

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

func (*SBucket) GetLimit

func (self *SBucket) GetLimit() cloudprovider.SBucketStats

func (*SBucket) GetLocation

func (self *SBucket) GetLocation() string

func (*SBucket) GetObject

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

func (*SBucket) GetPolicy

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

func (*SBucket) GetReferer

func (self *SBucket) GetReferer() (cloudprovider.SBucketRefererConf, error)

func (*SBucket) GetStats

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

func (*SBucket) GetStorageClass

func (self *SBucket) GetStorageClass() string

func (*SBucket) GetTempUrl

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

func (*SBucket) GetWebsiteConf

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

func (*SBucket) LimitSupport

func (self *SBucket) LimitSupport() cloudprovider.SBucketStats

func (*SBucket) ListMultipartUploads

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

func (*SBucket) ListObjects

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

func (*SBucket) MaxPartCount

func (self *SBucket) MaxPartCount() int

func (*SBucket) MaxPartSizeBytes

func (self *SBucket) MaxPartSizeBytes() int64

func (*SBucket) NewMultipartUpload

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

func (*SBucket) PutObject

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

func (*SBucket) SetAcl

func (self *SBucket) SetAcl(acl cloudprovider.TBucketACLType) error

func (*SBucket) SetCORS

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

func (*SBucket) SetLimit

func (self *SBucket) SetLimit(limit cloudprovider.SBucketStats) error

func (*SBucket) SetPolicy

func (self *SBucket) SetPolicy(policy cloudprovider.SBucketPolicyStatementInput) error

func (*SBucket) SetReferer

func (self *SBucket) SetReferer(conf cloudprovider.SBucketRefererConf) error

func (*SBucket) SetWebsite

func (self *SBucket) SetWebsite(conf cloudprovider.SBucketWebsiteConf) error

func (*SBucket) UploadPart

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

type SDBInstance

type SDBInstance struct {
	SResourceBase

	RegionId              string
	SecurityGroupIds      []string
	Port                  int
	Engine                string
	EngineVersion         string
	InstanceType          string
	VcpuCount             int
	VmemSizeMb            int
	DiskSizeGb            int
	DiskSizeUsedGb        int
	Category              string
	StorageType           string
	MaintainTime          string
	ConnectionStr         string
	InternalConnectionStr string
	Zone1Id               string
	Zone2Id               string
	Zone3Id               string
	VpcId                 string
	Iops                  int
	// contains filtered or unexported fields
}

func (*SDBInstance) ChangeConfig

func (*SDBInstance) ClosePublicConnection

func (self *SDBInstance) ClosePublicConnection() error

func (*SDBInstance) CreateAccount

func (*SDBInstance) CreateDatabase

func (self *SDBInstance) CreateDatabase(conf *cloudprovider.SDBInstanceDatabaseCreateConfig) error

func (*SDBInstance) CreateIBackup

func (self *SDBInstance) CreateIBackup(conf *cloudprovider.SDBInstanceBackupCreateConfig) (string, error)

func (*SDBInstance) Delete

func (self *SDBInstance) Delete() error

func (*SDBInstance) GetCategory

func (self *SDBInstance) GetCategory() string

func (*SDBInstance) GetConnectionStr

func (self *SDBInstance) GetConnectionStr() string

func (*SDBInstance) GetDBNetworks

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

func (*SDBInstance) GetDiskSizeGB

func (self *SDBInstance) GetDiskSizeGB() int

func (*SDBInstance) GetDiskSizeUsedMB

func (self *SDBInstance) GetDiskSizeUsedMB() int

func (*SDBInstance) GetEngine

func (self *SDBInstance) GetEngine() string

func (*SDBInstance) GetEngineVersion

func (self *SDBInstance) GetEngineVersion() string

func (*SDBInstance) GetIDBInstanceAccounts

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

func (*SDBInstance) GetIDBInstanceBackups

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

func (*SDBInstance) GetIDBInstanceDatabases

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

func (*SDBInstance) GetIDBInstanceParameters

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

func (*SDBInstance) GetIVpcId

func (self *SDBInstance) GetIVpcId() string

func (*SDBInstance) GetInstanceType

func (self *SDBInstance) GetInstanceType() string

func (*SDBInstance) GetInternalConnectionStr

func (self *SDBInstance) GetInternalConnectionStr() string

func (*SDBInstance) GetIops

func (self *SDBInstance) GetIops() int

func (*SDBInstance) GetMaintainTime

func (self *SDBInstance) GetMaintainTime() string

func (*SDBInstance) GetMasterInstanceId

func (self *SDBInstance) GetMasterInstanceId() string

func (*SDBInstance) GetPort

func (self *SDBInstance) GetPort() int

func (*SDBInstance) GetSecurityGroupIds

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

func (*SDBInstance) GetStorageType

func (self *SDBInstance) GetStorageType() string

func (*SDBInstance) GetVcpuCount

func (self *SDBInstance) GetVcpuCount() int

func (*SDBInstance) GetVmemSizeMB

func (self *SDBInstance) GetVmemSizeMB() int

func (*SDBInstance) GetZone1Id

func (self *SDBInstance) GetZone1Id() string

func (*SDBInstance) GetZone2Id

func (self *SDBInstance) GetZone2Id() string

func (*SDBInstance) GetZone3Id

func (self *SDBInstance) GetZone3Id() string

func (*SDBInstance) OpenPublicConnection

func (self *SDBInstance) OpenPublicConnection() error

func (*SDBInstance) Reboot

func (self *SDBInstance) Reboot() error

func (*SDBInstance) RecoveryFromBackup

func (self *SDBInstance) RecoveryFromBackup(conf *cloudprovider.SDBInstanceRecoveryConfig) error

func (*SDBInstance) SetSecurityGroups

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

type SDisk

type SDisk struct {
	SResourceBase

	ZoneId       string
	StorageId    string
	DiskFormat   string
	DiskSizeMb   int
	IsAutoDelete bool
	DiskType     string
	FsFormat     string
	Iops         int
	Driver       string
	CacheMode    string
	Mountpoint   string
	AccessPath   string
	// contains filtered or unexported fields
}

func (*SDisk) CreateISnapshot

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

func (*SDisk) Delete

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

func (*SDisk) GetAccessPath

func (self *SDisk) GetAccessPath() string

func (*SDisk) GetCacheMode

func (self *SDisk) GetCacheMode() string

func (*SDisk) GetDiskFormat

func (self *SDisk) GetDiskFormat() string

func (*SDisk) GetDiskSizeMB

func (self *SDisk) GetDiskSizeMB() int

func (*SDisk) GetDiskType

func (self *SDisk) GetDiskType() string

func (*SDisk) GetDriver

func (self *SDisk) GetDriver() string

func (*SDisk) GetExtSnapshotPolicyIds

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

func (*SDisk) GetFsFormat

func (self *SDisk) GetFsFormat() 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) 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) GetTemplateId

func (self *SDisk) GetTemplateId() string

func (*SDisk) Rebuild

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

func (*SDisk) Reset

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

func (*SDisk) Resize

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

type SEip

type SEip struct {
	SResourceBase

	IpAddr      string
	RegionId    string
	AssociateId string
	Bandwidth   int
}

func (*SEip) Associate

func (self *SEip) Associate(conf *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) GetINetworkId

func (self *SEip) GetINetworkId() 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

type SHost

type SHost struct {
	SResourceBase
	multicloud.SHostBase

	AccessIp      string
	AccessMac     string
	ZoneId        string
	Enabled       bool
	HostStatus    string
	SN            string
	CpuCount      int
	NodeCount     int8
	CpuDesc       string
	CpuMbz        int
	MemSizeMb     int
	StorageSizeMb int
	StorageType   string

	AttachStorageTypes []string
	// contains filtered or unexported fields
}

func (*SHost) CreateVM

func (*SHost) GetAccessIp

func (self *SHost) GetAccessIp() string

func (*SHost) GetAccessMac

func (self *SHost) GetAccessMac() string

func (*SHost) GetCpuCmtbound

func (self *SHost) GetCpuCmtbound() float32

func (*SHost) GetCpuCount

func (self *SHost) GetCpuCount() int

func (*SHost) GetCpuDesc

func (self *SHost) GetCpuDesc() string

func (*SHost) GetCpuMhz

func (self *SHost) GetCpuMhz() int

func (*SHost) GetEnabled

func (self *SHost) GetEnabled() bool

func (*SHost) GetHostStatus

func (self *SHost) GetHostStatus() string

func (*SHost) GetHostType

func (self *SHost) GetHostType() string

func (*SHost) GetIHostNics

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

func (*SHost) GetIStorageById

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

func (*SHost) GetIStorages

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

func (*SHost) GetIVMById

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

func (*SHost) GetIVMs

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

func (*SHost) GetIWires

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

func (*SHost) GetIsMaintenance

func (self *SHost) GetIsMaintenance() bool

func (*SHost) GetMemCmtbound

func (self *SHost) GetMemCmtbound() float32

func (*SHost) GetMemSizeMB

func (self *SHost) GetMemSizeMB() int

func (*SHost) GetNodeCount

func (self *SHost) GetNodeCount() int8

func (*SHost) GetReservedMemoryMb

func (self *SHost) GetReservedMemoryMb() int

func (*SHost) GetSN

func (self *SHost) GetSN() string

func (*SHost) GetStorageSizeMB

func (self *SHost) GetStorageSizeMB() int

func (*SHost) GetStorageType

func (self *SHost) GetStorageType() string

func (*SHost) GetSysInfo

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

func (*SHost) GetVersion

func (self *SHost) GetVersion() string

type SInstance

type SInstance struct {
	SResourceBase

	HostId           string
	Hostname         string
	SecurityGroupIds []string
	VcpuCount        int
	VmemSizeMb       int
	BootOrder        string
	Vga              string
	Vdi              string
	OsArch           string
	OsType           string
	OsName           string
	Bios             string
	Machine          string
	InstanceType     string
	Bandwidth        int
	Throughput       int
	EipId            string
	Disks            []SDisk

	Nics []SInstanceNic
	// contains filtered or unexported fields
}

func (*SInstance) AllocatePublicIpAddress

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

func (*SInstance) AssignSecurityGroup

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

func (*SInstance) AttachDisk

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

func (*SInstance) ChangeConfig

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

func (*SInstance) ConvertPublicIpToEip

func (self *SInstance) ConvertPublicIpToEip() 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 (self *SInstance) DeployVM(ctx context.Context, name string, username string, password string, publicKey string, deleteKeypair bool, description string) error

func (*SInstance) DetachDisk

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

func (*SInstance) GetBios

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

func (*SInstance) GetBootOrder

func (self *SInstance) GetBootOrder() string

func (*SInstance) GetError

func (self *SInstance) GetError() error

func (*SInstance) GetFullOsName

func (ins *SInstance) GetFullOsName() 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) 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) GetInternetMaxBandwidthOut

func (self *SInstance) GetInternetMaxBandwidthOut() int

func (*SInstance) GetMachine

func (self *SInstance) GetMachine() 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 (ins *SInstance) GetOsType() cloudprovider.TOsType

func (*SInstance) GetOsVersion

func (ins *SInstance) GetOsVersion() string

func (*SInstance) GetSecurityGroupIds

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

func (*SInstance) GetSerialOutput

func (self *SInstance) GetSerialOutput(port int) (string, error)

func (*SInstance) GetThroughput

func (self *SInstance) GetThroughput() int

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 (self *SInstance) RebuildRoot(ctx context.Context, config *cloudprovider.SManagedVMRebuildRootConfig) (string, error)

func (*SInstance) ResetToInstanceSnapshot

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

func (*SInstance) SaveImage

func (*SInstance) SetSecurityGroups

func (self *SInstance) SetSecurityGroups(secgroupIds []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 (self *SInstance) UpdateVM(ctx context.Context, name string) error

type SInstanceNic

type SInstanceNic struct {
	SResourceBase

	Ip        string
	Mac       string
	Classic   bool
	Driver    string
	NetworkId string
	SubAddr   []string
}

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

type SLoadbalancer struct {
	SResourceBase

	RegionId     string
	Address      string
	AddressType  string
	NetworkType  string
	VpcId        string
	ZoneId       string
	Zone1Id      string
	InstanceType string
	ChargeType   string
	Bandwidth    int
	NetworkIds   []string
	// contains filtered or unexported fields
}

func (*SLoadbalancer) CreateILoadBalancerListener

func (*SLoadbalancer) Delete

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

func (*SLoadbalancer) GetAddress

func (self *SLoadbalancer) GetAddress() string

func (*SLoadbalancer) GetAddressType

func (self *SLoadbalancer) GetAddressType() string

func (*SLoadbalancer) GetChargeType

func (self *SLoadbalancer) GetChargeType() string

func (*SLoadbalancer) GetEgressMbps

func (self *SLoadbalancer) GetEgressMbps() int

func (*SLoadbalancer) GetIEIP

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

func (*SLoadbalancer) GetILoadBalancerBackendGroupById

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

func (*SLoadbalancer) GetILoadBalancerBackendGroups

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

func (*SLoadbalancer) GetILoadBalancerListenerById

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

func (*SLoadbalancer) GetILoadBalancerListeners

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

func (*SLoadbalancer) GetLoadbalancerSpec

func (self *SLoadbalancer) GetLoadbalancerSpec() string

func (*SLoadbalancer) GetNetworkIds

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

func (*SLoadbalancer) GetNetworkType

func (self *SLoadbalancer) GetNetworkType() string

func (*SLoadbalancer) GetVpcId

func (self *SLoadbalancer) GetVpcId() string

func (*SLoadbalancer) GetZone1Id

func (self *SLoadbalancer) GetZone1Id() string

func (*SLoadbalancer) GetZoneId

func (self *SLoadbalancer) GetZoneId() string

func (*SLoadbalancer) Start

func (self *SLoadbalancer) Start() error

func (*SLoadbalancer) Stop

func (self *SLoadbalancer) Stop() error

type SMisc

type SMisc struct {
	SResourceBase

	ResourceType string

	Config jsonutils.JSONObject
}

func (*SMisc) GetConfig

func (self *SMisc) GetConfig() jsonutils.JSONObject

func (*SMisc) GetResourceType

func (self *SMisc) GetResourceType() string

type SNetwork

type SNetwork struct {
	SResourceBase

	WireId  string
	IpStart string
	IpEnd   string
	IpMask  int8
	Gatway  string
	// contains filtered or unexported fields
}

func (*SNetwork) Delete

func (self *SNetwork) Delete() error

func (*SNetwork) GetAllocTimeoutSeconds

func (self *SNetwork) GetAllocTimeoutSeconds() int

func (*SNetwork) GetGateway

func (self *SNetwork) GetGateway() string

func (*SNetwork) GetIWire

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

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

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

func (*SNetwork) GetServerType

func (self *SNetwork) GetServerType() string

type SProject

type SProject struct {
	multicloud.SProjectBase
	RemoteFileTags

	Id   string
	Name string
}

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

func (*SProject) Refresh

func (self *SProject) Refresh() error

type SRegion

type SRegion struct {
	SResourceBase
	multicloud.SRegion
	multicloud.SRegionSecurityGroupBase
	multicloud.SRegionOssBase
	multicloud.SRegionLbBase
	// contains filtered or unexported fields
}

func (*SRegion) CreateEIP

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

func (*SRegion) CreateIBucket

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

func (*SRegion) CreateILoadBalancer

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

func (*SRegion) CreateISecurityGroup

func (*SRegion) CreateIVpc

func (*SRegion) GetCapabilities

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

func (*SRegion) GetCloudEnv

func (self *SRegion) GetCloudEnv() string

func (*SRegion) GetGeographicInfo

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

func (*SRegion) GetGlobalId

func (self *SRegion) GetGlobalId() string

func (*SRegion) GetIBucketById

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

func (*SRegion) GetIBucketByName

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

func (*SRegion) GetIBuckets

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

func (*SRegion) GetIDBInstanceById

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

func (*SRegion) GetIDBInstances

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

func (*SRegion) GetIDiskById

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

func (*SRegion) GetIEipById

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

func (*SRegion) GetIEips

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

func (*SRegion) GetIElasticcaches

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

func (*SRegion) GetIHostById

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

func (*SRegion) GetIHosts

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

func (*SRegion) GetILoadBalancerById

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

func (*SRegion) GetILoadBalancers

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

func (*SRegion) GetIMiscResources

func (self *SRegion) GetIMiscResources() ([]cloudprovider.ICloudMiscResource, error)

func (*SRegion) GetISecurityGroupById

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

func (*SRegion) GetISecurityGroupByName

func (*SRegion) GetIStorageById

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

func (*SRegion) GetIStorages

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

func (*SRegion) GetIVMById

func (region *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) GetProvider

func (self *SRegion) GetProvider() string

func (*SRegion) GetStatus

func (self *SRegion) GetStatus() string

type SRemoteFileClient

type SRemoteFileClient struct {
	*RemoteFileClientConfig
}

func NewRemoteFileClient

func NewRemoteFileClient(cfg *RemoteFileClientConfig) (*SRemoteFileClient, error)

func (*SRemoteFileClient) GetBuckets

func (self *SRemoteFileClient) GetBuckets() ([]SBucket, error)

func (*SRemoteFileClient) GetCapabilities

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

func (*SRemoteFileClient) GetCloudRegionExternalIdPrefix

func (cli *SRemoteFileClient) GetCloudRegionExternalIdPrefix() string

func (*SRemoteFileClient) GetDBInstances

func (self *SRemoteFileClient) GetDBInstances() ([]SDBInstance, error)

func (*SRemoteFileClient) GetDisks

func (self *SRemoteFileClient) GetDisks() ([]SDisk, error)

func (*SRemoteFileClient) GetEcsMetrics

func (*SRemoteFileClient) GetEips

func (self *SRemoteFileClient) GetEips() ([]SEip, error)

func (*SRemoteFileClient) GetHosts

func (self *SRemoteFileClient) GetHosts() ([]SHost, error)

func (*SRemoteFileClient) GetIProjects

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

func (*SRemoteFileClient) GetIRegionById

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

func (*SRemoteFileClient) GetIRegions

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

func (*SRemoteFileClient) GetInstances

func (self *SRemoteFileClient) GetInstances() ([]SInstance, error)

func (*SRemoteFileClient) GetLoadbalancers

func (self *SRemoteFileClient) GetLoadbalancers() ([]SLoadbalancer, error)

func (*SRemoteFileClient) GetMetrics

func (*SRemoteFileClient) GetMisc

func (self *SRemoteFileClient) GetMisc() ([]SMisc, error)

func (*SRemoteFileClient) GetNetworks

func (self *SRemoteFileClient) GetNetworks() ([]SNetwork, error)

func (*SRemoteFileClient) GetProjects

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

func (*SRemoteFileClient) GetRegions

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

func (*SRemoteFileClient) GetSecgroups

func (self *SRemoteFileClient) GetSecgroups() ([]SSecurityGroup, error)

func (*SRemoteFileClient) GetStorages

func (self *SRemoteFileClient) GetStorages() ([]SStorage, error)

func (*SRemoteFileClient) GetSubAccounts

func (cli *SRemoteFileClient) GetSubAccounts() ([]cloudprovider.SSubAccount, error)

func (*SRemoteFileClient) GetVpcs

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

func (*SRemoteFileClient) GetWires

func (self *SRemoteFileClient) GetWires() ([]SWire, error)

func (*SRemoteFileClient) GetZones

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

type SResourceBase

type SResourceBase struct {
	RemoteFileTags
	multicloud.SBillingBase
	Id        string
	Name      string
	Emulated  bool
	Status    string
	CreatedAt time.Time
	ProjectId string
}

func (*SResourceBase) GetCreatedAt

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

func (*SResourceBase) GetGlobalId

func (self *SResourceBase) GetGlobalId() string

func (*SResourceBase) GetI18n

func (*SResourceBase) GetId

func (self *SResourceBase) GetId() string

func (*SResourceBase) GetName

func (self *SResourceBase) GetName() string

func (*SResourceBase) GetProjectId

func (self *SResourceBase) GetProjectId() string

func (*SResourceBase) GetStatus

func (self *SResourceBase) GetStatus() string

func (*SResourceBase) GetSysTags

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

func (*SResourceBase) GetTags

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

func (*SResourceBase) IsEmulated

func (self *SResourceBase) IsEmulated() bool

func (*SResourceBase) Refresh

func (self *SResourceBase) Refresh() error

func (*SResourceBase) SetTags

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

type SSecurityGroup

type SSecurityGroup struct {
	SResourceBase

	VpcId string
	Desc  string
}

func (*SSecurityGroup) Delete

func (self *SSecurityGroup) Delete() error

func (*SSecurityGroup) GetDescription

func (self *SSecurityGroup) GetDescription() string

func (*SSecurityGroup) GetReferences

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

func (*SSecurityGroup) GetRules

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

func (*SSecurityGroup) GetVpcId

func (self *SSecurityGroup) GetVpcId() string

func (*SSecurityGroup) SyncRules

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

type SStorage

type SStorage struct {
	SResourceBase

	ZoneId         string
	StorageType    string
	MediumType     string
	CapacityMb     int64
	CapacityUsedMb int64
	Enabled        bool
	SkipSync       bool
	// contains filtered or unexported fields
}

func (*SStorage) CreateIDisk

func (*SStorage) DisableSync

func (self *SStorage) DisableSync() bool

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

func (self *SStorage) GetMediumType() string

func (*SStorage) GetMountPoint

func (self *SStorage) GetMountPoint() 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 SVpc

type SVpc struct {
	multicloud.SVpc
	SResourceBase

	RegionId  string
	CidrBlock string
	IsDefault bool
	// contains filtered or unexported fields
}

func (*SVpc) AcceptICloudVpcPeeringConnection

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

func (*SVpc) CreateINatGateway

func (*SVpc) CreateIWire

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

func (*SVpc) Delete

func (self *SVpc) Delete() error

func (*SVpc) GetAuthorityOwnerId

func (self *SVpc) GetAuthorityOwnerId() string

func (*SVpc) GetCidrBlock

func (self *SVpc) GetCidrBlock() string

func (*SVpc) GetICloudAccepterVpcPeeringConnections

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

func (*SVpc) GetICloudIPv6Gateways

func (self *SVpc) GetICloudIPv6Gateways() ([]cloudprovider.ICloudIPv6Gateway, error)

func (*SVpc) GetICloudVpcPeeringConnectionById

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

func (*SVpc) GetICloudVpcPeeringConnections

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

func (*SVpc) GetINatGateways

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

func (*SVpc) GetIRouteTableById

func (self *SVpc) GetIRouteTableById(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) GetIsDefault

func (self *SVpc) GetIsDefault() bool

func (*SVpc) GetRegion

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

func (*SVpc) ProposeJoinICloudInterVpcNetwork

func (self *SVpc) ProposeJoinICloudInterVpcNetwork(opts *cloudprovider.SVpcJointInterVpcNetworkOption) error

type SWire

type SWire struct {
	SResourceBase

	WireId    string
	VpcId     string
	ZoneId    string
	Bandwidth int
	// contains filtered or unexported fields
}

func (*SWire) CreateINetwork

func (*SWire) GetBandwidth

func (self *SWire) GetBandwidth() int

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

type SZone

type SZone struct {
	SResourceBase

	RegionId string
	// contains filtered or unexported fields
}

func (*SZone) GetIHostById

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

func (*SZone) GetIHosts

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

func (*SZone) GetIRegion

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

func (*SZone) GetIStorageById

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

func (*SZone) GetIStorages

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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