volcengine

package
v0.0.0-...-3235d85 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Overview

Copyright 2023 Yunion

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

View Source
const (
	EIP_STATUS_ATTACHING = "Attaching"
	EIP_STATUS_DETACHING = "Detaching"
	EIP_STATUS_ATTACHED  = "Attached"
	EIP_STATUS_AVAILABLE = "Available"
	EIP_STATUS_DELETING  = "Deleting"

	EIP_INSTANCE_TYPE_NAT   = "Nat"              // NAT网关
	EIP_INSTANCE_TYPE_ENI   = "NetworkInterface" // 辅助网卡
	EIP_INSTANCE_TYPE_CLB   = "ClbInstance"      // 负载均衡
	EIP_INSTANCE_TYPE_ALB   = "Albinstance"      // 应用型负载均衡
	EIP_INSTANCE_TYPE_ECS   = "EcsInstance"      // 云服务器
	EIP_INSTANCE_TYPE_HAVIP = "HaVip"            // 高可用虚拟IP
)
View Source
const (
	InstanceStatusCreating   = "CREATING"
	InstanceStatusRunning    = "RUNNING"
	InstanceStatusStopping   = "STOPPING"
	InstanceStatusStopped    = "STOPPED"
	InstanceStatusRebooting  = "REBOOTING"
	InstanceStatusStarting   = "STARTING"
	InstanceStatusRebuilding = "REBUILDING"
	InstanceStatusResizing   = "RESIZING"
	InstanceStatusError      = "ERROR"
	InstanceStatusDeleting   = "DELETING"
)
View Source
const (
	CLOUD_PROVIDER_VOLCENGINE    = api.CLOUD_PROVIDER_VOLCENGINE
	CLOUD_PROVIDER_VOLCENGINE_CN = "火山云"
	CLOUD_PROVIDER_VOLCENGINE_EN = "VolcEngine"

	VOLCENGINE_API_VERSION         = "2020-04-01"
	VOLCENGINE_IAM_API_VERSION     = "2021-08-01"
	VOLCENGINE_OBSERVE_API_VERSION = "2018-01-01"
	VOLCENGINE_BILLING_API_VERSION = "2022-01-01"

	VOLCENGINE_API         = "open.volcengineapi.com"
	VOLCENGINE_IAM_API     = "iam.volcengineapi.com"
	VOLCENGINE_TOS_API     = "tos-cn-beijing.volces.com"
	VOLCENGINE_BILLING_API = "billing.volcengineapi.com"

	VOLCENGINE_SERVICE_ECS       = "ecs"
	VOLCENGINE_SERVICE_VPC       = "vpc"
	VOLCENGINE_SERVICE_NAT       = "natgateway"
	VOLCENGINE_SERVICE_STORAGE   = "storage_ebs"
	VOLCENGINE_SERVICE_IAM       = "iam"
	VOLCENGINE_SERVICE_TOS       = "tos"
	VOLCENGINE_SERVICE_OBSERVICE = "Volc_Observe"
	VOLCENGINE_SERVICE_BILLING   = "billing"

	VOLCENGINE_DEFAULT_REGION = "cn-beijing"
)
View Source
const (
	OSS_META_HEADER = "x-oss-meta-"
)

Variables

View Source
var LatitudeAndLongitude = map[string]cloudprovider.SGeographicInfo{
	"cn-guangzhou": api.RegionGuangzhou,
	"cn-beijing":   api.RegionBeijing,
	"cn-shanghai":  api.RegionShanghai,
}
View Source
var RegionEndpoint = map[string]string{
	"cn-beijing":   "cn-beijing.volces.com",
	"cn-shanghai":  "cn-shanghai.volces.com",
	"cn-guangzhou": "cn-beijing.volces.com",
}
View Source
var RegionLocations = map[string]string{
	"cn-beijing":   "中国(北京)",
	"cn-shanghai":  "中国(上海)",
	"cn-guangzhou": "中国(广州)",
}
View Source
var RegionLocationsEN = map[string]string{
	"cn-beijing":   "China (Beijing)",
	"cn-shanghai":  "China (Shanghai)",
	"cn-guangzhou": "China (Guangzhou)",
}

Functions

func GetBucketName

func GetBucketName(regionId string, imageId string) string

Types

type ImageOwnerType

type ImageOwnerType string
const (
	ImageOwnerPrivate ImageOwnerType = "private"
	ImageOwnerShared  ImageOwnerType = "shared"
	ImageOwnerPublic  ImageOwnerType = "public"
)

type ImageStatusType

type ImageStatusType string
const (
	ImageStatusCreating  ImageStatusType = "creating"
	ImageStatusAvailable ImageStatusType = "available"
	ImageStatusError     ImageStatusType = "error"
)

type SAssociatedElasticIp

type SAssociatedElasticIp struct {
	AllocationId string
	EipAddress   string
}

type SAvailableResource

type SAvailableResource struct {
	Type               string
	SupportedResources []SSupportedResource
}

type SBalance

type SBalance struct {
	AccountId        string
	ArrearsBalance   float64
	AvailableBalance float64
	CashBalance      float64
	CreditLimit      float64
	FreezeAmount     float64
}

type SBucket

type SBucket struct {
	multicloud.SBaseBucket
	VolcEngineTags

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

func (*SBucket) AbortMultipartUpload

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

func (*SBucket) CompleteMultipartUpload

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

func (*SBucket) CopyObject

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

func (*SBucket) CopyPart

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

func (*SBucket) DeleteObject

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

func (*SBucket) GetAccessUrls

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

func (*SBucket) GetAcl

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

func (*SBucket) GetCreatedAt

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

func (*SBucket) GetGlobalId

func (b *SBucket) GetGlobalId() string

func (*SBucket) GetIRegion

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

func (*SBucket) GetLocation

func (b *SBucket) GetLocation() string

func (*SBucket) GetName

func (b *SBucket) GetName() string

func (*SBucket) GetObject

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

func (*SBucket) GetProjectId

func (b *SBucket) GetProjectId() string

func (*SBucket) GetStats

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

func (*SBucket) GetStorageClass

func (b *SBucket) GetStorageClass() string

func (*SBucket) GetTempUrl

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

func (*SBucket) ListObjects

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

func (*SBucket) NewMultipartUpload

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

func (*SBucket) PutObject

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

func (*SBucket) SetAcl

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

func (*SBucket) UploadPart

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

type SCallerIdentity

type SCallerIdentity struct {
	AccountId    string
	UserId       string
	RoleId       string
	PrincipalId  string
	IdentityType string
}

type SCidrList

type SCidrList []string

type SDNATEntry

type SDNATEntry struct {
	multicloud.SResourceBase
	VolcEngineTags

	NatGatewayId  string
	DnatEntryId   string
	DnatEntryName string
	Protocol      string
	InternalIp    string
	InternalPort  string
	ExternalIp    string
	ExternalPort  string
	Status        string
	// contains filtered or unexported fields
}

func (*SDNATEntry) Delete

func (dentry *SDNATEntry) Delete() error

func (*SDNATEntry) GetExternalIp

func (dentry *SDNATEntry) GetExternalIp() string

func (*SDNATEntry) GetExternalPort

func (dentry *SDNATEntry) GetExternalPort() int

func (*SDNATEntry) GetGlobalId

func (dentry *SDNATEntry) GetGlobalId() string

func (*SDNATEntry) GetId

func (dentry *SDNATEntry) GetId() string

func (*SDNATEntry) GetInternalIp

func (dentry *SDNATEntry) GetInternalIp() string

func (*SDNATEntry) GetInternalPort

func (dentry *SDNATEntry) GetInternalPort() int

func (*SDNATEntry) GetIpProtocol

func (dentry *SDNATEntry) GetIpProtocol() string

func (*SDNATEntry) GetName

func (dentry *SDNATEntry) GetName() string

func (*SDNATEntry) GetStatus

func (dentry *SDNATEntry) GetStatus() string

type SDisk

type SDisk struct {
	multicloud.SDisk
	VolcEngineTags

	ZoneId             string
	VolumeId           string
	VolumeName         string
	VolumeType         string
	Description        string
	InstanceId         string
	ImageId            string
	Size               int
	Status             string
	Kind               string
	CreatedAt          time.Time
	UpdatedAt          time.Time
	BillingType        string
	PayType            string
	TradeStatus        int
	ExpiredTime        time.Time
	ProjectName        string
	DeleteWithInstance bool
	// contains filtered or unexported fields
}

func (*SDisk) CreateISnapshot

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

Snapshot API is not supported, refer to https://www.volcengine.com/docs/6460/195549

func (*SDisk) Delete

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

func (*SDisk) GetAccessPath

func (disk *SDisk) GetAccessPath() string

func (*SDisk) GetBillingType

func (disk *SDisk) GetBillingType() string

func (*SDisk) GetCacheMode

func (disk *SDisk) GetCacheMode() string

func (*SDisk) GetCreatedAt

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

func (*SDisk) GetDiskFormat

func (disk *SDisk) GetDiskFormat() string

func (*SDisk) GetDiskSizeMB

func (disk *SDisk) GetDiskSizeMB() int

func (*SDisk) GetDiskType

func (disk *SDisk) GetDiskType() string

func (*SDisk) GetDriver

func (disk *SDisk) GetDriver() string

func (*SDisk) GetExpiredAt

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

func (*SDisk) GetFsFormat

func (disk *SDisk) GetFsFormat() string

func (*SDisk) GetGlobalId

func (disk *SDisk) GetGlobalId() string

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

func (disk *SDisk) GetId() string

func (*SDisk) GetIsAutoDelete

func (disk *SDisk) GetIsAutoDelete() bool

func (*SDisk) GetIsNonPersistent

func (disk *SDisk) GetIsNonPersistent() bool

func (*SDisk) GetMountpoint

func (disk *SDisk) GetMountpoint() string

func (*SDisk) GetName

func (disk *SDisk) GetName() string

func (*SDisk) GetProjectId

func (disk *SDisk) GetProjectId() string

func (*SDisk) GetStatus

func (disk *SDisk) GetStatus() string

func (*SDisk) GetTemplateId

func (disk *SDisk) GetTemplateId() string

func (*SDisk) Rebuild

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

func (*SDisk) Refresh

func (disk *SDisk) Refresh() error

func (*SDisk) Reset

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

func (*SDisk) Resize

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

type SEipAddress

type SEipAddress struct {
	multicloud.SEipBase
	VolcEngineTags

	Name         string
	AllocationId string

	BillingType TBillingType

	EipAddress string
	Status     string

	InstanceType string
	InstanceId   string
	Bandwidth    int /* Mbps */

	BusinessStatus string
	AllocationTime time.Time
	Description    string
	ISP            string

	LockReason string

	ExpiredTime time.Time
	ProjectName string
	// contains filtered or unexported fields
}

func (*SEipAddress) Associate

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

func (*SEipAddress) ChangeBandwidth

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

func (*SEipAddress) Delete

func (eipaddr *SEipAddress) Delete() error

func (*SEipAddress) Dissociate

func (eipaddr *SEipAddress) Dissociate() error

func (*SEipAddress) GetAssociationExternalId

func (eipaddr *SEipAddress) GetAssociationExternalId() string

func (*SEipAddress) GetAssociationType

func (eipaddr *SEipAddress) GetAssociationType() string

func (*SEipAddress) GetBandwidth

func (eipaddr *SEipAddress) GetBandwidth() int

func (*SEipAddress) GetGlobalId

func (eipaddr *SEipAddress) GetGlobalId() string

func (*SEipAddress) GetINetworkId

func (eipaddr *SEipAddress) GetINetworkId() string

func (*SEipAddress) GetId

func (eipaddr *SEipAddress) GetId() string

func (*SEipAddress) GetInternetChargeType

func (eipaddr *SEipAddress) GetInternetChargeType() string

func (*SEipAddress) GetIpAddr

func (eipaddr *SEipAddress) GetIpAddr() string

func (*SEipAddress) GetMode

func (eipaddr *SEipAddress) GetMode() string

func (*SEipAddress) GetName

func (eipaddr *SEipAddress) GetName() string

func (*SEipAddress) GetProjectId

func (eipaddr *SEipAddress) GetProjectId() string

func (*SEipAddress) GetStatus

func (eipaddr *SEipAddress) GetStatus() string

func (*SEipAddress) Refresh

func (eipaddr *SEipAddress) Refresh() error

type SHost

type SHost struct {
	multicloud.SHostBase
	// 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) 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 (host *SHost) GetIVMById(id string) (cloudprovider.ICloudVM, error)

func (*SHost) GetIVMs

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

func (*SHost) GetIWires

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

func (*SHost) GetId

func (host *SHost) GetId() string

func (*SHost) GetInstanceById

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

func (*SHost) GetIsMaintenance

func (host *SHost) GetIsMaintenance() bool

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

func (host *SHost) GetSN() string

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

func (host *SHost) IsEmulated() bool

func (*SHost) Refresh

func (host *SHost) Refresh() error

type SImage

type SImage struct {
	multicloud.SImageBase
	VolcEngineTags

	Architecture         string
	CreationTime         time.Time
	Description          string
	ImageId              string
	ImageName            string
	OSName               string
	OSType               string
	Visibility           string
	IsSupportCloudinit   bool
	IsSupportIoOptimized bool
	Platform             string
	Size                 int
	Status               ImageStatusType
	Usage                string
	BootMode             string
	// contains filtered or unexported fields
}

func (*SImage) Delete

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

func (*SImage) GetBios

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

func (*SImage) GetCreatedAt

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

func (*SImage) GetFullOsName

func (img *SImage) GetFullOsName() string

func (*SImage) GetGlobalId

func (img *SImage) GetGlobalId() string

func (*SImage) GetIStoragecache

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

func (*SImage) GetId

func (img *SImage) GetId() string

func (*SImage) GetImageFormat

func (img *SImage) GetImageFormat() string

func (*SImage) GetImageStatus

func (img *SImage) GetImageStatus() string

func (*SImage) GetImageType

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

func (*SImage) GetMinOsDiskSizeGb

func (img *SImage) GetMinOsDiskSizeGb() int

func (*SImage) GetMinRamSizeMb

func (img *SImage) GetMinRamSizeMb() int

func (*SImage) GetName

func (img *SImage) GetName() string

func (*SImage) GetOsArch

func (img *SImage) GetOsArch() string

func (*SImage) GetOsDist

func (img *SImage) GetOsDist() string

func (*SImage) GetOsLang

func (img *SImage) GetOsLang() string

func (*SImage) GetOsType

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

func (*SImage) GetOsVersion

func (img *SImage) GetOsVersion() string

func (*SImage) GetSizeByte

func (img *SImage) GetSizeByte() int64

func (*SImage) GetStatus

func (img *SImage) GetStatus() string

func (*SImage) Refresh

func (img *SImage) Refresh() error

type SInstance

type SInstance struct {
	multicloud.SInstanceBase
	VolcEngineTags

	CreatedAt          time.Time
	UpdatedAt          time.Time
	InstanceId         string
	ZoneId             string
	ImageId            string
	Status             string
	InstanceName       string
	Description        string
	Hostname           string
	VpcId              string
	InstanceTypeId     string
	Cpus               int
	MemorySize         int
	OsName             string
	OsType             string
	NetworkInterfaces  []SNetworkInterface
	RdmaIpAddress      SRdmaIPAddress
	KeyPairName        string
	KeyPairId          string
	InstanceChargeType string
	StoppedMode        string
	SpotStrategy       string
	DeploymentSetId    string
	EipAddress         SEipAddress
	ExpiredAt          time.Time
	Uuid               string
	ProjectName        string
	// contains filtered or unexported fields
}

func (*SInstance) AttachDisk

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

func (*SInstance) ChangeConfig

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

func (*SInstance) DeleteVM

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

func (*SInstance) DeployVM

func (instance *SInstance) DeployVM(ctx context.Context, opts *cloudprovider.SInstanceDeployOptions) error

func (*SInstance) DetachDisk

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

func (*SInstance) GetBillingType

func (instance *SInstance) GetBillingType() string

func (*SInstance) GetBios

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

func (*SInstance) GetBootOrder

func (instance *SInstance) GetBootOrder() string

func (*SInstance) GetCreatedAt

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

func (*SInstance) GetExpiredAt

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

func (*SInstance) GetFullOsName

func (instance *SInstance) GetFullOsName() string

func (*SInstance) GetGlobalId

func (instance *SInstance) GetGlobalId() string

func (*SInstance) GetHostname

func (instance *SInstance) GetHostname() string

func (*SInstance) GetHypervisor

func (instance *SInstance) GetHypervisor() string

func (*SInstance) GetIDisks

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

func (*SInstance) GetIEIP

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

func (*SInstance) GetIHost

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

func (*SInstance) GetIHostId

func (instance *SInstance) GetIHostId() string

func (*SInstance) GetINics

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

func (*SInstance) GetId

func (instance *SInstance) GetId() string

func (*SInstance) GetInstanceType

func (instance *SInstance) GetInstanceType() string

func (*SInstance) GetMachine

func (instance *SInstance) GetMachine() string

func (*SInstance) GetName

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

func (*SInstance) GetOsVersion

func (ins *SInstance) GetOsVersion() string

func (*SInstance) GetProjectId

func (instance *SInstance) GetProjectId() string

func (*SInstance) GetSecurityGroupIds

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

func (*SInstance) GetStatus

func (instance *SInstance) GetStatus() string

func (*SInstance) GetUserData

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

func (*SInstance) GetVNCInfo

func (instance *SInstance) GetVNCInfo(input *cloudprovider.ServerVncInput) (*cloudprovider.ServerVncOutput, error)

func (*SInstance) GetVcpuCount

func (instance *SInstance) GetVcpuCount() int

func (*SInstance) GetVdi

func (instance *SInstance) GetVdi() string

func (*SInstance) GetVga

func (instance *SInstance) GetVga() string

func (*SInstance) GetVmemSizeMB

func (instance *SInstance) GetVmemSizeMB() int

func (*SInstance) RebuildRoot

func (instance *SInstance) RebuildRoot(ctx context.Context, desc *cloudprovider.SManagedVMRebuildRootConfig) (string, error)

func (*SInstance) Refresh

func (instance *SInstance) Refresh() error

func (*SInstance) SaveImage

func (*SInstance) SetSecurityGroups

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

func (*SInstance) StartVM

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

func (*SInstance) StopVM

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

func (*SInstance) UpdatePassword

func (instance *SInstance) UpdatePassword(passwd string) error

func (*SInstance) UpdateUserData

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

func (*SInstance) UpdateVM

func (instance *SInstance) UpdateVM(ctx context.Context, input cloudprovider.SInstanceUpdateOptions) error

type SInstanceNic

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

type SKeypair

type SKeypair struct {
	KeyPairFingerPrint string
	KeyPairName        string
}

type SMetricData

type SMetricData struct {
	Legend     string
	Dimensions []struct {
		Name  string
		Value string
	}
	DataPoints []struct {
		Timestamp int64
		Value     float64
	}
}

type SNatGateway

type SNatGateway struct {
	multicloud.SNatGatewayBase
	VolcEngineTags

	NatGatewayId       string
	NatGatewayName     string
	Description        string
	Spec               string
	BillingType        int
	VpcId              string
	SubnetId           string
	ZoneId             string
	NetworkInterfaceId string
	ProjectName        string
	Status             string
	BusinessStatus     string
	LockReason         string
	CreationTime       time.Time
	UpdatedAt          time.Time
	ExpiredTime        time.Time
	OverdueTime        time.Time
	DeletedTime        time.Time
	PrivateIP          string
	// contains filtered or unexported fields
}

func (*SNatGateway) CreateINatDEntry

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

func (*SNatGateway) CreateINatSEntry

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

func (*SNatGateway) Delete

func (nat *SNatGateway) Delete() error

func (*SNatGateway) GetBandwidthMb

func (nat *SNatGateway) GetBandwidthMb() int

func (*SNatGateway) GetBillingType

func (nat *SNatGateway) GetBillingType() string

func (*SNatGateway) GetCreatedAt

func (nat *SNatGateway) GetCreatedAt() time.Time

func (*SNatGateway) GetExpiredAt

func (nat *SNatGateway) GetExpiredAt() time.Time

func (*SNatGateway) GetGlobalId

func (nat *SNatGateway) GetGlobalId() string

func (*SNatGateway) GetINatDEntryByID

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

func (*SNatGateway) GetINatDTable

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

func (*SNatGateway) GetINatSEntryByID

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

func (*SNatGateway) GetINatSTable

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

func (*SNatGateway) GetINetworkId

func (nat *SNatGateway) GetINetworkId() string

func (*SNatGateway) GetId

func (nat *SNatGateway) GetId() string

func (*SNatGateway) GetIpAddr

func (nat *SNatGateway) GetIpAddr() string

func (*SNatGateway) GetName

func (nat *SNatGateway) GetName() string

func (*SNatGateway) GetNatSpec

func (nat *SNatGateway) GetNatSpec() string

func (*SNatGateway) GetStatus

func (nat *SNatGateway) GetStatus() string

func (*SNatGateway) Refresh

func (nat *SNatGateway) Refresh() error

type SNetwork

type SNetwork struct {
	multicloud.SResourceBase
	VolcEngineTags

	AccountId               string
	SubnetId                string
	VpcId                   string
	Status                  string
	CidrBlock               string
	Ipv6CidrBlock           string
	ZoneId                  string
	AvailableIpAddressCount int
	Description             string
	SubnetName              string
	CreationTime            time.Time
	UpdateTime              time.Time
	TotalIpv4Count          int
	NetworkAclId            string
	IsDefault               bool
	RouteTable              SRouteTable
	ProjectName             string
	// contains filtered or unexported fields
}

func (*SNetwork) Delete

func (subnet *SNetwork) Delete() error

func (*SNetwork) GetAllocTimeoutSeconds

func (subnet *SNetwork) GetAllocTimeoutSeconds() int

func (*SNetwork) GetGateway

func (subnet *SNetwork) GetGateway() string

func (*SNetwork) GetGlobalId

func (subnet *SNetwork) GetGlobalId() string

func (*SNetwork) GetIWire

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

func (*SNetwork) GetId

func (subnet *SNetwork) GetId() string

func (*SNetwork) GetIpEnd

func (subnet *SNetwork) GetIpEnd() string

func (*SNetwork) GetIpMask

func (subnet *SNetwork) GetIpMask() int8

func (*SNetwork) GetIpStart

func (subnet *SNetwork) GetIpStart() string

func (*SNetwork) GetIsPublic

func (subnet *SNetwork) GetIsPublic() bool

func (*SNetwork) GetName

func (subnet *SNetwork) GetName() string

func (*SNetwork) GetProjectId

func (subnet *SNetwork) GetProjectId() string

func (*SNetwork) GetPublicScope

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

func (*SNetwork) GetServerType

func (subnet *SNetwork) GetServerType() string

func (*SNetwork) GetStatus

func (subnet *SNetwork) GetStatus() string

func (*SNetwork) Refresh

func (subnet *SNetwork) Refresh() error

type SNetworkInterface

type SNetworkInterface struct {
	cloudprovider.DummyICloudNic
	multicloud.SNetworkInterfaceBase
	VolcEngineTags

	InstanceId           string
	NetworkInterfaceId   string
	VpcId                string
	SubnetId             string
	PrimaryIpAddress     string
	Type                 string
	MacAddress           string
	CreationTime         time.Time
	NetworkInterfaceName string
	PrivateIpSets        SPrivateIpSets
	ResourceGroupId      string
	SecurityGroupIds     SSecurityGroupIds
	Status               string
	ZoneId               string
	PrivateIpAddresses   []string
	AssociatedElasticIp  SAssociatedElasticIp
	// contains filtered or unexported fields
}

func (*SNetworkInterface) AssignAddress

func (nic *SNetworkInterface) AssignAddress(ipAddrs []string) error

func (*SNetworkInterface) GetAssociateId

func (nic *SNetworkInterface) GetAssociateId() string

func (*SNetworkInterface) GetAssociateType

func (nic *SNetworkInterface) GetAssociateType() string

func (*SNetworkInterface) GetDriver

func (nic *SNetworkInterface) GetDriver() string

func (*SNetworkInterface) GetGlobalId

func (nic *SNetworkInterface) GetGlobalId() string

func (*SNetworkInterface) GetICloudInterfaceAddresses

func (nic *SNetworkInterface) GetICloudInterfaceAddresses() ([]cloudprovider.ICloudInterfaceAddress, error)

func (*SNetworkInterface) GetINetworkId

func (nic *SNetworkInterface) GetINetworkId() string

func (*SNetworkInterface) GetIP

func (nic *SNetworkInterface) GetIP() string

func (*SNetworkInterface) GetId

func (nic *SNetworkInterface) GetId() string

func (*SNetworkInterface) GetMAC

func (nic *SNetworkInterface) GetMAC() string

func (*SNetworkInterface) GetMacAddress

func (nic *SNetworkInterface) GetMacAddress() string

func (*SNetworkInterface) GetName

func (nic *SNetworkInterface) GetName() string

func (*SNetworkInterface) GetStatus

func (nic *SNetworkInterface) GetStatus() string

func (*SNetworkInterface) GetSubAddress

func (nic *SNetworkInterface) GetSubAddress() ([]string, error)

func (*SNetworkInterface) InClassicNetwork

func (nic *SNetworkInterface) InClassicNetwork() bool

func (*SNetworkInterface) UnassignAddress

func (nic *SNetworkInterface) UnassignAddress(ipAddrs []string) error

type SObject

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

func (*SObject) GetAcl

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

func (*SObject) GetIBucket

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

func (*SObject) GetMeta

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

func (*SObject) SetAcl

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

func (*SObject) SetMeta

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

type SPrivateIp

type SPrivateIp struct {
	Primary          bool
	PrivateIpAddress string
	// contains filtered or unexported fields
}

func (*SPrivateIp) GetGlobalId

func (ip *SPrivateIp) GetGlobalId() string

func (*SPrivateIp) GetINetworkId

func (ip *SPrivateIp) GetINetworkId() string

func (*SPrivateIp) GetIP

func (ip *SPrivateIp) GetIP() string

func (*SPrivateIp) IsPrimary

func (ip *SPrivateIp) IsPrimary() bool

type SPrivateIpSets

type SPrivateIpSets struct {
	PrivateIpSet []SPrivateIp
}

type SProject

type SProject struct {
	multicloud.SProjectBase
	VolcEngineTags

	AccountId         int
	ProjectName       string
	ParentProjectName string
	Path              string
	DisplayName       string
	Description       string
	CreateDate        time.Time
	UpdateDate        time.Time
	Status            string
	// contains filtered or unexported fields
}

func (*SProject) GetGlobalId

func (project *SProject) GetGlobalId() string

func (*SProject) GetId

func (project *SProject) GetId() string

func (*SProject) GetName

func (project *SProject) GetName() string

func (*SProject) GetStatus

func (project *SProject) GetStatus() string

func (*SProject) Refresh

func (project *SProject) Refresh() error

type SRdmaIPAddress

type SRdmaIPAddress []string

type SRegion

type SRegion struct {
	multicloud.SRegion
	multicloud.SNoLbRegion

	RegionId string
	// contains filtered or unexported fields
}

func (*SRegion) AllocateEIP

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

func (*SRegion) AssignAddres

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

func (*SRegion) AssociateEip

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

func (*SRegion) AssociateRouteTable

func (region *SRegion) AssociateRouteTable(rtableId string, SubnetId string) error

func (*SRegion) AttachDisk

func (region *SRegion) AttachDisk(instanceId string, diskId string) error

func (*SRegion) AttachKeypair

func (region *SRegion) AttachKeypair(instanceId string, name string) error

func (*SRegion) ChangeConfig

func (region *SRegion) ChangeConfig(instanceId string, instanceTypeId string) error

func (*SRegion) CreateDisk

func (region *SRegion) CreateDisk(zoneId string, category string, name string, sizeGb int, desc string, projectId string) (string, error)

func (*SRegion) CreateDnatEntry

func (region *SRegion) CreateDnatEntry(rule cloudprovider.SNatDRule, natGatewayId string) (string, error)

func (*SRegion) CreateEIP

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

func (*SRegion) CreateIBucket

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

func (*SRegion) CreateISecurityGroup

Security Group

func (*SRegion) CreateIVpc

func (region *SRegion) CreateIVpc(opts *cloudprovider.VpcCreateOptions) (cloudprovider.ICloudVpc, error)

vpc

func (*SRegion) CreateInstance

func (region *SRegion) CreateInstance(zoneId string, opts *cloudprovider.SManagedVMCreateConfig) (string, error)

region

func (*SRegion) CreateNatGateway

func (region *SRegion) CreateNatGateway(opts *cloudprovider.NatGatewayCreateOptions) (*SNatGateway, error)

func (*SRegion) CreateSecurityGroup

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

func (*SRegion) CreateSecurityGroupRule

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

func (*SRegion) CreateSnatEntry

func (region *SRegion) CreateSnatEntry(rule cloudprovider.SNatSRule, natGatewayId string) (string, error)

func (*SRegion) CreateSubnet

func (region *SRegion) CreateSubnet(zoneId string, vpcId string, name string, cidr string, desc string) (string, error)

func (*SRegion) CreateVpc

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

func (*SRegion) DeallocateEIP

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

func (*SRegion) DeleteDisk

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

func (*SRegion) DeleteDnatEntry

func (region *SRegion) DeleteDnatEntry(dnatEntryId string) error

func (*SRegion) DeleteIBucket

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

func (*SRegion) DeleteImage

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

func (*SRegion) DeleteNatGateway

func (region *SRegion) DeleteNatGateway(natId string, isForce bool) error

func (*SRegion) DeleteSecurityGroup

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

func (*SRegion) DeleteSnatEntry

func (region *SRegion) DeleteSnatEntry(snatEntryId string) error

func (*SRegion) DeleteSubnet

func (region *SRegion) DeleteSubnet(SubnetId string) error

func (*SRegion) DeleteVM

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

func (*SRegion) DeleteVpc

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

func (*SRegion) DeployVM

func (region *SRegion) DeployVM(instanceId string, opts *cloudprovider.SInstanceDeployOptions) error

func (*SRegion) DescribeInstanceVncUrl

func (self *SRegion) DescribeInstanceVncUrl(id string) (string, error)

func (*SRegion) DetachDisk

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

func (*SRegion) DetachKeyPair

func (region *SRegion) DetachKeyPair(instanceId string, name string) error

func (*SRegion) DissociateEip

func (region *SRegion) DissociateEip(eipId string, instanceId string) error

func (*SRegion) ExportImage

func (region *SRegion) ExportImage(imageId, bucketName string) (string, error)

func (*SRegion) FetchSubnets

func (region *SRegion) FetchSubnets(ids []string, zoneId string, vpcId string) ([]SNetwork, error)

func (*SRegion) GetAllVpcs

func (region *SRegion) GetAllVpcs() ([]SVpc, error)

func (*SRegion) GetCapabilities

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

func (*SRegion) GetClient

func (region *SRegion) GetClient() *SVolcEngineClient

func (*SRegion) GetCloudEnv

func (region *SRegion) GetCloudEnv() string

func (*SRegion) GetDisk

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

func (*SRegion) GetDisks

func (region *SRegion) GetDisks(instanceId string, zoneId string, category string, diskIds []string) ([]SDisk, error)

region

func (*SRegion) GetDnatEntries

func (region *SRegion) GetDnatEntries(natGatewayId string, pageNumber int, pageSize int) ([]SDNATEntry, int, error)

func (*SRegion) GetDnatEntry

func (region *SRegion) GetDnatEntry(natGatewayId string, dnatEntryID string) (SDNATEntry, error)

func (*SRegion) GetEip

func (region *SRegion) GetEip(eipId string) (*SEipAddress, error)

func (*SRegion) GetEips

func (region *SRegion) GetEips(eipIds []string, associatedId string, addresses []string, pageNumber int, pageSize int) ([]SEipAddress, int, error)

func (*SRegion) GetGeographicInfo

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

func (*SRegion) GetGlobalId

func (region *SRegion) GetGlobalId() string

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

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

func (*SRegion) GetIEipById

func (region *SRegion) GetIEipById(eipId string) (cloudprovider.ICloudEIP, error)

EIP

func (*SRegion) GetIEips

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

func (*SRegion) GetIHostById

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

func (*SRegion) GetIHosts

func (regioin *SRegion) GetIHosts() ([]cloudprovider.ICloudHost, 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) 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) GetIVMs

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

func (*SRegion) GetIVpcById

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

func (*SRegion) GetIVpcs

func (region *SRegion) GetIVpcs() ([]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) GetId

func (region *SRegion) GetId() string

func (*SRegion) GetImage

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

func (*SRegion) GetImageByName

func (region *SRegion) GetImageByName(name string) (*SImage, error)

func (*SRegion) GetImageStatus

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

func (*SRegion) GetImages

func (region *SRegion) GetImages(visibility string, imageIds []string, name string) ([]SImage, error)

func (*SRegion) GetInstance

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

func (*SRegion) GetInstanceStatus

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

func (*SRegion) GetInstances

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

func (*SRegion) GetKeypairs

func (region *SRegion) GetKeypairs(finger string, name string, limit int, token string) ([]SKeypair, string, error)

func (*SRegion) GetName

func (region *SRegion) GetName() string

func (*SRegion) GetNatGateways

func (region *SRegion) GetNatGateways(vpcId string, natGatewayId string, pageNumber int, pageSize int) ([]SNatGateway, int, error)

func (*SRegion) GetNetworkInterfaces

func (region *SRegion) GetNetworkInterfaces(instanceId string, pageNumber int, pageSize int) ([]SNetworkInterface, int, error)

func (*SRegion) GetProvider

func (region *SRegion) GetProvider() string

func (*SRegion) GetRouteTables

func (region *SRegion) GetRouteTables(ids []string, pageNumber int, pageSize int) ([]SRouteTable, int, error)

func (*SRegion) GetSecurityGroup

func (region *SRegion) GetSecurityGroup(secGroupId string) (*SSecurityGroup, error)

func (*SRegion) GetSecurityGroupRules

func (region *SRegion) GetSecurityGroupRules(secGroupId string) ([]SSecurityGroupRule, error)

func (*SRegion) GetSecurityGroups

func (region *SRegion) GetSecurityGroups(vpcId, name string, securityGroupIds []string, pageSize int, pageNumber int) ([]SSecurityGroup, int, error)

func (*SRegion) GetSnatEntries

func (region *SRegion) GetSnatEntries(natGatewayId string, pageNumber int, pageSize int) ([]SSNATEntry, int, error)

func (*SRegion) GetSnatEntry

func (region *SRegion) GetSnatEntry(natGatewayId string, snatEntryID string) (SSNATEntry, error)

func (*SRegion) GetStatus

func (region *SRegion) GetStatus() string

func (*SRegion) GetStorageTypes

func (self *SRegion) GetStorageTypes(zoneId string) ([]sStorageType, error)

func (*SRegion) GetSubAddress

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

func (*SRegion) GetSubnetAttributes

func (region *SRegion) GetSubnetAttributes(SubnetId string) (*SNetwork, error)

func (*SRegion) GetSubnets

func (region *SRegion) GetSubnets(ids []string, zoneId string, vpcId string, pageNumber int, pageSize int) ([]SNetwork, int, error)

func (*SRegion) GetTosClient

func (region *SRegion) GetTosClient() (*tos.ClientV2, error)

func (*SRegion) GetVpcs

func (region *SRegion) GetVpcs(vpcIds []string, pageNumber int, pageSize int) ([]SVpc, int, error)

func (*SRegion) GetZones

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

func (*SRegion) IBucketExist

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

IBucket

func (*SRegion) ImportImage

func (region *SRegion) ImportImage(name string, osArch string, osType string, platform, platformVersion string, bucket string, key string) (string, error)

func (*SRegion) ImportKeypair

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

func (*SRegion) ModifyNetworkInterfaceAttributes

func (self *SRegion) ModifyNetworkInterfaceAttributes(id string, secgroupIds []string) error

func (*SRegion) Refresh

func (region *SRegion) Refresh() error

func (*SRegion) RenewInstance

func (region *SRegion) RenewInstance(instanceId string, bc billing.SBillingCycle) error

func (*SRegion) ResizeDisk

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

func (*SRegion) SaveImage

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

func (*SRegion) StartVM

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

func (*SRegion) StopVM

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

func (*SRegion) UnassignAddress

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

func (*SRegion) UnassociateRouteTable

func (region *SRegion) UnassociateRouteTable(rtableId string, SubnetId string) error

func (*SRegion) UpdateEipBandwidth

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

func (*SRegion) UpdateInstancePassword

func (region *SRegion) UpdateInstancePassword(instanceId string, passwd string) error

func (*SRegion) UpdateVM

func (region *SRegion) UpdateVM(instanceId string, name, description string) error

type SRouteEntry

type SRouteEntry struct {
	multicloud.SResourceBase
	VolcEngineTags

	Description          string
	DestinationCidrBlock string
	RouteEntryId         string
	RouteEntryName       string
	RouteTableId         string
	Status               string
	Type                 string
	VpcId                string
	NextHopId            string
	NextHopName          string
	NextHopType          string
	// contains filtered or unexported fields
}

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

func (route *SRouteEntry) Refresh() error

type SRouteEntrys

type SRouteEntrys []*SRouteEntry

type SRouteTable

type SRouteTable struct {
	multicloud.SResourceBase
	VolcEngineTags

	Description    string
	RouteTableId   string
	RouteTableName string
	RouteTableType string
	VpcId          string
	VpcName        string
	CreationTime   time.Time
	UpdateTime     time.Time
	AccountId      string
	ProjectName    string
	SubnetIds      SubnetIds
	RouteEntrys    SRouteEntrys
	// contains filtered or unexported fields
}

func (*SRouteTable) CreateRoute

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

func (*SRouteTable) GetAssociations

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

func (*SRouteTable) GetDescription

func (table *SRouteTable) GetDescription() string

func (*SRouteTable) GetGlobalId

func (table *SRouteTable) GetGlobalId() string

func (*SRouteTable) GetIRoutes

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

func (*SRouteTable) GetId

func (table *SRouteTable) GetId() string

func (*SRouteTable) GetName

func (table *SRouteTable) GetName() string

func (*SRouteTable) GetRegionId

func (table *SRouteTable) GetRegionId() string

func (*SRouteTable) GetStatus

func (table *SRouteTable) GetStatus() string

func (*SRouteTable) GetType

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

func (*SRouteTable) GetVpcId

func (table *SRouteTable) GetVpcId() string

func (*SRouteTable) IsSystem

func (routeTable *SRouteTable) IsSystem() bool

func (*SRouteTable) Refresh

func (table *SRouteTable) Refresh() error

func (*SRouteTable) RemoteGetRoutes

func (table *SRouteTable) RemoteGetRoutes(pageNumber int, pageSize int) ([]*SRouteEntry, int, error)

func (*SRouteTable) RemoveRoute

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

func (*SRouteTable) UpdateRoute

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

type SSNATEntry

type SSNATEntry struct {
	multicloud.SResourceBase
	VolcEngineTags

	NatGatewayId  string
	SnatEntryId   string
	SnatEntryName string
	SubnetId      string
	SourceCidr    string
	EipId         string
	EipAddress    string
	Status        string
	// contains filtered or unexported fields
}

func (*SSNATEntry) Delete

func (sentry *SSNATEntry) Delete() error

func (*SSNATEntry) GetGlobalId

func (sentry *SSNATEntry) GetGlobalId() string

func (*SSNATEntry) GetIP

func (sentry *SSNATEntry) GetIP() string

func (*SSNATEntry) GetId

func (sentry *SSNATEntry) GetId() string

func (*SSNATEntry) GetName

func (sentry *SSNATEntry) GetName() string

func (*SSNATEntry) GetNetworkId

func (sentry *SSNATEntry) GetNetworkId() string

func (*SSNATEntry) GetSourceCIDR

func (sentry *SSNATEntry) GetSourceCIDR() string

func (*SSNATEntry) GetStatus

func (sentry *SSNATEntry) GetStatus() string

func (*SSNATEntry) Refresh

func (sentry *SSNATEntry) Refresh() error

type SSecurityGroup

type SSecurityGroup struct {
	multicloud.SSecurityGroup
	VolcEngineTags

	Description       string
	SecurityGroupId   string
	SecurityGroupName string
	VpcId             string
	CreationTime      time.Time
	UpdateTime        time.Time
	Type              string
	ProjectName       string
	ServiceManaged    bool
	Status            string
	// contains filtered or unexported fields
}

func (*SSecurityGroup) Delete

func (secgroup *SSecurityGroup) Delete() error

func (*SSecurityGroup) GetCreatedAt

func (secgroup *SSecurityGroup) GetCreatedAt() time.Time

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

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

func (*SSecurityGroup) GetRules

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

func (*SSecurityGroup) GetStatus

func (secgroup *SSecurityGroup) GetStatus() string

func (*SSecurityGroup) GetVpcId

func (secgroup *SSecurityGroup) GetVpcId() string

func (*SSecurityGroup) Refresh

func (secgroup *SSecurityGroup) Refresh() error

func (*SSecurityGroup) SetTags

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

type SSecurityGroupIds

type SSecurityGroupIds []string

type SSecurityGroupRule

type SSecurityGroupRule struct {
	CreationTime    time.Time
	UpdateTime      time.Time
	Description     string
	Direction       string
	Protocol        string
	Policy          string
	PortStart       int
	PortEnd         int
	CidrIp          string
	PrefixListId    string
	PrefixListCidrs SCidrList
	Priority        int
	SourceGroupId   string
	// contains filtered or unexported fields
}

func (*SSecurityGroupRule) Delete

func (self *SSecurityGroupRule) Delete() error

func (*SSecurityGroupRule) GetAction

func (*SSecurityGroupRule) GetCIDRs

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

func (*SSecurityGroupRule) GetDescription

func (self *SSecurityGroupRule) GetDescription() string

func (*SSecurityGroupRule) GetDirection

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

func (*SSecurityGroupRule) GetGlobalId

func (self *SSecurityGroupRule) GetGlobalId() string

func (*SSecurityGroupRule) GetPorts

func (self *SSecurityGroupRule) GetPorts() string

func (*SSecurityGroupRule) GetPriority

func (self *SSecurityGroupRule) GetPriority() int

func (*SSecurityGroupRule) GetProtocol

func (self *SSecurityGroupRule) GetProtocol() string

func (*SSecurityGroupRule) Update

type SStorage

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

func (*SStorage) CreateIDisk

func (storage *SStorage) CreateIDisk(conf *cloudprovider.DiskCreateConfig) (cloudprovider.ICloudDisk, error)

func (*SStorage) GetCapacityMB

func (storage *SStorage) GetCapacityMB() int64

func (*SStorage) GetCapacityUsedMB

func (storage *SStorage) GetCapacityUsedMB() int64

func (*SStorage) GetEnabled

func (storage *SStorage) GetEnabled() bool

func (*SStorage) GetGlobalId

func (storage *SStorage) GetGlobalId() string

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

func (storage *SStorage) GetId() string

func (*SStorage) GetMediumType

func (storage *SStorage) GetMediumType() string

func (*SStorage) GetMountPoint

func (storage *SStorage) GetMountPoint() string

func (*SStorage) GetName

func (storage *SStorage) GetName() string

func (*SStorage) GetStatus

func (storage *SStorage) GetStatus() string

func (*SStorage) GetStorageConf

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

func (*SStorage) GetStorageType

func (storage *SStorage) GetStorageType() string

func (*SStorage) IsEmulated

func (storage *SStorage) IsEmulated() bool

func (*SStorage) IsSysDiskStore

func (storage *SStorage) IsSysDiskStore() bool

type SStoragecache

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

func (*SStoragecache) GetGlobalId

func (scache *SStoragecache) GetGlobalId() string

func (*SStoragecache) GetICloudImages

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

func (*SStoragecache) GetICustomizedCloudImages

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

func (*SStoragecache) GetIImageById

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

func (*SStoragecache) GetId

func (scache *SStoragecache) GetId() string

func (*SStoragecache) GetName

func (scache *SStoragecache) GetName() string

func (*SStoragecache) GetPath

func (scache *SStoragecache) GetPath() string

func (*SStoragecache) GetStatus

func (scache *SStoragecache) GetStatus() string

func (*SStoragecache) Refresh

func (scache *SStoragecache) Refresh() error

func (*SStoragecache) UploadImage

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

type SSupportedResource

type SSupportedResource struct {
	Status string
	Value  string
}

type SUser

type SUser struct {
	Id                  int
	CreateDate          time.Time
	UpdateDate          time.Time
	Status              string
	AccountId           string
	UserName            string
	Description         string
	DisplayName         string
	Email               string
	EmailIsVerify       bool
	MobilePhone         string
	MobilePhoneIsVerify bool
	Trn                 string
	Source              string
}

type SUserCIDRs

type SUserCIDRs []string

type SVolcEngineClient

type SVolcEngineClient struct {
	*VolcEngineClientConfig
	// contains filtered or unexported fields
}

func NewVolcEngineClient

func NewVolcEngineClient(cfg *VolcEngineClientConfig) (*SVolcEngineClient, error)

func (*SVolcEngineClient) CreateIProject

func (client *SVolcEngineClient) CreateIProject(name string) (cloudprovider.ICloudProject, error)

func (*SVolcEngineClient) CreateProject

func (client *SVolcEngineClient) CreateProject(name string) (*SProject, error)

func (*SVolcEngineClient) GetAccessEnv

func (client *SVolcEngineClient) GetAccessEnv() string

func (*SVolcEngineClient) GetAccountId

func (client *SVolcEngineClient) GetAccountId() string

func (*SVolcEngineClient) GetCallerIdentity

func (client *SVolcEngineClient) GetCallerIdentity() (*SCallerIdentity, error)

func (*SVolcEngineClient) GetCapabilities

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

func (*SVolcEngineClient) GetEcsMetrics

func (*SVolcEngineClient) GetIProjects

func (client *SVolcEngineClient) GetIProjects() ([]cloudprovider.ICloudProject, error)

func (*SVolcEngineClient) GetIRegionById

func (client *SVolcEngineClient) GetIRegionById(id string) (cloudprovider.ICloudRegion, error)

func (*SVolcEngineClient) GetIRegions

func (client *SVolcEngineClient) GetIRegions() []cloudprovider.ICloudRegion

func (*SVolcEngineClient) GetMetricData

func (self *SVolcEngineClient) GetMetricData(regionId string, start, end time.Time, namespace, subNamespace, metricName string, ids []string) ([]SMetricData, error)

func (*SVolcEngineClient) GetMetrics

func (*SVolcEngineClient) GetOssMetrics

func (*SVolcEngineClient) GetProject

func (client *SVolcEngineClient) GetProject(name string) (*SProject, error)

func (*SVolcEngineClient) GetProjects

func (client *SVolcEngineClient) GetProjects() ([]SProject, error)

func (*SVolcEngineClient) GetRegion

func (client *SVolcEngineClient) GetRegion(regionId string) *SRegion

func (*SVolcEngineClient) GetRegions

func (client *SVolcEngineClient) GetRegions() []SRegion

func (*SVolcEngineClient) GetSubAccounts

func (client *SVolcEngineClient) GetSubAccounts() ([]cloudprovider.SSubAccount, error)

func (*SVolcEngineClient) ListProjects

func (client *SVolcEngineClient) ListProjects(limit int, offset int) ([]SProject, int, error)

func (*SVolcEngineClient) QueryBalance

func (client *SVolcEngineClient) QueryBalance() (*SBalance, error)

type SVpc

type SVpc struct {
	multicloud.SVpc
	VolcEngineTags

	RegionId                string
	VpcId                   string
	VpcName                 string
	CidrBlock               string
	CidrBlockAssociationSet []string
	IsDefault               bool
	Status                  string
	InstanceTenancy         string
	// contains filtered or unexported fields
}

func (*SVpc) CreateINatGateway

func (*SVpc) Delete

func (vpc *SVpc) Delete() error

func (*SVpc) GetAuthorityOwnerId

func (vpc *SVpc) GetAuthorityOwnerId() string

func (*SVpc) GetCidrBlock

func (vpc *SVpc) GetCidrBlock() string

func (*SVpc) GetGlobalId

func (vpc *SVpc) GetGlobalId() string

func (*SVpc) GetIRouteTableById

func (vpc *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) GetId

func (vpc *SVpc) GetId() string

func (*SVpc) GetIsDefault

func (vpc *SVpc) GetIsDefault() bool

func (*SVpc) GetName

func (vpc *SVpc) GetName() string

func (*SVpc) GetRegion

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

func (*SVpc) GetStatus

func (vpc *SVpc) GetStatus() string

func (*SVpc) IsEmulated

func (vpc *SVpc) IsEmulated() bool

func (*SVpc) Refresh

func (vpc *SVpc) Refresh() error

func (*SVpc) RemoteGetRouteTableList

func (vpc *SVpc) RemoteGetRouteTableList(pageNumber int, pageSize int) ([]*SRouteTable, int, error)

type SWire

type SWire struct {
	multicloud.SResourceBase
	VolcEngineTags
	// contains filtered or unexported fields
}

func (*SWire) CreateINetwork

func (*SWire) GetBandwidth

func (wire *SWire) GetBandwidth() int

func (*SWire) GetGlobalId

func (wire *SWire) GetGlobalId() string

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

func (wire *SWire) GetId() string

func (*SWire) GetName

func (wire *SWire) GetName() string

func (*SWire) GetStatus

func (wire *SWire) GetStatus() string

func (*SWire) IsEmulated

func (wire *SWire) IsEmulated() bool

func (*SWire) Refresh

func (wire *SWire) Refresh() error

type SZone

type SZone struct {
	multicloud.SResourceBase
	VolcEngineTags

	Status             string
	AvailableResources []SAvailableResource

	ZoneId    string
	RegionId  string
	LocalName string
	// contains filtered or unexported fields
}

func (*SZone) GetGlobalId

func (zone *SZone) GetGlobalId() string

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

func (zone *SZone) GetIWires() ([]cloudprovider.ICloudWire, error)

func (*SZone) GetId

func (zone *SZone) GetId() string

func (*SZone) GetName

func (zone *SZone) GetName() string

func (*SZone) GetStatus

func (zone *SZone) GetStatus() string

func (*SZone) GetStorages

func (zone *SZone) GetStorages() ([]SStorage, error)

type SubnetIds

type SubnetIds []string

type TBillingType

type TBillingType int
const (
	BillingByPrePaid TBillingType = iota + 1
	BillingByBandwidth
	BillingByTraffic
)

type VolcEngineClientConfig

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

func NewVolcEngineClientConfig

func NewVolcEngineClientConfig(accessKey, secretKey string) *VolcEngineClientConfig

func (*VolcEngineClientConfig) AccountId

func (*VolcEngineClientConfig) CloudproviderConfig

func (VolcEngineClientConfig) Copy

func (*VolcEngineClientConfig) Debug

type VolcEngineTags

type VolcEngineTags struct {
	Tags []multicloud.STag
}

func (*VolcEngineTags) GetSysTags

func (itag *VolcEngineTags) GetSysTags() map[string]string

func (*VolcEngineTags) GetTags

func (itag *VolcEngineTags) GetTags() (map[string]string, error)

func (*VolcEngineTags) SetTags

func (itag *VolcEngineTags) SetTags(tags map[string]string, replace bool) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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