openstack

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

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

Go to latest
Published: Nov 16, 2023 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DISK_STATUS_CREATING = "creating" // The volume is being created.

	DISK_STATUS_ATTACHING = "attaching" // The volume is attaching to an instance.
	DISK_STATUS_DETACHING = "detaching" // The volume is detaching from an instance.
	DISK_STATUS_EXTENDING = "extending" // The volume is being extended.
	DISK_STATUS_DELETING  = "deleting"  // The volume is being deleted.

	DISK_STATUS_RETYPING          = "retyping"          // The volume is changing type to another volume type.
	DISK_STATUS_AVAILABLE         = "available"         // The volume is ready to attach to an instance.
	DISK_STATUS_RESERVED          = "reserved"          // The volume is reserved for attaching or shelved.
	DISK_STATUS_IN_USE            = "in-use"            // The volume is attached to an instance.
	DISK_STATUS_MAINTENANCE       = "maintenance"       // The volume is locked and being migrated.
	DISK_STATUS_AWAITING_TRANSFER = "awaiting-transfer" // The volume is awaiting for transfer.
	DISK_STATUS_BACKING_UP        = "backing-up"        // The volume is being backed up.
	DISK_STATUS_RESTORING_BACKUP  = "restoring-backup"  // A backup is being restored to the volume.
	DISK_STATUS_DOWNLOADING       = "downloading"       // The volume is downloading an image.
	DISK_STATUS_UPLOADING         = "uploading"         // The volume is being uploaded to an image.

	DISK_STATUS_ERROR            = "error"            // A volume creation error occurred.
	DISK_STATUS_ERROR_DELETING   = "error_deleting"   // A volume deletion error occurred.
	DISK_STATUS_ERROR_BACKING_UP = "error_backing-up" // A backup error occurred.
	DISK_STATUS_ERROR_RESTORING  = "error_restoring"  // A backup restoration error occurred.
	DISK_STATUS_ERROR_EXTENDING  = "error_extending"  // An error occurred while attempting to extend a volume.

)
View Source
const (
	QUEUED         = "queued"         //	The Image service reserved an image ID for the image in the catalog but did not yet upload any image data.
	SAVING         = "saving"         //	The Image service is in the process of saving the raw data for the image into the backing store.
	ACTIVE         = "active"         //	The image is active and ready for consumption in the Image service.
	KILLED         = "killed"         // An image data upload error occurred.
	DELETED        = "deleted"        //	The Image service retains information about the image but the image is no longer available for use.
	PENDING_DELETE = "pending_delete" // Similar to the deleted status. An image in this state is not recoverable.
	DEACTIVATED    = "deactivated"    //	The image data is not available for use.
	UPLOADING      = "uploading"      // Data has been staged as part of the interoperable image import process. It is not yet available for use. (Since Image API 2.6)
	IMPORTING      = "importing"      //	The image data is being processed as part of the interoperable image import process, but is not yet available for use. (Since Image API 2.6)
)
View Source
const (
	INSTANCE_STATUS_ACTIVE            = "ACTIVE"            //The server is active.
	INSTANCE_STATUS_BUILD             = "BUILD"             //The server has not finished the original build process.
	INSTANCE_STATUS_DELETED           = "DELETED"           //The server is permanently deleted.
	INSTANCE_STATUS_ERROR             = "ERROR"             //The server is in error.
	INSTANCE_STATUS_HARD_REBOOT       = "HARD_REBOOT"       //The server is hard rebooting. This is equivalent to pulling the power plug on a physical server, plugging it back in, and rebooting it.
	INSTANCE_STATUS_MIGRATING         = "MIGRATING"         //The server is being migrated to a new host.
	INSTANCE_STATUS_PASSWORD          = "PASSWORD"          //The password is being reset on the server.
	INSTANCE_STATUS_PAUSED            = "PAUSED"            //In a paused state, the state of the server is stored in RAM.A paused server continues to run in frozen state.
	INSTANCE_STATUS_REBOOT            = "REBOOT"            //The server is in a soft reboot state. A reboot command was passed to the operating system.
	INSTANCE_STATUS_REBUILD           = "REBUILD"           //The server is currently being rebuilt from an image.
	INSTANCE_STATUS_RESCUE            = "RESCUE"            //The server is in rescue mode. A rescue image is running with the original server image attached.
	INSTANCE_STATUS_RESIZE            = "RESIZE"            //Server is performing the differential copy of data that changed during its initial copy. Server is down for this stage.
	INSTANCE_STATUS_REVERT_RESIZE     = "REVERT_RESIZE"     //The resize or migration of a server failed for some reason. The destination server is being cleaned up and the original source server is restarting.
	INSTANCE_STATUS_SHELVED           = "SHELVED"           // The server is in shelved state. Depending on the shelve offload time, the server will be automatically shelved offloaded.
	INSTANCE_STATUS_SHELVED_OFFLOADED = "SHELVED_OFFLOADED" // The shelved server is offloaded (removed from the compute host) and it needs unshelved action to be used again.
	INSTANCE_STATUS_SHUTOFF           = "SHUTOFF"           //The server is powered off and the disk image still persists.
	INSTANCE_STATUS_SOFT_DELETED      = "SOFT_DELETED"      //The server is marked as deleted but the disk images are still available to restore.
	INSTANCE_STATUS_SUSPENDED         = "SUSPENDED"         //The server is suspended, either by request or necessity. This status appears for only the XenServer/XCP, KVM, and ESXi hypervisors. Administrative users can suspend an instance if it is infrequently used or to perform system maintenance. When you suspend an instance, its VM state is stored on disk, all memory is written to disk, and the virtual machine is stopped. Suspending an instance is similar to placing a device in hibernation; memory and vCPUs become available to create other instances.
	INSTANCE_STATUS_UNKNOWN           = "UNKNOWN"           //The state of the server is unknown. Contact your cloud provider.
	INSTANCE_STATUS_VERIFY_RESIZE     = "VERIFY_RESIZE"     //System is awaiting confirmation that the server is operational after a move or resize.
)
View Source
const (
	CLOUD_PROVIDER_OPENSTACK = api.CLOUD_PROVIDER_OPENSTACK
	OPENSTACK_DEFAULT_REGION = "RegionOne"

	OPENSTACK_SERVICE_COMPUTE      = "compute"
	OPENSTACK_SERVICE_NETWORK      = "network"
	OPENSTACK_SERVICE_IDENTITY     = "identity"
	OPENSTACK_SERVICE_VOLUMEV3     = "volumev3"
	OPENSTACK_SERVICE_VOLUMEV2     = "volumev2"
	OPENSTACK_SERVICE_VOLUME       = "volume"
	OPENSTACK_SERVICE_IMAGE        = "image"
	OPENSTACK_SERVICE_LOADBALANCER = "load-balancer"

	ErrNoEndpoint = errors.Error("no valid endpoint")
)
View Source
const (
	SNAPSHOT_STATUS_CREATING       = "creating"       //The snapshot is being created.
	SNAPSHOT_STATUS_AVAILABLE      = "available"      //The snapshot is ready to use.
	SNAPSHOT_STATUS_BACKING_UP     = "backing-up"     //The snapshot is being backed up.
	SNAPSHOT_STATUS_DELETING       = "deleting"       //The snapshot is being deleted.
	SNAPSHOT_STATUS_ERROR          = "error"          //A snapshot creation error occurred.
	SNAPSHOT_STATUS_DELETED        = "deleted"        //The snapshot has been deleted.
	SNAPSHOT_STATUS_UNMANAGING     = "unmanaging"     //The snapshot is being unmanaged.
	SNAPSHOT_STATUS_RESTORING      = "restoring"      //The snapshot is being restored to a volume.
	SNAPSHOT_STATUS_ERROR_DELETING = "error_deleting" //A snapshot deletion error occurred.
)
View Source
const (
	VPC_STATUS_ACTIVE = "ACTIVE"
	VPC_STATUS_DOWN   = "DOWN"
	VPC_STATUS_BUILD  = "BUILD"
	VPC_STATUS_ERROR  = "ERROR"
)
View Source
const (
	DEFAULT_STORAGE_TYPE = "scheduler"
)
View Source
const (
	SECGROUP_NOT_SUPPORT = "openstack_skip_security_group"
)

Variables

View Source
var LB_ALGORITHM_MAP = map[string]string{
	api.LB_SCHEDULER_RR:  "ROUND_ROBIN",
	api.LB_SCHEDULER_WRR: "ROUND_ROBIN",
	api.LB_SCHEDULER_WLC: "LEAST_CONNECTIONS",
	api.LB_SCHEDULER_SCH: "SOURCE_IP",
	api.LB_SCHEDULER_TCH: "SOURCE_IP_PORT",
}
View Source
var LB_HEALTHCHECK_TYPE_MAP = map[string]string{
	api.LB_HEALTH_CHECK_HTTP:  "HTTP",
	api.LB_HEALTH_CHECK_HTTPS: "HTTPS",
	api.LB_HEALTH_CHECK_TCP:   "TCP",
	api.LB_HEALTH_CHECK_UDP:   "UDP_CONNECT",
}
View Source
var LB_STICKY_SESSION_MAP = map[string]string{
	api.LB_STICKY_SESSION_TYPE_INSERT: "HTTP_COOKIE",
	api.LB_STICKY_SESSION_TYPE_SERVER: "APP_COOKIE",
}

Functions

func ToOnecloudHealthCheckHttpCode

func ToOnecloudHealthCheckHttpCode(c string) string

func ToOpenstackHealthCheckHttpCode

func ToOpenstackHealthCheckHttpCode(c string) string

Types

type AclEntry

type AclEntry struct {
	AclEntryComment string
	AclEntryIP      string
}

type AclEntrys

type AclEntrys struct {
	AclEntry []AclEntry
}

type AllocationPool

type AllocationPool struct {
	Start string `json:"start"`
	End   string `json:"end"`
}

func (AllocationPool) Contains

func (p AllocationPool) Contains(ip string) bool

func (AllocationPool) Equals

func (p AllocationPool) Equals(s AllocationPool) bool

func (AllocationPool) IsValid

func (p AllocationPool) IsValid() bool

type Attachment

type Attachment struct {
	ServerId     string
	AttachmentId string
	HostName     string
	VolumeId     string
	Device       string
	Id           string
}

type CpuInfo

type CpuInfo struct {
	Arch     string
	Model    string
	Vendor   string
	Feature  []string
	Topology map[string]int
}

type DnsAssignment

type DnsAssignment struct {
	Hostname  string
	IpAddress string
	Fqdn      string
}

type ExtraDhcpOpt

type ExtraDhcpOpt struct {
	OptValue  string
	IpVersion int
	OptName   string
}

type ExtraSpecs

type ExtraSpecs struct {
	CpuPolicy   string `json:"hw:cpu_policy,omitempty"`
	MemPageSize string `json:"hw:mem_page_size,omitempty"`
}

type HostState

type HostState struct {
	Available bool
	Active    bool
	UpdatedAt time.Time
}

type IQuota

type IQuota struct {
	Name  string
	Limit int
	InUse int
}

func (*IQuota) GetCurrentQuotaUsedCount

func (iq *IQuota) GetCurrentQuotaUsedCount() int

func (*IQuota) GetDesc

func (iq *IQuota) GetDesc() string

func (*IQuota) GetGlobalId

func (iq *IQuota) GetGlobalId() string

func (*IQuota) GetMaxQuotaCount

func (iq *IQuota) GetMaxQuotaCount() int

func (*IQuota) GetName

func (iq *IQuota) GetName() string

func (*IQuota) GetQuotaType

func (iq *IQuota) GetQuotaType() string
type Link struct {
	Href string
	Rel  string
}

type OpenStackTags

type OpenStackTags struct {
	Metadata map[string]string
}

func (*OpenStackTags) GetSysTags

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

func (*OpenStackTags) GetTags

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

func (*OpenStackTags) SetTags

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

type OpenstackClientConfig

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

func NewOpenstackClientConfig

func NewOpenstackClientConfig(authURL, username, password, project, projectDomain string) *OpenstackClientConfig

func (*OpenstackClientConfig) CloudproviderConfig

func (*OpenstackClientConfig) Debug

func (*OpenstackClientConfig) DomainName

func (cfg *OpenstackClientConfig) DomainName(domainName string) *OpenstackClientConfig

func (*OpenstackClientConfig) EndpointType

func (cfg *OpenstackClientConfig) EndpointType(endpointType string) *OpenstackClientConfig

type OpenstackError

type OpenstackError struct {
	httputils.JSONClientError
}

func (*OpenstackError) ParseErrorFromJsonResponse

func (ce *OpenstackError) ParseErrorFromJsonResponse(statusCode int, status string, body jsonutils.JSONObject) error

type QuotaDetail

type QuotaDetail struct {
	Reserved int
	Limit    int
	InUse    int
}

type QuotaSet

type QuotaSet struct {
	InjectedFileContentBytes QuotaDetail
	MetadataItems            QuotaDetail
	ServerGroupMembers       QuotaDetail
	ServerGroups             QuotaDetail
	Ram                      QuotaDetail
	FloatingIps              QuotaDetail
	KeyPairs                 QuotaDetail
	Id                       string
	Instances                QuotaDetail
	SecurityGroupRules       QuotaDetail
	InjectedFiles            QuotaDetail
	Cores                    QuotaDetail
	FixedIps                 QuotaDetail
	InjectedFilePathBytes    QuotaDetail
	SecurityGroups           QuotaDetail
}

type Resource

type Resource struct {
	Id    string
	Links []Link
}

type SAggregate

type SAggregate struct {
	AvailabilityZone string
	CreatedAt        time.Time
	Deleted          bool
	Hosts            []string
	Id               string
	Metadata         map[string]string
	Name             string
	Uuid             string
}

type SCapabilities

type SCapabilities struct {
}

type SCinderService

type SCinderService struct {
	ActiveBackendId string
	// cinder-volume
	Binary            string
	DisabledReason    string
	Frozen            string
	Host              string
	ReplicationStatus string
	State             string
	Status            string
	UpdatedAt         time.Time
	Zone              string
}

type SConntrackHelper

type SConntrackHelper struct {
	Protocol string `json:"protocol"`
	Helper   string `json:"helper"`
	Port     int    `json:"port"`
}

type SDisk

type SDisk struct {
	multicloud.SDisk
	OpenStackTags

	Id   string
	Name string

	MigrationStatus string
	Attachments     []Attachment
	Links           []Link

	AvailabilityZone  string
	Host              string `json:"os-vol-host-attr:host"`
	Encrypted         bool
	ReplicationStatus string
	SnapshotId        string
	Size              int
	UserId            string
	TenantId          string `json:"os-vol-tenant-attr:tenant_id"`
	Migstat           string `json:"os-vol-mig-status-attr:migstat"`

	Status              string
	Description         string
	Multiattach         string
	SourceVolid         string
	ConsistencygroupId  string
	VolumeImageMetadata VolumeImageMetadata
	NameId              string `json:"os-vol-mig-status-attr:name_id"`
	Bootable            bool
	CreatedAt           time.Time
	VolumeType          string
	// contains filtered or unexported fields
}

func (*SDisk) CreateISnapshot

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

func (*SDisk) 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) IsEmulated

func (disk *SDisk) IsEmulated() bool

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

func (*SDisk) ResizeDisk

func (disk *SDisk) ResizeDisk(sizeMb int64) error

type SEipAddress

type SEipAddress struct {
	multicloud.SEipBase
	OpenStackTags

	RouterId          string      `json:"router_id"`
	Status            string      `json:"status"`
	Description       string      `json:"description"`
	Tags              []string    `json:"tags"`
	TenantId          string      `json:"tenant_id"`
	CreatedAt         time.Time   `json:"created_at"`
	UpdatedAt         time.Time   `json:"updated_at"`
	FloatingNetworkId string      `json:"floating_network_id"`
	PortDetails       SPortDetail `json:"port_details"`
	FixedIPAddress    string      `json:"fixed_ip_address"`
	FloatingIPAddress string      `json:"floating_ip_address"`
	RevisionNumber    int         `json:"revision_number"`
	ProjectId         string      `json:"project_id"`
	PortId            string      `json:"port_id"`
	Id                string      `json:"id"`
	QosPolicyId       string      `json:"qos_policy_id"`
	// contains filtered or unexported fields
}

func (*SEipAddress) Associate

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

func (*SEipAddress) ChangeBandwidth

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

func (*SEipAddress) Delete

func (eip *SEipAddress) Delete() error

func (*SEipAddress) Dissociate

func (eip *SEipAddress) Dissociate() error

func (*SEipAddress) GetAssociationExternalId

func (eip *SEipAddress) GetAssociationExternalId() string

func (*SEipAddress) GetAssociationType

func (eip *SEipAddress) GetAssociationType() string

func (*SEipAddress) GetBandwidth

func (eip *SEipAddress) GetBandwidth() int

func (*SEipAddress) GetBillingType

func (eip *SEipAddress) GetBillingType() string

func (*SEipAddress) GetCreatedAt

func (eip *SEipAddress) GetCreatedAt() time.Time

func (*SEipAddress) GetExpiredAt

func (eip *SEipAddress) GetExpiredAt() time.Time

func (*SEipAddress) GetGlobalId

func (eip *SEipAddress) GetGlobalId() string

func (*SEipAddress) GetINetworkId

func (eip *SEipAddress) GetINetworkId() string

func (*SEipAddress) GetId

func (eip *SEipAddress) GetId() string

func (*SEipAddress) GetInternetChargeType

func (eip *SEipAddress) GetInternetChargeType() string

func (*SEipAddress) GetIpAddr

func (eip *SEipAddress) GetIpAddr() string

func (*SEipAddress) GetMode

func (eip *SEipAddress) GetMode() string

func (*SEipAddress) GetName

func (eip *SEipAddress) GetName() string

func (*SEipAddress) GetProjectId

func (eip *SEipAddress) GetProjectId() string

func (*SEipAddress) GetStatus

func (eip *SEipAddress) GetStatus() string

func (*SEipAddress) IsEmulated

func (eip *SEipAddress) IsEmulated() bool

func (*SEipAddress) Refresh

func (eip *SEipAddress) Refresh() error

type SExternalFixedIP

type SExternalFixedIP struct {
	IPAddress string `json:"ip_address"`
	SubnetId  string `json:"subnet_id"`
}

type SExternalGatewayInfo

type SExternalGatewayInfo struct {
	EnableSnat       bool               `json:"enable_snat"`
	ExtrernalFiedIps []SExternalFixedIP `json:"external_fixed_ips"`
	NetworkId        string             `json:"network_id"`
}

type SExtraSpecs

type SExtraSpecs struct {
	VolumeBackendName string
}

type SFault

type SFault struct {
	Message string
	Code    int
	Details string
}

type SFixedIP

type SFixedIP struct {
	IpAddress string
	SubnetID  string
	// contains filtered or unexported fields
}

func (*SFixedIP) GetGlobalId

func (fixip *SFixedIP) GetGlobalId() string

func (*SFixedIP) GetINetworkId

func (fixip *SFixedIP) GetINetworkId() string

func (*SFixedIP) GetIP

func (fixip *SFixedIP) GetIP() string

func (*SFixedIP) IsPrimary

func (fixip *SFixedIP) IsPrimary() bool

type SFixedIp

type SFixedIp struct {
	IpAddress string
	SubnetId  string
}

type SFlavor

type SFlavor struct {
	multicloud.SServerSku
	OpenStackTags

	Id           string
	Disk         int
	Ephemeral    int
	ExtraSpecs   ExtraSpecs
	OriginalName string
	Name         string
	RAM          int
	Swap         string
	Vcpus        int
	// contains filtered or unexported fields
}

func (*SFlavor) Delete

func (flavor *SFlavor) Delete() error

func (*SFlavor) GetAttachedDiskCount

func (flavor *SFlavor) GetAttachedDiskCount() int

func (*SFlavor) GetAttachedDiskSizeGB

func (flavor *SFlavor) GetAttachedDiskSizeGB() int

func (*SFlavor) GetAttachedDiskType

func (flavor *SFlavor) GetAttachedDiskType() string

func (*SFlavor) GetCpuArch

func (flavor *SFlavor) GetCpuArch() string

func (*SFlavor) GetCpuCoreCount

func (flavor *SFlavor) GetCpuCoreCount() int

func (*SFlavor) GetDataDiskMaxCount

func (flavor *SFlavor) GetDataDiskMaxCount() int

func (*SFlavor) GetDataDiskTypes

func (flavor *SFlavor) GetDataDiskTypes() string

func (*SFlavor) GetGlobalId

func (flavor *SFlavor) GetGlobalId() string

func (*SFlavor) GetGpuAttachable

func (flavor *SFlavor) GetGpuAttachable() bool

func (*SFlavor) GetGpuCount

func (flavor *SFlavor) GetGpuCount() string

func (*SFlavor) GetGpuMaxCount

func (flavor *SFlavor) GetGpuMaxCount() int

func (*SFlavor) GetGpuSpec

func (flavor *SFlavor) GetGpuSpec() string

func (*SFlavor) GetId

func (flavor *SFlavor) GetId() string

func (*SFlavor) GetInstanceTypeCategory

func (flavor *SFlavor) GetInstanceTypeCategory() string

func (*SFlavor) GetInstanceTypeFamily

func (flavor *SFlavor) GetInstanceTypeFamily() string

func (*SFlavor) GetMemorySizeMB

func (flavor *SFlavor) GetMemorySizeMB() int

func (*SFlavor) GetName

func (flavor *SFlavor) GetName() string

func (*SFlavor) GetNicMaxCount

func (flavor *SFlavor) GetNicMaxCount() int

func (*SFlavor) GetNicType

func (flavor *SFlavor) GetNicType() string

func (*SFlavor) GetOsName

func (flavor *SFlavor) GetOsName() string

func (*SFlavor) GetPostpaidStatus

func (flavor *SFlavor) GetPostpaidStatus() string

func (*SFlavor) GetPrepaidStatus

func (flavor *SFlavor) GetPrepaidStatus() string

func (*SFlavor) GetSysDiskMaxSizeGB

func (flavor *SFlavor) GetSysDiskMaxSizeGB() int

func (*SFlavor) GetSysDiskMinSizeGB

func (flavor *SFlavor) GetSysDiskMinSizeGB() int

func (*SFlavor) GetSysDiskResizable

func (flavor *SFlavor) GetSysDiskResizable() bool

func (*SFlavor) GetSysDiskType

func (flavor *SFlavor) GetSysDiskType() string

func (*SFlavor) IsEmulated

func (flavor *SFlavor) IsEmulated() bool

func (*SFlavor) Refresh

func (flavor *SFlavor) Refresh() error

type SHost

type SHost struct {
	HostName string
	Zone     string
	Service  string
}

type SHypervisor

type SHypervisor struct {
	multicloud.SHostBase

	CpuInfo string

	Aggregates         []string
	CurrentWorkload    int
	Status             string
	State              string
	DiskAvailableLeast int
	HostIP             string
	FreeDiskGB         int
	FreeRamMB          int
	HypervisorHostname string
	HypervisorType     string
	HypervisorVersion  string
	Id                 string
	LocalGB            int
	LocalGbUsed        int
	MemoryMB           int
	MemoryMbUsed       int
	RunningVms         int
	Service            Service
	Vcpus              int
	VcpusUsed          int8
	// contains filtered or unexported fields
}

func (*SHypervisor) CreateVM

func (*SHypervisor) GetAccessIp

func (host *SHypervisor) GetAccessIp() string

func (*SHypervisor) GetAccessMac

func (host *SHypervisor) GetAccessMac() string

func (*SHypervisor) GetCpuCmtbound

func (host *SHypervisor) GetCpuCmtbound() float32

func (*SHypervisor) GetCpuCount

func (host *SHypervisor) GetCpuCount() int

func (*SHypervisor) GetCpuDesc

func (host *SHypervisor) GetCpuDesc() string

func (*SHypervisor) GetCpuMhz

func (host *SHypervisor) GetCpuMhz() int

func (*SHypervisor) GetEnabled

func (host *SHypervisor) GetEnabled() bool

func (*SHypervisor) GetGlobalId

func (host *SHypervisor) GetGlobalId() string

func (*SHypervisor) GetHostStatus

func (host *SHypervisor) GetHostStatus() string

func (*SHypervisor) GetHostType

func (host *SHypervisor) GetHostType() string

func (*SHypervisor) GetIHostNics

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

func (*SHypervisor) GetIStorageById

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

func (*SHypervisor) GetIStorages

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

func (*SHypervisor) GetIVMById

func (host *SHypervisor) GetIVMById(gid string) (cloudprovider.ICloudVM, error)

func (*SHypervisor) GetIVMs

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

func (*SHypervisor) GetId

func (host *SHypervisor) GetId() string

func (*SHypervisor) GetIsMaintenance

func (host *SHypervisor) GetIsMaintenance() bool

func (*SHypervisor) GetMemCmtbound

func (host *SHypervisor) GetMemCmtbound() float32

func (*SHypervisor) GetMemSizeMB

func (host *SHypervisor) GetMemSizeMB() int

func (*SHypervisor) GetName

func (host *SHypervisor) GetName() string

func (*SHypervisor) GetNodeCount

func (host *SHypervisor) GetNodeCount() int8

func (*SHypervisor) GetSN

func (host *SHypervisor) GetSN() string

func (*SHypervisor) GetStatus

func (host *SHypervisor) GetStatus() string

func (*SHypervisor) GetStorageSizeMB

func (host *SHypervisor) GetStorageSizeMB() int

func (*SHypervisor) GetStorageType

func (host *SHypervisor) GetStorageType() string

func (*SHypervisor) GetSysInfo

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

func (*SHypervisor) GetVersion

func (host *SHypervisor) GetVersion() string

func (*SHypervisor) IsEmulated

func (host *SHypervisor) IsEmulated() bool

func (*SHypervisor) Refresh

func (host *SHypervisor) Refresh() error

type SImage

type SImage struct {
	multicloud.SImageBase

	OpenStackTags

	Status          string
	Name            string
	Tags            []string
	ContainerFormat string
	CreatedAt       time.Time
	DiskFormat      string
	UpdatedAt       time.Time
	Visibility      string
	Self            string
	MinDisk         int
	Protected       bool
	Id              string
	File            string
	Checksum        string
	OsHashAlgo      string
	OsHashValue     string
	OsHidden        bool
	OsDistro        string
	OsType          string
	Owner           string
	Size            int
	MinRAM          int
	Schema          string
	VirtualSize     int
	// contains filtered or unexported fields
}

func (*SImage) Delete

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

func (*SImage) GetBios

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

func (*SImage) GetCreatedAt

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

func (*SImage) GetFullOsName

func (image *SImage) GetFullOsName() string

func (*SImage) GetGlobalId

func (image *SImage) GetGlobalId() string

func (*SImage) GetIStoragecache

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

func (*SImage) GetId

func (image *SImage) GetId() string

func (*SImage) GetImageFormat

func (image *SImage) GetImageFormat() string

func (*SImage) GetImageStatus

func (image *SImage) GetImageStatus() string

func (*SImage) GetImageType

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

func (*SImage) GetMinOsDiskSizeGb

func (image *SImage) GetMinOsDiskSizeGb() int

func (*SImage) GetMinRamSizeMb

func (image *SImage) GetMinRamSizeMb() int

func (*SImage) GetName

func (image *SImage) GetName() string

func (*SImage) GetOsArch

func (image *SImage) GetOsArch() string

func (*SImage) GetOsDist

func (image *SImage) GetOsDist() string

func (*SImage) GetOsLang

func (image *SImage) GetOsLang() string

func (*SImage) GetOsType

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

func (*SImage) GetOsVersion

func (image *SImage) GetOsVersion() string

func (*SImage) GetProjectId

func (image *SImage) GetProjectId() string

func (*SImage) GetPublicScope

func (image *SImage) GetPublicScope() rbacscope.TRbacScope

func (*SImage) GetSizeByte

func (image *SImage) GetSizeByte() int64

func (*SImage) GetStatus

func (image *SImage) GetStatus() string

func (*SImage) IsEmulated

func (image *SImage) IsEmulated() bool

func (*SImage) Refresh

func (image *SImage) Refresh() error

type SInsertHeaders

type SInsertHeaders struct {
	XForwardedPort string `json:"X-Forwarded-Port"`
	XForwardedFor  string `json:"X-Forwarded-For"`
}

type SInstance

type SInstance struct {
	multicloud.SInstanceBase
	OpenStackTags

	DiskConfig         string    `json:"OS-DCF:diskConfig,omitempty"`
	AvailabilityZone   string    `json:"OS-EXT-AZ:availability_zone,omitempty"`
	Host               string    `json:"OS-EXT-SRV-ATTR:host,omitempty"`
	Hostname           string    `json:"OS-EXT-SRV-ATTR:hostname,omitempty"`
	HypervisorHostname string    `json:"OS-EXT-SRV-ATTR:hypervisor_hostname,omitempty"`
	InstanceName       string    `json:"OS-EXT-SRV-ATTR:instance_name,omitempty"`
	KernelId           string    `json:"OS-EXT-SRV-ATTR:kernel_id,omitempty"`
	LaunchIndex        int       `json:"OS-EXT-SRV-ATTR:launch_index,omitempty"`
	RamdiskId          string    `json:"OS-EXT-SRV-ATTR:ramdisk_id,omitempty"`
	ReservationId      string    `json:"OS-EXT-SRV-ATTR:reservation_id,omitempty"`
	RootDeviceName     string    `json:"OS-EXT-SRV-ATTR:root_device_name,omitempty"`
	UserData           string    `json:"OS-EXT-SRV-ATTR:user_data,omitempty"`
	PowerState         int       `json:"OS-EXT-STS:power_state,omitempty"`
	TaskState          string    `json:"OS-EXT-STS:task_state,omitempty"`
	VmState            string    `json:"OS-EXT-STS:vm_state,omitempty"`
	LaunchedAt         time.Time `json:"OS-SRV-USG:launched_at,omitempty"`
	TerminatedAt       string    `json:"OS-SRV-USG:terminated_at,omitempty"`

	AccessIPv4               string
	AccessIPv6               string
	Addresses                map[string][]SInstanceNic
	ConfigDrive              string
	Created                  time.Time
	Description              string
	Flavor                   SFlavor
	HostId                   string
	HostStatus               string
	Id                       string
	Image                    jsonutils.JSONObject `json:"image"` //有可能是字符串
	KeyName                  string
	Links                    []Link
	Locked                   bool
	Name                     string
	VolumesAttached          []VolumesAttached `json:"os-extended-volumes:volumes_attached,omitempty"`
	Progress                 int
	SecurityGroups           []SecurityGroup
	Status                   string
	Tags                     []string
	TenantId                 string
	TrustedImageCertificates []string
	Updated                  time.Time
	UserId                   string
	Fault                    SFault
	// contains filtered or unexported fields
}

func (*SInstance) 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, name string, username string, password string, publicKey string, deleteKeypair bool, description string) 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 (instance *SInstance) GetBios() cloudprovider.TBiosType

func (*SInstance) GetBootOrder

func (instance *SInstance) GetBootOrder() string

func (*SInstance) GetCreatedAt

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

func (*SInstance) GetError

func (self *SInstance) GetError() error

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 (instance *SInstance) GetOsArch() string

func (*SInstance) GetOsDist

func (instance *SInstance) GetOsDist() string

func (*SInstance) GetOsLang

func (instance *SInstance) GetOsLang() string

func (*SInstance) GetOsType

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

func (*SInstance) GetOsVersion

func (instance *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) 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) IsEmulated

func (instance *SInstance) IsEmulated() bool

func (*SInstance) LiveMigrateVM

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

func (*SInstance) MigrateVM

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

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

func (instance *SInstance) Renew(bc billing.SBillingCycle) error

func (*SInstance) RevokeSecurityGroup

func (instance *SInstance) RevokeSecurityGroup(secgroupId string) error

func (*SInstance) SetSecurityGroups

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

func (*SInstance) SetTags

func (self *SInstance) SetTags(tags map[string]string, replace bool) 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) 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 {
	MacAddr string `json:"OS-EXT-IPS-MAC:mac_addr"`
	Version int    `json:"version"`
	Addr    string `json:"addr"`
	Type    string `json:"OS-EXT-IPS:type"`
}

type SInstancePort

type SInstancePort struct {
	FixedIps  []SFixedIp
	MacAddr   string
	NetId     string
	PortId    string
	PortState string

	cloudprovider.DummyICloudNic
	// contains filtered or unexported fields
}

func (*SInstancePort) GetDriver

func (nic *SInstancePort) GetDriver() string

func (*SInstancePort) GetINetworkId

func (nic *SInstancePort) GetINetworkId() string

func (*SInstancePort) GetIP

func (nic *SInstancePort) GetIP() string

func (*SInstancePort) GetId

func (nic *SInstancePort) GetId() string

func (*SInstancePort) GetMAC

func (nic *SInstancePort) GetMAC() string

func (*SInstancePort) InClassicNetwork

func (nic *SInstancePort) InClassicNetwork() bool

type SKeyPair

type SKeyPair struct {
	Keypair SKeypair
}

type SKeypair

type SKeypair struct {
	Fingerprint string
	Name        string
	Type        string
	PublicKey   string
}

type SL7PolicieID

type SL7PolicieID struct {
	ID string `json:"id"`
}

type SL7RuleID

type SL7RuleID struct {
	ID string `json:"id"`
}

type SListenerID

type SListenerID struct {
	ID string `json:"id"`
}

type SLoadbalancer

type SLoadbalancer struct {
	multicloud.SLoadbalancerBase
	OpenStackTags

	Description        string        `json:"description"`
	AdminStateUp       bool          `json:"admin_state_up"`
	ProjectID          string        `json:"project_id"`
	ProvisioningStatus string        `json:"provisioning_status"`
	FlavorID           string        `json:"flavor_id"`
	VipSubnetID        string        `json:"vip_subnet_id"`
	ListenerIds        []SListenerID `json:"listeners"`
	VipAddress         string        `json:"vip_address"`
	VipNetworkID       string        `json:"vip_network_id"`
	VipPortID          string        `json:"vip_port_id"`
	Provider           string        `json:"provider"`
	PoolIds            []SPoolID     `json:"pools"`
	CreatedAt          string        `json:"created_at"`
	UpdatedAt          string        `json:"updated_at"`
	ID                 string        `json:"id"`
	OperatingStatus    string        `json:"operating_status"`
	Name               string        `json:"name"`
	VipQosPolicyID     string        `json:"vip_qos_policy_id"`
	AvailabilityZone   string        `json:"availability_zone"`
	Tags               []string      `json:"tags"`
	// contains filtered or unexported fields
}

func (*SLoadbalancer) Delete

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

func (*SLoadbalancer) GetAddress

func (lb *SLoadbalancer) GetAddress() string

func (*SLoadbalancer) GetAddressType

func (lb *SLoadbalancer) GetAddressType() string

func (*SLoadbalancer) GetChargeType

func (lb *SLoadbalancer) GetChargeType() string

func (*SLoadbalancer) GetEgressMbps

func (lb *SLoadbalancer) GetEgressMbps() int

func (*SLoadbalancer) GetGlobalId

func (lb *SLoadbalancer) GetGlobalId() string

func (*SLoadbalancer) GetIEIP

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

func (*SLoadbalancer) GetILoadBalancerBackendGroupById

func (lb *SLoadbalancer) GetILoadBalancerBackendGroupById(poolId string) (cloudprovider.ICloudLoadbalancerBackendGroup, error)

func (*SLoadbalancer) GetILoadBalancerBackendGroups

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

func (*SLoadbalancer) GetILoadBalancerListenerById

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

func (*SLoadbalancer) GetILoadBalancerListeners

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

func (*SLoadbalancer) GetId

func (lb *SLoadbalancer) GetId() string

func (*SLoadbalancer) GetLoadbalancerSpec

func (lb *SLoadbalancer) GetLoadbalancerSpec() string

func (*SLoadbalancer) GetName

func (lb *SLoadbalancer) GetName() string

func (*SLoadbalancer) GetNetworkIds

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

func (*SLoadbalancer) GetNetworkType

func (lb *SLoadbalancer) GetNetworkType() string

func (*SLoadbalancer) GetProjectId

func (lb *SLoadbalancer) GetProjectId() string

func (*SLoadbalancer) GetStatus

func (lb *SLoadbalancer) GetStatus() string

func (*SLoadbalancer) GetVpcId

func (lb *SLoadbalancer) GetVpcId() string

func (*SLoadbalancer) GetZone1Id

func (self *SLoadbalancer) GetZone1Id() string

func (*SLoadbalancer) GetZoneId

func (lb *SLoadbalancer) GetZoneId() string

func (*SLoadbalancer) IsEmulated

func (lb *SLoadbalancer) IsEmulated() bool

func (*SLoadbalancer) Refresh

func (lb *SLoadbalancer) Refresh() error

func (*SLoadbalancer) SetTags

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

func (*SLoadbalancer) Start

func (lb *SLoadbalancer) Start() error

func (*SLoadbalancer) Stop

func (lb *SLoadbalancer) Stop() error

type SLoadbalancerAcl

type SLoadbalancerAcl struct {
	multicloud.SResourceBase
	OpenStackTags
	// contains filtered or unexported fields
}

func (*SLoadbalancerAcl) Delete

func (acl *SLoadbalancerAcl) Delete() error

func (*SLoadbalancerAcl) GetAclEntries

func (*SLoadbalancerAcl) GetAclListenerID

func (acl *SLoadbalancerAcl) GetAclListenerID() string

func (*SLoadbalancerAcl) GetGlobalId

func (acl *SLoadbalancerAcl) GetGlobalId() string

func (*SLoadbalancerAcl) GetId

func (acl *SLoadbalancerAcl) GetId() string

func (*SLoadbalancerAcl) GetName

func (acl *SLoadbalancerAcl) GetName() string

func (*SLoadbalancerAcl) GetProjectId

func (acl *SLoadbalancerAcl) GetProjectId() string

func (*SLoadbalancerAcl) GetStatus

func (acl *SLoadbalancerAcl) GetStatus() string

func (*SLoadbalancerAcl) IsEmulated

func (acl *SLoadbalancerAcl) IsEmulated() bool

func (*SLoadbalancerAcl) Refresh

func (acl *SLoadbalancerAcl) Refresh() error

func (*SLoadbalancerAcl) Sync

type SLoadbalancerCreateParams

type SLoadbalancerCreateParams struct {
	Description      string   `json:"description,omitempty"`
	AdminStateUp     bool     `json:"admin_state_up,omitempty"`
	ProjectID        string   `json:"project_id,omitempty"`
	VipNetworkId     string   `json:"vip_network_id,omitempty"`
	VipSubnetID      string   `json:"vip_subnet_id,omitempty"`
	VipAddress       string   `json:"vip_address,omitempty"`
	Provider         string   `json:"provider,omitempty"`
	Name             string   `json:"name,omitempty"`
	VipQosPolicyID   string   `json:"vip_qos_policy_id,omitempty"`
	AvailabilityZone string   `json:"availability_zone,omitempty"`
	Tags             []string `json:"tags,omitempty"`
}

type SLoadbalancerHealthmonitor

type SLoadbalancerHealthmonitor struct {
	multicloud.SResourceBase
	OpenStackTags

	ProjectID          string    `json:"project_id"`
	Name               string    `json:"name"`
	AdminStateUp       bool      `json:"admin_state_up"`
	PoolIds            []SPoolID `json:"pools"`
	CreatedAt          string    `json:"created_at"`
	ProvisioningStatus string    `json:"provisioning_status"`
	UpdatedAt          string    `json:"updated_at"`
	Delay              int       `json:"delay"`
	ExpectedCodes      string    `json:"expected_codes"`
	MaxRetries         int       `json:"max_retries"`
	HTTPMethod         string    `json:"http_method"`
	Timeout            int       `json:"timeout"`
	MaxRetriesDown     int       `json:"max_retries_down"`
	URLPath            string    `json:"url_path"`
	Type               string    `json:"type"`
	ID                 string    `json:"id"`
	OperatingStatus    string    `json:"operating_status"`
	Tags               []string  `json:"tags"`
	HTTPVersion        float64   `json:"http_version"`
	DomainName         string    `json:"domain_name"`
	// contains filtered or unexported fields
}

func (*SLoadbalancerHealthmonitor) GetGlobalId

func (healthmonitor *SLoadbalancerHealthmonitor) GetGlobalId() string

func (*SLoadbalancerHealthmonitor) GetId

func (healthmonitor *SLoadbalancerHealthmonitor) GetId() string

func (*SLoadbalancerHealthmonitor) GetName

func (healthmonitor *SLoadbalancerHealthmonitor) GetName() string

func (*SLoadbalancerHealthmonitor) GetStatus

func (healthmonitor *SLoadbalancerHealthmonitor) GetStatus() string

func (*SLoadbalancerHealthmonitor) IsEmulated

func (healthmonitor *SLoadbalancerHealthmonitor) IsEmulated() bool

func (*SLoadbalancerHealthmonitor) Refresh

func (healthmonitor *SLoadbalancerHealthmonitor) Refresh() error

type SLoadbalancerHealthmonitorCreateParams

type SLoadbalancerHealthmonitorCreateParams struct {
	Name           string   `json:"name,omitempty"`
	AdminStateUp   bool     `json:"admin_state_up"`
	PoolID         string   `json:"pool_id,omitempty"`
	Delay          *int     `json:"delay,omitempty"`
	ExpectedCodes  string   `json:"expected_codes,omitempty"`
	MaxRetries     *int     `json:"max_retries,omitempty"`
	HTTPMethod     string   `json:"http_method,omitempty"`
	Timeout        *int     `json:"timeout,omitempty"`
	URLPath        string   `json:"url_path,omitempty"`
	Type           string   `json:"type,omitempty"`
	MaxRetriesDown *int     `json:"max_retries_down,omitempty"`
	Tags           []string `json:"tags,omitempty"`
	HTTPVersion    *float64 `json:"http_version,omitempty"`
	DomainName     string   `json:"domain_name,omitempty"`
}

type SLoadbalancerHealthmonitorUpdateParams

type SLoadbalancerHealthmonitorUpdateParams struct {
	Name           string   `json:"name,omitempty"`
	AdminStateUp   bool     `json:"admin_state_up"`
	Delay          *int     `json:"delay,omitempty"`
	ExpectedCodes  string   `json:"expected_codes,omitempty"`
	MaxRetries     *int     `json:"max_retries,omitempty"`
	HTTPMethod     string   `json:"http_method,omitempty"`
	Timeout        *int     `json:"timeout,omitempty"`
	URLPath        string   `json:"url_path,omitempty"`
	MaxRetriesDown *int     `json:"max_retries_down,omitempty"`
	Tags           []string `json:"tags,omitempty"`
	HTTPVersion    *float64 `json:"http_version,omitempty"`
	DomainName     string   `json:"domain_name,omitempty"`
}

type SLoadbalancerID

type SLoadbalancerID struct {
	ID string `json:"id"`
}

type SLoadbalancerL7Policy

type SLoadbalancerL7Policy struct {
	multicloud.SResourceBase
	OpenStackTags

	ListenerID         string      `json:"listener_id"`
	Description        string      `json:"description"`
	AdminStateUp       bool        `json:"admin_state_up"`
	RuleIds            []SL7RuleID `json:"rules"`
	CreatedAt          string      `json:"created_at"`
	ProvisioningStatus string      `json:"provisioning_status"`
	UpdatedAt          string      `json:"updated_at"`
	RedirectHTTPCode   int         `json:"redirect_http_code"`
	RedirectPoolID     string      `json:"redirect_pool_id"`
	RedirectPrefix     string      `json:"redirect_prefix"`
	RedirectURL        string      `json:"redirect_url"`
	Action             string      `json:"action"`
	Position           int         `json:"position"`
	ProjectID          string      `json:"project_id"`
	ID                 string      `json:"id"`
	OperatingStatus    string      `json:"operating_status"`
	Name               string      `json:"name"`
	Tags               []string    `json:"tags"`
	// contains filtered or unexported fields
}

func (*SLoadbalancerL7Policy) GetGlobalId

func (L7policy *SLoadbalancerL7Policy) GetGlobalId() string

func (*SLoadbalancerL7Policy) GetId

func (L7policy *SLoadbalancerL7Policy) GetId() string

func (*SLoadbalancerL7Policy) GetName

func (L7policy *SLoadbalancerL7Policy) GetName() string

func (*SLoadbalancerL7Policy) GetStatus

func (L7policy *SLoadbalancerL7Policy) GetStatus() string

func (*SLoadbalancerL7Policy) IsEmulated

func (L7policy *SLoadbalancerL7Policy) IsEmulated() bool

func (*SLoadbalancerL7Policy) Refresh

func (L7policy *SLoadbalancerL7Policy) Refresh() error

type SLoadbalancerL7PolicyCreateParams

type SLoadbalancerL7PolicyCreateParams struct {
	Description      string   `json:"description,omitempty"`
	AdminStateUp     bool     `json:"admin_state_up,omitempty"`
	ListenerID       string   `json:"listener_id,omitempty"`
	RedirectPrefix   string   `json:"redirect_prefix,omitempty"`
	RedirectURL      string   `json:"redirect_url,omitempty"`
	RedirectPoolID   string   `json:"redirect_pool_id,omitempty"`
	RedirectHTTPCode *int     `json:"redirect_http_code,omitempty"`
	Name             string   `json:"name,omitempty"`
	Action           string   `json:"action,omitempty"`
	Position         *int     `json:"position,omitempty"`
	Tags             []string `json:"tags,omitempty"`
}

type SLoadbalancerL7Rule

type SLoadbalancerL7Rule struct {
	multicloud.SResourceBase
	multicloud.SLoadbalancerRedirectBase
	OpenStackTags

	CreatedAt          string   `json:"created_at"`
	CompareType        string   `json:"compare_type"`
	ProvisioningStatus string   `json:"provisioning_status"`
	Invert             bool     `json:"invert"`
	AdminStateUp       bool     `json:"admin_state_up"`
	UpdatedAt          string   `json:"updated_at"`
	Value              string   `json:"value"`
	Key                string   `json:"key"`
	ProjectID          string   `json:"project_id"`
	Type               string   `json:"type"`
	ID                 string   `json:"id"`
	OperatingStatus    string   `json:"operating_status"`
	Tags               []string `json:"tags"`
	// contains filtered or unexported fields
}

func (*SLoadbalancerL7Rule) Delete

func (l7r *SLoadbalancerL7Rule) Delete(ctx context.Context) error

func (*SLoadbalancerL7Rule) GetBackendGroupId

func (l7r *SLoadbalancerL7Rule) GetBackendGroupId() string

func (*SLoadbalancerL7Rule) GetCondition

func (l7r *SLoadbalancerL7Rule) GetCondition() string

func (*SLoadbalancerL7Rule) GetDomain

func (l7r *SLoadbalancerL7Rule) GetDomain() string

func (*SLoadbalancerL7Rule) GetGlobalId

func (l7r *SLoadbalancerL7Rule) GetGlobalId() string

func (*SLoadbalancerL7Rule) GetId

func (l7r *SLoadbalancerL7Rule) GetId() string

func (*SLoadbalancerL7Rule) GetName

func (l7r *SLoadbalancerL7Rule) GetName() string

func (*SLoadbalancerL7Rule) GetPath

func (l7r *SLoadbalancerL7Rule) GetPath() string

func (*SLoadbalancerL7Rule) GetProjectId

func (l7r *SLoadbalancerL7Rule) GetProjectId() string

func (*SLoadbalancerL7Rule) GetStatus

func (l7r *SLoadbalancerL7Rule) GetStatus() string

func (*SLoadbalancerL7Rule) IsDefault

func (self *SLoadbalancerL7Rule) IsDefault() bool

func (*SLoadbalancerL7Rule) IsEmulated

func (l7r *SLoadbalancerL7Rule) IsEmulated() bool

func (*SLoadbalancerL7Rule) Refresh

func (l7r *SLoadbalancerL7Rule) Refresh() error

type SLoadbalancerL7RuleCreateParams

type SLoadbalancerL7RuleCreateParams struct {
	CompareType  string   `json:"compare_type"`
	Invert       *bool    `json:"invert"`
	Type         string   `json:"type"`
	Value        string   `json:"value"`
	AdminStateUp bool     `json:"admin_state_up"`
	Tags         []string `json:"tags"`
}

type SLoadbalancerListener

type SLoadbalancerListener struct {
	multicloud.SResourceBase
	multicloud.SLoadbalancerRedirectBase
	OpenStackTags

	Description             string            `json:"description"`
	AdminStateUp            bool              `json:"admin_state_up"`
	ProjectID               string            `json:"project_id"`
	Protocol                string            `json:"protocol"`
	ProtocolPort            int               `json:"protocol_port"`
	ProvisioningStatus      string            `json:"provisioning_status"`
	DefaultTLSContainerRef  string            `json:"default_tls_container_ref"`
	LoadbalancerIds         []SLoadbalancerID `json:"loadbalancers"`
	InsertHeaders           SInsertHeaders    `json:"insert_headers"`
	CreatedAt               string            `json:"created_at"`
	UpdatedAt               string            `json:"updated_at"`
	ID                      string            `json:"id"`
	OperatingStatus         string            `json:"operating_status"`
	DefaultPoolID           string            `json:"default_pool_id"`
	SniContainerRefs        []string          `json:"sni_container_refs"`
	L7PolicieIds            []SL7PolicieID    `json:"l7policies"`
	Name                    string            `json:"name"`
	TimeoutClientData       int               `json:"timeout_client_data"`
	TimeoutMemberConnect    int               `json:"timeout_member_connect"`
	TimeoutMemberData       int               `json:"timeout_member_data"`
	TimeoutTCPInspect       int               `json:"timeout_tcp_inspect"`
	Tags                    []string          `json:"tags"`
	ClientCaTLSContainerRef string            `json:"client_ca_tls_container_ref"`
	ClientAuthentication    string            `json:"client_authentication"`
	ClientCrlContainerRef   string            `json:"client_crl_container_ref"`
	AllowedCidrs            []string          `json:"allowed_cidrs"`
	TLSCiphers              string            `json:"tls_ciphers"`
	TLSVersions             []string          `json:"tls_versions"`
	// contains filtered or unexported fields
}

func (*SLoadbalancerListener) ChangeCertificate

func (listerner *SLoadbalancerListener) ChangeCertificate(ctx context.Context, opts *cloudprovider.ListenerCertificateOptions) error

func (*SLoadbalancerListener) ChangeScheduler

func (*SLoadbalancerListener) CreateILoadBalancerListenerRule

func (*SLoadbalancerListener) Delete

func (listener *SLoadbalancerListener) Delete(ctx context.Context) error

func (*SLoadbalancerListener) GetAclId

func (listener *SLoadbalancerListener) GetAclId() string

func (*SLoadbalancerListener) GetAclStatus

func (listener *SLoadbalancerListener) GetAclStatus() string

func (*SLoadbalancerListener) GetAclType

func (listener *SLoadbalancerListener) GetAclType() string

func (*SLoadbalancerListener) GetBackendConnectTimeout

func (listener *SLoadbalancerListener) GetBackendConnectTimeout() int

func (*SLoadbalancerListener) GetBackendGroupId

func (listener *SLoadbalancerListener) GetBackendGroupId() string

func (*SLoadbalancerListener) GetBackendServerPort

func (listener *SLoadbalancerListener) GetBackendServerPort() int

func (*SLoadbalancerListener) GetCertificateId

func (listener *SLoadbalancerListener) GetCertificateId() string

func (*SLoadbalancerListener) GetClientIdleTimeout

func (listener *SLoadbalancerListener) GetClientIdleTimeout() int

func (*SLoadbalancerListener) GetEgressMbps

func (listener *SLoadbalancerListener) GetEgressMbps() int

func (*SLoadbalancerListener) GetGlobalId

func (listener *SLoadbalancerListener) GetGlobalId() string

func (*SLoadbalancerListener) GetHealthCheck

func (listener *SLoadbalancerListener) GetHealthCheck() string

func (*SLoadbalancerListener) GetHealthCheckCode

func (listener *SLoadbalancerListener) GetHealthCheckCode() string

func (*SLoadbalancerListener) GetHealthCheckDomain

func (listener *SLoadbalancerListener) GetHealthCheckDomain() string

func (*SLoadbalancerListener) GetHealthCheckExp

func (listener *SLoadbalancerListener) GetHealthCheckExp() string

func (*SLoadbalancerListener) GetHealthCheckFail

func (listener *SLoadbalancerListener) GetHealthCheckFail() int

func (*SLoadbalancerListener) GetHealthCheckInterval

func (listener *SLoadbalancerListener) GetHealthCheckInterval() int

func (*SLoadbalancerListener) GetHealthCheckReq

func (listener *SLoadbalancerListener) GetHealthCheckReq() string

func (*SLoadbalancerListener) GetHealthCheckRise

func (listener *SLoadbalancerListener) GetHealthCheckRise() int

func (*SLoadbalancerListener) GetHealthCheckTimeout

func (listener *SLoadbalancerListener) GetHealthCheckTimeout() int

func (*SLoadbalancerListener) GetHealthCheckType

func (listener *SLoadbalancerListener) GetHealthCheckType() string

func (*SLoadbalancerListener) GetHealthCheckURI

func (listener *SLoadbalancerListener) GetHealthCheckURI() string

func (*SLoadbalancerListener) GetILoadBalancerListenerRuleById

func (listener *SLoadbalancerListener) GetILoadBalancerListenerRuleById(ruleId string) (cloudprovider.ICloudLoadbalancerListenerRule, error)

func (*SLoadbalancerListener) GetILoadbalancerListenerRules

func (listener *SLoadbalancerListener) GetILoadbalancerListenerRules() ([]cloudprovider.ICloudLoadbalancerListenerRule, error)

func (*SLoadbalancerListener) GetId

func (listener *SLoadbalancerListener) GetId() string

func (*SLoadbalancerListener) GetListenerPort

func (listener *SLoadbalancerListener) GetListenerPort() int

func (*SLoadbalancerListener) GetListenerType

func (listener *SLoadbalancerListener) GetListenerType() string

func (*SLoadbalancerListener) GetName

func (listener *SLoadbalancerListener) GetName() string

func (*SLoadbalancerListener) GetProjectId

func (listener *SLoadbalancerListener) GetProjectId() string

func (*SLoadbalancerListener) GetScheduler

func (listener *SLoadbalancerListener) GetScheduler() string

func (*SLoadbalancerListener) GetStatus

func (listener *SLoadbalancerListener) GetStatus() string

func (*SLoadbalancerListener) GetStickySession

func (listener *SLoadbalancerListener) GetStickySession() string

func (*SLoadbalancerListener) GetStickySessionCookie

func (listener *SLoadbalancerListener) GetStickySessionCookie() string

func (*SLoadbalancerListener) GetStickySessionCookieTimeout

func (listener *SLoadbalancerListener) GetStickySessionCookieTimeout() int

func (*SLoadbalancerListener) GetStickySessionType

func (listener *SLoadbalancerListener) GetStickySessionType() string

func (*SLoadbalancerListener) GetTLSCipherPolicy

func (listener *SLoadbalancerListener) GetTLSCipherPolicy() string

func (*SLoadbalancerListener) GzipEnabled

func (listener *SLoadbalancerListener) GzipEnabled() bool

func (*SLoadbalancerListener) HTTP2Enabled

func (listener *SLoadbalancerListener) HTTP2Enabled() bool

func (*SLoadbalancerListener) Refresh

func (listener *SLoadbalancerListener) Refresh() error

func (*SLoadbalancerListener) SetAcl

func (*SLoadbalancerListener) SetHealthCheck

func (*SLoadbalancerListener) Start

func (listener *SLoadbalancerListener) Start() error

func (*SLoadbalancerListener) Stop

func (listener *SLoadbalancerListener) Stop() error

func (*SLoadbalancerListener) XForwardedForEnabled

func (listener *SLoadbalancerListener) XForwardedForEnabled() bool

type SLoadbalancerListenerCreateParams

type SLoadbalancerListenerCreateParams struct {
	Protocol                string         `json:"protocol,omitempty"`
	Description             string         `json:"description,omitempty"`
	AdminStateUp            bool           `json:"admin_state_up,omitempty"`
	ConnectionLimit         *int           `json:"connection_limit,omitempty"`
	ProtocolPort            string         `json:"protocol_port,omitempty"`
	LoadbalancerID          string         `json:"loadbalancer_id,omitempty"`
	DefaultPoolId           string         `json:"default_pool_id,omitempty"`
	Name                    string         `json:"name,omitempty"`
	InsertHeaders           SInsertHeaders `json:"insert_headers,omitempty"`
	DefaultTLSContainerRef  string         `json:"default_tls_container_ref,omitempty"`
	SniContainerRefs        []string       `json:"sni_container_refs,omitempty"`
	TimeoutClientData       *int           `json:"timeout_client_data,omitempty"`
	TimeoutMemberConnect    *int           `json:"timeout_member_connect,omitempty"`
	TimeoutMemberData       *int           `json:"timeout_member_data,omitempty"`
	TimeoutTCPInspect       *int           `json:"timeout_tcp_inspect,omitempty"`
	Tags                    []string       `json:"tags,omitempty"`
	ClientCaTLSContainerRef string         `json:"client_ca_tls_container_ref,omitempty"`
	ClientAuthentication    string         `json:"client_authentication,omitempty"`
	ClientCrlContainerRef   string         `json:"client_crl_container_ref,omitempty"`
	AllowedCidrs            []string       `json:"allowed_cidrs,omitempty"`
	TLSCiphers              string         `json:"tls_ciphers,omitempty"`
	TLSVersions             []string       `json:"tls_versions,omitempty"`
}

type SLoadbalancerListenerUpdateParams

type SLoadbalancerListenerUpdateParams struct {
	Description             string         `json:"description,omitempty"`
	AdminStateUp            bool           `json:"admin_state_up,omitempty"`
	ConnectionLimit         *int           `json:"connection_limit,omitempty"`
	DefaultPoolId           string         `json:"default_pool_id,omitempty"`
	Name                    string         `json:"name,omitempty"`
	InsertHeaders           SInsertHeaders `json:"insert_headers,omitempty"`
	DefaultTLSContainerRef  string         `json:"default_tls_container_ref,omitempty"`
	SniContainerRefs        []string       `json:"sni_container_refs,omitempty"`
	TimeoutClientData       *int           `json:"timeout_client_data,omitempty"`
	TimeoutMemberConnect    *int           `json:"timeout_member_connect,omitempty"`
	TimeoutMemberData       *int           `json:"timeout_member_data,omitempty"`
	TimeoutTCPInspect       *int           `json:"timeout_tcp_inspect,omitempty"`
	Tags                    []string       `json:"tags,omitempty"`
	ClientCaTLSContainerRef string         `json:"client_ca_tls_container_ref,omitempty"`
	ClientAuthentication    string         `json:"client_authentication,omitempty"`
	ClientCrlContainerRef   string         `json:"client_crl_container_ref,omitempty"`
	AllowedCidrs            []string       `json:"allowed_cidrs,omitempty"`
	TLSCiphers              string         `json:"tls_ciphers,omitempty"`
	TLSVersions             []string       `json:"tls_versions,omitempty"`
}

type SLoadbalancerMember

type SLoadbalancerMember struct {
	multicloud.SResourceBase
	OpenStackTags

	MonitorPort        int      `json:"monitor_port"`
	ProjectID          string   `json:"project_id"`
	Name               string   `json:"name"`
	Weight             int      `json:"weight"`
	Backup             bool     `json:"backup"`
	AdminStateUp       bool     `json:"admin_state_up"`
	SubnetID           string   `json:"subnet_id"`
	CreatedAt          string   `json:"created_at"`
	ProvisioningStatus string   `json:"provisioning_status"`
	MonitorAddress     string   `json:"monitor_address"`
	UpdatedAt          string   `json:"updated_at"`
	Address            string   `json:"address"`
	ProtocolPort       int      `json:"protocol_port"`
	ID                 string   `json:"id"`
	OperatingStatus    string   `json:"operating_status"`
	Tags               []string `json:"tags"`
	// contains filtered or unexported fields
}

func (*SLoadbalancerMember) GetBackendId

func (member *SLoadbalancerMember) GetBackendId() string

网络地址映射设备

func (*SLoadbalancerMember) GetBackendRole

func (member *SLoadbalancerMember) GetBackendRole() string

func (*SLoadbalancerMember) GetBackendType

func (member *SLoadbalancerMember) GetBackendType() string

func (*SLoadbalancerMember) GetGlobalId

func (member *SLoadbalancerMember) GetGlobalId() string

func (*SLoadbalancerMember) GetId

func (member *SLoadbalancerMember) GetId() string

func (*SLoadbalancerMember) GetIpAddress

func (member *SLoadbalancerMember) GetIpAddress() string

func (*SLoadbalancerMember) GetName

func (member *SLoadbalancerMember) GetName() string

func (*SLoadbalancerMember) GetPort

func (member *SLoadbalancerMember) GetPort() int

func (*SLoadbalancerMember) GetProjectId

func (member *SLoadbalancerMember) GetProjectId() string

func (*SLoadbalancerMember) GetStatus

func (member *SLoadbalancerMember) GetStatus() string

func (*SLoadbalancerMember) GetWeight

func (member *SLoadbalancerMember) GetWeight() int

func (*SLoadbalancerMember) IsEmulated

func (member *SLoadbalancerMember) IsEmulated() bool

func (*SLoadbalancerMember) Refresh

func (member *SLoadbalancerMember) Refresh() error

func (*SLoadbalancerMember) SyncConf

func (member *SLoadbalancerMember) SyncConf(ctx context.Context, port, weight int) error

type SLoadbalancerMemberCreateParams

type SLoadbalancerMemberCreateParams struct {
	Name         string   `json:"name,omitempty"`
	Weight       *int     `json:"weight,omitempty"`
	AdminStateUp bool     `json:"admin_state_up,omitempty"`
	SubnetID     string   `json:"subnet_id,omitempty"`
	Address      string   `json:"address,omitempty"`
	ProtocolPort *int     `json:"protocol_port,omitempty"`
	MonitorPort  *int     `json:"monitor_port,omitempty"`
	Backup       *bool    `json:"backup,omitempty"`
	Tags         []string `json:"tags,omitempty"`
}

type SLoadbalancerPool

type SLoadbalancerPool struct {
	multicloud.SResourceBase
	OpenStackTags

	LbAlgorithm        string              `json:"lb_algorithm"`
	Protocol           string              `json:"protocol"`
	Description        string              `json:"description"`
	AdminStateUp       bool                `json:"admin_state_up"`
	LoadbalancerIds    []SLoadbalancerID   `json:"loadbalancers"`
	CreatedAt          string              `json:"created_at"`
	ProvisioningStatus string              `json:"provisioning_status"`
	UpdatedAt          string              `json:"updated_at"`
	SessionPersistence SSessionPersistence `json:"session_persistence"`
	ListenerIds        []SListenerID       `json:"listeners"`
	MemberIds          []SMemberID         `json:"members"`
	HealthmonitorID    string              `json:"healthmonitor_id"`
	ProjectID          string              `json:"project_id"`
	ID                 string              `json:"id"`
	OperatingStatus    string              `json:"operating_status"`
	Name               string              `json:"name"`
	Tags               []string            `json:"tags"`
	TLSContainerRef    string              `json:"tls_container_ref"`
	CaTLSContainerRef  string              `json:"ca_tls_container_ref"`
	CrlContainerRef    string              `json:"crl_container_ref"`
	TLSEnabled         bool                `json:"tls_enabled"`
	TLSCiphers         string              `json:"tls_ciphers"`
	TLSVersions        []string            `json:"tls_versions"`
	// contains filtered or unexported fields
}

func (*SLoadbalancerPool) AddBackendServer

func (pool *SLoadbalancerPool) AddBackendServer(serverId string, weight, port int) (cloudprovider.ICloudLoadbalancerBackend, error)

func (*SLoadbalancerPool) Delete

func (pool *SLoadbalancerPool) Delete(ctx context.Context) error

func (*SLoadbalancerPool) GetGlobalId

func (pool *SLoadbalancerPool) GetGlobalId() string

func (*SLoadbalancerPool) GetHealthCheck

func (*SLoadbalancerPool) GetILoadbalancer

func (pool *SLoadbalancerPool) GetILoadbalancer() cloudprovider.ICloudLoadbalancer

func (*SLoadbalancerPool) GetILoadbalancerBackendById

func (pool *SLoadbalancerPool) GetILoadbalancerBackendById(memberId string) (cloudprovider.ICloudLoadbalancerBackend, error)

func (*SLoadbalancerPool) GetILoadbalancerBackends

func (pool *SLoadbalancerPool) GetILoadbalancerBackends() ([]cloudprovider.ICloudLoadbalancerBackend, error)

func (*SLoadbalancerPool) GetId

func (pool *SLoadbalancerPool) GetId() string

func (*SLoadbalancerPool) GetLoadbalancerId

func (pool *SLoadbalancerPool) GetLoadbalancerId() string

func (*SLoadbalancerPool) GetName

func (pool *SLoadbalancerPool) GetName() string

func (*SLoadbalancerPool) GetProjectId

func (pool *SLoadbalancerPool) GetProjectId() string

func (*SLoadbalancerPool) GetProtocolType

func (pool *SLoadbalancerPool) GetProtocolType() string

func (*SLoadbalancerPool) GetScheduler

func (pool *SLoadbalancerPool) GetScheduler() string

func (*SLoadbalancerPool) GetStatus

func (pool *SLoadbalancerPool) GetStatus() string

func (*SLoadbalancerPool) GetStickySession

func (pool *SLoadbalancerPool) GetStickySession() (*cloudprovider.SLoadbalancerStickySession, error)

func (*SLoadbalancerPool) GetType

func (pool *SLoadbalancerPool) GetType() string

func (*SLoadbalancerPool) IsDefault

func (pool *SLoadbalancerPool) IsDefault() bool

func (*SLoadbalancerPool) IsEmulated

func (pool *SLoadbalancerPool) IsEmulated() bool

func (*SLoadbalancerPool) Refresh

func (pool *SLoadbalancerPool) Refresh() error

func (*SLoadbalancerPool) RemoveBackendServer

func (pool *SLoadbalancerPool) RemoveBackendServer(id string, weight, port int) error

不是serverId,是memberId

func (*SLoadbalancerPool) Sync

type SLoadbalancerPoolCreateParams

type SLoadbalancerPoolCreateParams struct {
	LbAlgorithm        string               `json:"lb_algorithm,omitempty"`
	Protocol           string               `json:"protocol,omitempty"`
	Description        string               `json:"description,omitempty"`
	AdminStateUp       bool                 `json:"admin_state_up,omitempty"`
	SessionPersistence *SSessionPersistence `json:"session_persistence"`
	LoadbalancerID     string               `json:"loadbalancer_id,omitempty"`
	ListenerID         string               `json:"listener_id,omitempty"`
	Name               string               `json:"name,omitempty"`
	Tags               []string             `json:"tags,omitempty"`
	TLSContainerRef    string               `json:"tls_container_ref,omitempty"`
	CaTLSContainerRef  string               `json:"ca_tls_container_ref,omitempty"`
	CrlContainerRef    string               `json:"crl_container_ref,omitempty"`
	TLSEnabled         *bool                `json:"tls_enabled,omitempty"`
	TLSCiphers         string               `json:"tls_ciphers,omitempty"`
	TLSVersions        []string             `json:"tls_versions,omitempty"`
}

type SLoadbalancerPoolUpdateParams

type SLoadbalancerPoolUpdateParams struct {
	LbAlgorithm        string               `json:"lb_algorithm,omitempty"`
	Description        string               `json:"description,omitempty"`
	AdminStateUp       bool                 `json:"admin_state_up,omitempty"`
	SessionPersistence *SSessionPersistence `json:"session_persistence"`
	Name               string               `json:"name,omitempty"`
	Tags               []string             `json:"tags,omitempty"`
	TLSContainerRef    string               `json:"tls_container_ref,omitempty"`
	CaTLSContainerRef  string               `json:"ca_tls_container_ref,omitempty"`
	CrlContainerRef    string               `json:"crl_container_ref,omitempty"`
	TLSEnabled         *bool                `json:"tls_enabled,omitempty"`
	TLSCiphers         string               `json:"tls_ciphers,omitempty"`
	TLSVersions        []string             `json:"tls_versions,omitempty"`
}

type SMemberID

type SMemberID struct {
	ID string `json:"id"`
}

type SMessage

type SMessage struct {
	Id           string
	MessageLevel string
	EventId      string
	ResourceType string
	UserMessage  string
}

type SNetwork

type SNetwork struct {
	multicloud.SResourceBase
	OpenStackTags

	Name            string
	EnableDhcp      bool
	NetworkId       string
	SegmentId       string
	ProjectId       string
	TenantId        string
	DnsNameservers  []string
	AllocationPools []AllocationPool
	HostRoutes      []string
	IpVersion       int
	GatewayIP       string
	CIDR            string
	Id              string
	CreatedAt       time.Time
	Description     string
	Ipv6AddressMode string
	Ipv6RaMode      string
	RevisionNumber  int
	ServiceTypes    []string
	SubnetpoolId    string
	Tags            []string
	UpdatedAt       time.Time
	// contains filtered or unexported fields
}

func (*SNetwork) Contains

func (network *SNetwork) Contains(ipAddr string) bool

func (*SNetwork) Delete

func (network *SNetwork) Delete() error

func (*SNetwork) GetAllocTimeoutSeconds

func (network *SNetwork) GetAllocTimeoutSeconds() int

func (*SNetwork) GetGateway

func (network *SNetwork) GetGateway() string

func (*SNetwork) GetGlobalId

func (network *SNetwork) GetGlobalId() string

func (*SNetwork) GetIPRange

func (network *SNetwork) GetIPRange() netutils.IPV4AddrRange

func (*SNetwork) GetIWire

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

func (*SNetwork) GetId

func (network *SNetwork) GetId() string

func (*SNetwork) GetIpEnd

func (network *SNetwork) GetIpEnd() string

func (*SNetwork) GetIpMask

func (network *SNetwork) GetIpMask() int8

func (*SNetwork) GetIpStart

func (network *SNetwork) GetIpStart() string

func (*SNetwork) GetIsPublic

func (network *SNetwork) GetIsPublic() bool

func (*SNetwork) GetName

func (network *SNetwork) GetName() string

func (*SNetwork) GetProjectId

func (network *SNetwork) GetProjectId() string

func (*SNetwork) GetPublicScope

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

func (*SNetwork) GetServerType

func (network *SNetwork) GetServerType() string

func (*SNetwork) GetStatus

func (network *SNetwork) GetStatus() string

func (*SNetwork) IsEmulated

func (network *SNetwork) IsEmulated() bool

func (*SNetwork) Refresh

func (network *SNetwork) Refresh() error
type SNextLink struct {
	Href string
	Rel  string
}
type SNextLinks []SNextLink

func (SNextLinks) GetNextMark

func (links SNextLinks) GetNextMark() string

type SNovaDisk

type SNovaDisk struct {
	multicloud.SDisk
	OpenStackTags
	// contains filtered or unexported fields
}

func (*SNovaDisk) CreateISnapshot

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

func (*SNovaDisk) Delete

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

func (*SNovaDisk) GetAccessPath

func (disk *SNovaDisk) GetAccessPath() string

func (*SNovaDisk) GetBillingType

func (disk *SNovaDisk) GetBillingType() string

func (*SNovaDisk) GetCacheMode

func (disk *SNovaDisk) GetCacheMode() string

func (*SNovaDisk) GetCreatedAt

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

func (*SNovaDisk) GetDiskFormat

func (disk *SNovaDisk) GetDiskFormat() string

func (*SNovaDisk) GetDiskSizeMB

func (disk *SNovaDisk) GetDiskSizeMB() int

func (*SNovaDisk) GetDiskType

func (disk *SNovaDisk) GetDiskType() string

func (*SNovaDisk) GetDriver

func (disk *SNovaDisk) GetDriver() string

func (*SNovaDisk) GetExpiredAt

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

func (*SNovaDisk) GetFsFormat

func (disk *SNovaDisk) GetFsFormat() string

func (*SNovaDisk) GetGlobalId

func (disk *SNovaDisk) GetGlobalId() string

func (*SNovaDisk) GetISnapshot

func (disk *SNovaDisk) GetISnapshot(snapshotId string) (cloudprovider.ICloudSnapshot, error)

func (*SNovaDisk) GetISnapshots

func (disk *SNovaDisk) GetISnapshots() ([]cloudprovider.ICloudSnapshot, error)

func (*SNovaDisk) GetIStorage

func (disk *SNovaDisk) GetIStorage() (cloudprovider.ICloudStorage, error)

func (*SNovaDisk) GetId

func (disk *SNovaDisk) GetId() string

func (*SNovaDisk) GetIsAutoDelete

func (disk *SNovaDisk) GetIsAutoDelete() bool

func (*SNovaDisk) GetIsNonPersistent

func (disk *SNovaDisk) GetIsNonPersistent() bool

func (*SNovaDisk) GetMountpoint

func (disk *SNovaDisk) GetMountpoint() string

func (*SNovaDisk) GetName

func (disk *SNovaDisk) GetName() string

func (*SNovaDisk) GetProjectId

func (disk *SNovaDisk) GetProjectId() string

func (*SNovaDisk) GetStatus

func (disk *SNovaDisk) GetStatus() string

func (*SNovaDisk) GetTemplateId

func (disk *SNovaDisk) GetTemplateId() string

func (*SNovaDisk) IsEmulated

func (disk *SNovaDisk) IsEmulated() bool

func (*SNovaDisk) Rebuild

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

func (*SNovaDisk) Refresh

func (disk *SNovaDisk) Refresh() error

func (*SNovaDisk) Reset

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

func (*SNovaDisk) Resize

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

type SNovaStorage

type SNovaStorage struct {
	multicloud.SStorageBase
	OpenStackTags
	// contains filtered or unexported fields
}

func (*SNovaStorage) CreateIDisk

func (*SNovaStorage) DisableSync

func (self *SNovaStorage) DisableSync() bool

func (*SNovaStorage) GetCapacityMB

func (storage *SNovaStorage) GetCapacityMB() int64

func (*SNovaStorage) GetCapacityUsedMB

func (storage *SNovaStorage) GetCapacityUsedMB() int64

func (*SNovaStorage) GetEnabled

func (storage *SNovaStorage) GetEnabled() bool

func (*SNovaStorage) GetGlobalId

func (storage *SNovaStorage) GetGlobalId() string

func (*SNovaStorage) GetIDiskById

func (storage *SNovaStorage) GetIDiskById(idStr string) (cloudprovider.ICloudDisk, error)

func (*SNovaStorage) GetIDisks

func (storage *SNovaStorage) GetIDisks() ([]cloudprovider.ICloudDisk, error)

func (*SNovaStorage) GetIStoragecache

func (storage *SNovaStorage) GetIStoragecache() cloudprovider.ICloudStoragecache

func (*SNovaStorage) GetIZone

func (storage *SNovaStorage) GetIZone() cloudprovider.ICloudZone

func (*SNovaStorage) GetId

func (storage *SNovaStorage) GetId() string

func (*SNovaStorage) GetMediumType

func (storage *SNovaStorage) GetMediumType() string

func (*SNovaStorage) GetMountPoint

func (storage *SNovaStorage) GetMountPoint() string

func (*SNovaStorage) GetName

func (storage *SNovaStorage) GetName() string

func (*SNovaStorage) GetStatus

func (storage *SNovaStorage) GetStatus() string

func (*SNovaStorage) GetStorageConf

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

func (*SNovaStorage) GetStorageType

func (storage *SNovaStorage) GetStorageType() string

func (*SNovaStorage) IsEmulated

func (storage *SNovaStorage) IsEmulated() bool

func (*SNovaStorage) IsSysDiskStore

func (storage *SNovaStorage) IsSysDiskStore() bool

func (*SNovaStorage) Refresh

func (storage *SNovaStorage) Refresh() error

type SOpenStackClient

type SOpenStackClient struct {
	*OpenstackClientConfig
	// contains filtered or unexported fields
}

func NewOpenStackClient

func NewOpenStackClient(cfg *OpenstackClientConfig) (*SOpenStackClient, error)

func (*SOpenStackClient) AssignRoleToUserOnProject

func (cli *SOpenStackClient) AssignRoleToUserOnProject(userId, projectId, roleName string) error

func (*SOpenStackClient) CreateIProject

func (cli *SOpenStackClient) CreateIProject(name string) (cloudprovider.ICloudProject, error)

func (*SOpenStackClient) CreateProject

func (cli *SOpenStackClient) CreateProject(name, desc string) (*SProject, error)

func (*SOpenStackClient) DeleteProject

func (cli *SOpenStackClient) DeleteProject(projectId string) error

func (*SOpenStackClient) GetCapabilities

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

func (*SOpenStackClient) GetCloudRegionExternalIdPrefix

func (cli *SOpenStackClient) GetCloudRegionExternalIdPrefix() string

func (*SOpenStackClient) GetIProjects

func (cli *SOpenStackClient) GetIProjects() ([]cloudprovider.ICloudProject, error)

func (*SOpenStackClient) GetIRegionById

func (cli *SOpenStackClient) GetIRegionById(id string) (cloudprovider.ICloudRegion, error)

func (*SOpenStackClient) GetIRegions

func (cli *SOpenStackClient) GetIRegions() []cloudprovider.ICloudRegion

func (*SOpenStackClient) GetMaxVersion

func (cli *SOpenStackClient) GetMaxVersion(region, service string) (string, error)

func (*SOpenStackClient) GetProject

func (cli *SOpenStackClient) GetProject(id string) (*SProject, error)

func (*SOpenStackClient) GetProjects

func (cli *SOpenStackClient) GetProjects() ([]SProject, error)

func (*SOpenStackClient) GetRegion

func (cli *SOpenStackClient) GetRegion(regionId string) *SRegion

func (*SOpenStackClient) GetRegions

func (cli *SOpenStackClient) GetRegions() []SRegion

func (*SOpenStackClient) GetRoles

func (cli *SOpenStackClient) GetRoles(name string) ([]SRole, error)

func (*SOpenStackClient) GetSubAccounts

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

type SPool

type SPool struct {
	Name         string
	Capabilities SCapabilities
}

type SPoolID

type SPoolID struct {
	ID string `json:"id"`
}

type SPort

type SPort struct {
	multicloud.SNetworkInterfaceBase
	OpenStackTags

	AdminStateUp            bool
	AllowedAddressPairs     []string
	CreatedAt               time.Time
	DataPlaneStatus         string
	Description             string
	DeviceID                string
	DeviceOwner             string
	DnsAssignment           []DnsAssignment
	DnsDomain               string
	DnsName                 string
	ExtraDhcpOpts           []ExtraDhcpOpt
	FixedIps                []SFixedIP
	ID                      string
	IpAllocation            string
	MacAddress              string
	Name                    string
	NetworkID               string
	ProjectID               string
	RevisionNumber          int
	SecurityGroups          []string
	Status                  string
	Tags                    []string
	TenantID                string
	UpdatedAt               time.Time
	QosPolicyID             string
	PortSecurityEnabled     bool
	UplinkStatusPropagation bool
	// contains filtered or unexported fields
}

func (*SPort) GetAssociateId

func (port *SPort) GetAssociateId() string

func (*SPort) GetAssociateType

func (port *SPort) GetAssociateType() string

func (*SPort) GetGlobalId

func (port *SPort) GetGlobalId() string

func (*SPort) GetICloudInterfaceAddresses

func (port *SPort) GetICloudInterfaceAddresses() ([]cloudprovider.ICloudInterfaceAddress, error)

func (*SPort) GetId

func (port *SPort) GetId() string

func (*SPort) GetMacAddress

func (port *SPort) GetMacAddress() string

func (*SPort) GetName

func (port *SPort) GetName() string

func (*SPort) GetStatus

func (port *SPort) GetStatus() string

type SPortDetail

type SPortDetail struct {
	Status       string `json:"status"`
	Name         string `json:"name"`
	AdminStateUp bool   `json:"admin_state_up"`
	NetworkId    string `json:"network_id"`
	DeviceOwner  string `json:"device_owner"`
	MacAddress   string `json:"mac_address"`
	DeviceId     string `json:"device_id"`
}

type SPrivate

type SPrivate struct {
	MacAddr string `json:"OS-EXT-IPS-MAC:mac_addr,omitempty"`
	Addr    string `json:"OS-EXT-IPS:type,omitempty"`
	Version int
}

type SProject

type SProject struct {
	multicloud.SProjectBase
	OpenStackTags

	Description string
	Enabled     bool
	Id          string
	Name        string
	// contains filtered or unexported fields
}

func (*SProject) GetGlobalId

func (p *SProject) GetGlobalId() string

func (*SProject) GetId

func (p *SProject) GetId() string

func (*SProject) GetName

func (p *SProject) GetName() string

func (*SProject) GetStatus

func (p *SProject) GetStatus() string

func (*SProject) IsEmulated

func (p *SProject) IsEmulated() bool

func (*SProject) Refresh

func (p *SProject) Refresh() error
type SProjectLinks struct {
	Next     string
	Previous string
	Self     string
}

func (SProjectLinks) GetNextMark

func (link SProjectLinks) GetNextMark() string

type SQuota

type SQuota struct {
	Cores                    int
	Instances                int
	KeyPairs                 int
	FixedIps                 int
	MetadataItems            int
	Ram                      int
	ServerGroups             int
	ServerGroupMembers       int
	InjectedFileContentBytes int
	InjectedFilePathBytes    int
	InjectedFiles            int
	Floatingips              int
	Networks                 int
	Port                     int
	RbacPolicy               int
	Router                   int
	SecurityGroups           int
	SecurityGroupRules       int
}

type SRegion

type SRegion struct {
	multicloud.SRegion

	Name string
	// contains filtered or unexported fields
}

func (*SRegion) AssignSecurityGroup

func (self *SRegion) AssignSecurityGroup(instanceId, projectId, secgroupId string) error

func (*SRegion) AssociateEip

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

func (*SRegion) AssociateEipWithPortId

func (region *SRegion) AssociateEipWithPortId(portid, eipId string) error

func (*SRegion) AttachDisk

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

func (*SRegion) ChangeConfig

func (region *SRegion) ChangeConfig(instance *SInstance, flavorId string) error

func (*SRegion) CreateDisk

func (region *SRegion) CreateDisk(imageRef string, volumeType string, name string, sizeGb int, desc string, projectId string) (*SDisk, error)

func (*SRegion) CreateEIP

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

func (*SRegion) CreateEip

func (region *SRegion) CreateEip(vpcId, networkId, ip string, projectId string) (*SEipAddress, error)

func (*SRegion) CreateFlavor

func (region *SRegion) CreateFlavor(name string, cpu int, memoryMb int, diskGB int) (*SFlavor, error)

func (*SRegion) CreateIBucket

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

func (*SRegion) CreateILoadBalancer

func (region *SRegion) CreateILoadBalancer(loadbalancer *cloudprovider.SLoadbalancerCreateOptions) (cloudprovider.ICloudLoadbalancer, error)

func (*SRegion) CreateISecurityGroup

func (*SRegion) CreateISku

func (*SRegion) CreateIVpc

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

func (*SRegion) CreateImage

func (region *SRegion) CreateImage(imageName string, osType string, osDist string, minDiskGb int, minRam int, size int64, body io.Reader, callback func(progress float32)) (*SImage, error)

func (*SRegion) CreateKeypair

func (region *SRegion) CreateKeypair(name, publicKey, Type string) (*SKeyPair, error)

func (*SRegion) CreateLoadBalancer

func (region *SRegion) CreateLoadBalancer(loadbalancer *cloudprovider.SLoadbalancerCreateOptions) (*SLoadbalancer, error)

func (*SRegion) CreateLoadBalancerAcl

func (region *SRegion) CreateLoadBalancerAcl(acl *cloudprovider.SLoadbalancerAccessControlList) (*SLoadbalancerAcl, error)

func (*SRegion) CreateLoadbalancerHealthmonitor

func (region *SRegion) CreateLoadbalancerHealthmonitor(poolId string, healthcheck *cloudprovider.SLoadbalancerHealthCheck) (*SLoadbalancerHealthmonitor, error)

func (*SRegion) CreateLoadbalancerL7Policy

func (region *SRegion) CreateLoadbalancerL7Policy(listenerId string, rule *cloudprovider.SLoadbalancerListenerRule) (*SLoadbalancerL7Policy, error)

func (*SRegion) CreateLoadbalancerL7Rule

func (region *SRegion) CreateLoadbalancerL7Rule(l7policyId string, rule *cloudprovider.SLoadbalancerListenerRule) (*SLoadbalancerL7Rule, error)

func (*SRegion) CreateLoadbalancerListener

func (region *SRegion) CreateLoadbalancerListener(loadbalancerId string, listenerParams *cloudprovider.SLoadbalancerListenerCreateOptions) (*SLoadbalancerListener, error)

func (*SRegion) CreateLoadbalancerMember

func (region *SRegion) CreateLoadbalancerMember(poolId, serverId string, weight, port int) (*SLoadbalancerMember, error)

serverId 转ip,对接不准确

func (*SRegion) CreateLoadbalancerPool

func (region *SRegion) CreateLoadbalancerPool(lbId string, opts *cloudprovider.SLoadbalancerBackendGroup) (*SLoadbalancerPool, error)

func (*SRegion) CreateNetwork

func (region *SRegion) CreateNetwork(vpcId string, projectId, name string, cidr string, desc string) (*SNetwork, error)

func (*SRegion) CreateSecurityGroup

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

func (*SRegion) CreateSecurityGroupRule

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

func (*SRegion) CreateSnapshot

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

func (*SRegion) CreateTags

func (self *SRegion) CreateTags(instanceId string, tags map[string]string) error

func (*SRegion) CreateVpc

func (region *SRegion) CreateVpc(name, desc string) (*SVpc, error)

func (*SRegion) DeleteDisk

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

func (*SRegion) DeleteEip

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

func (*SRegion) DeleteFlavor

func (region *SRegion) DeleteFlavor(flavorId string) error

func (*SRegion) DeleteIBucket

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

func (*SRegion) DeleteImage

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

func (*SRegion) DeleteKeypair

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

func (*SRegion) DeleteLoadBalancerPool

func (region *SRegion) DeleteLoadBalancerPool(poolId string) error

func (*SRegion) DeleteLoadbalancer

func (region *SRegion) DeleteLoadbalancer(loadbalancerId string) error

func (*SRegion) DeleteLoadbalancerHealthmonitor

func (region *SRegion) DeleteLoadbalancerHealthmonitor(healthmonitorId string) error

func (*SRegion) DeleteLoadbalancerListener

func (region *SRegion) DeleteLoadbalancerListener(listenerId string) error

func (*SRegion) DeleteLoadbalancerListenerL7policy

func (region *SRegion) DeleteLoadbalancerListenerL7policy(policyId string) error

func (*SRegion) DeleteLoadbalancerMember

func (region *SRegion) DeleteLoadbalancerMember(poolId, memberId string) error

func (*SRegion) DeleteMigration

func (region *SRegion) DeleteMigration(instanceId string, migrationId string) error

仅live-migration

func (*SRegion) DeleteNetwork

func (region *SRegion) DeleteNetwork(networkId string) error

func (*SRegion) DeleteSecurityGroup

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

func (*SRegion) DeleteSecurityGroupRule

func (region *SRegion) DeleteSecurityGroupRule(ruleId string) error

func (*SRegion) DeleteSnapshot

func (region *SRegion) DeleteSnapshot(snapshotId string) error

func (*SRegion) DeleteTags

func (self *SRegion) DeleteTags(instanceId string, key 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, name string, password string, keypairName string, deleteKeypair bool, description string) error

func (*SRegion) DetachDisk

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

func (*SRegion) DisassociateEip

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

func (*SRegion) ForceCompleteMigration

func (region *SRegion) ForceCompleteMigration(instanceId string, migrationId string) error

仅live-migration

func (*SRegion) GetAggregates

func (region *SRegion) GetAggregates() ([]SAggregate, error)

func (*SRegion) GetCapabilities

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

func (*SRegion) GetCinderServices

func (region *SRegion) GetCinderServices() ([]SCinderService, error)

func (*SRegion) GetClient

func (region *SRegion) GetClient() *SOpenStackClient

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() ([]SDisk, error)

func (*SRegion) GetEip

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

func (*SRegion) GetEipByIp

func (region *SRegion) GetEipByIp(ip string) (*SEipAddress, error)

func (*SRegion) GetEips

func (region *SRegion) GetEips(ip string) ([]SEipAddress, error)

func (*SRegion) GetFlavor

func (region *SRegion) GetFlavor(flavorId string) (*SFlavor, error)

func (*SRegion) GetFlavors

func (region *SRegion) GetFlavors() ([]SFlavor, error)

func (*SRegion) GetGeographicInfo

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

func (*SRegion) GetGlobalId

func (region *SRegion) GetGlobalId() string

func (*SRegion) GetHosts

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

func (*SRegion) GetHypervisor

func (region *SRegion) GetHypervisor(id string) (*SHypervisor, error)

func (*SRegion) GetHypervisors

func (region *SRegion) GetHypervisors() ([]SHypervisor, error)

func (*SRegion) GetI18n

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

func (*SRegion) GetIBucketById

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

func (*SRegion) GetIBucketByName

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

func (*SRegion) GetIBuckets

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

func (*SRegion) GetICloudQuotas

func (region *SRegion) GetICloudQuotas() ([]cloudprovider.ICloudQuota, error)

func (*SRegion) GetIDiskById

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

func (*SRegion) GetIEipById

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

func (*SRegion) GetIEips

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

func (*SRegion) GetIHostById

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

func (*SRegion) GetIHosts

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

func (*SRegion) GetILoadBalancerAclById

func (region *SRegion) GetILoadBalancerAclById(aclId string) (cloudprovider.ICloudLoadbalancerAcl, error)

func (*SRegion) GetILoadBalancerAcls

func (region *SRegion) GetILoadBalancerAcls() ([]cloudprovider.ICloudLoadbalancerAcl, error)

func (*SRegion) GetILoadBalancerById

func (region *SRegion) GetILoadBalancerById(loadbalancerId string) (cloudprovider.ICloudLoadbalancer, error)

func (*SRegion) GetILoadBalancerCertificateById

func (region *SRegion) GetILoadBalancerCertificateById(certId string) (cloudprovider.ICloudLoadbalancerCertificate, error)

func (*SRegion) GetILoadBalancerCertificates

func (region *SRegion) GetILoadBalancerCertificates() ([]cloudprovider.ICloudLoadbalancerCertificate, error)

func (*SRegion) GetILoadBalancers

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

func (*SRegion) GetINetworkInterfaces

func (region *SRegion) GetINetworkInterfaces() ([]cloudprovider.ICloudNetworkInterface, error)

func (*SRegion) GetISecurityGroupById

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

func (*SRegion) GetISecurityGroups

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

func (*SRegion) GetISkus

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

func (*SRegion) GetISnapshotById

func (region *SRegion) GetISnapshotById(snapshotId string) (cloudprovider.ICloudSnapshot, error)

func (*SRegion) GetISnapshots

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

func (*SRegion) GetIStorageById

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

func (*SRegion) GetIStoragecacheById

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

func (*SRegion) GetIStoragecaches

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

func (*SRegion) GetIStorages

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

func (*SRegion) GetIVMById

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

func (*SRegion) 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) (string, error)

func (*SRegion) GetImages

func (region *SRegion) GetImages(name string, status string, imageId string) ([]SImage, error)

func (*SRegion) GetInstance

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

func (*SRegion) GetInstanceMetadata

func (region *SRegion) GetInstanceMetadata(instanceId string) (map[string]string, error)

func (*SRegion) GetInstancePorts

func (region *SRegion) GetInstancePorts(instanceId string) ([]SInstancePort, error)

func (*SRegion) GetInstanceVNC

func (region *SRegion) GetInstanceVNC(instanceId string, origin bool) (*cloudprovider.ServerVncOutput, error)

func (*SRegion) GetInstanceVNCUrl

func (region *SRegion) GetInstanceVNCUrl(instanceId string, origin bool) (*cloudprovider.ServerVncOutput, error)

func (*SRegion) GetInstances

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

func (*SRegion) GetKeypair

func (region *SRegion) GetKeypair(name string) (*SKeyPair, error)

func (*SRegion) GetKeypairs

func (region *SRegion) GetKeypairs() ([]SKeyPair, error)

func (*SRegion) GetLoadBalancerAcls

func (region *SRegion) GetLoadBalancerAcls() ([]SLoadbalancerAcl, error)

func (*SRegion) GetLoadbalancerAclDetail

func (region *SRegion) GetLoadbalancerAclDetail(aclId string) (*SLoadbalancerAcl, error)

func (*SRegion) GetLoadbalancerHealthmonitorById

func (region *SRegion) GetLoadbalancerHealthmonitorById(healthmonitorId string) (*SLoadbalancerHealthmonitor, error)

func (*SRegion) GetLoadbalancerL7PolicybyId

func (region *SRegion) GetLoadbalancerL7PolicybyId(policieId string) (*SLoadbalancerL7Policy, error)

func (*SRegion) GetLoadbalancerL7RulebyId

func (region *SRegion) GetLoadbalancerL7RulebyId(policyId string, l7ruleId string) (*SLoadbalancerL7Rule, error)

func (*SRegion) GetLoadbalancerL7Rules

func (region *SRegion) GetLoadbalancerL7Rules(policyId string) ([]SLoadbalancerL7Rule, error)

func (*SRegion) GetLoadbalancerListenerbyId

func (region *SRegion) GetLoadbalancerListenerbyId(listenerId string) (*SLoadbalancerListener, error)

func (*SRegion) GetLoadbalancerListeners

func (region *SRegion) GetLoadbalancerListeners() ([]SLoadbalancerListener, error)

func (*SRegion) GetLoadbalancerMenberById

func (region *SRegion) GetLoadbalancerMenberById(poolId string, MenberId string) (*SLoadbalancerMember, error)

func (*SRegion) GetLoadbalancerMenbers

func (region *SRegion) GetLoadbalancerMenbers(poolId string) ([]SLoadbalancerMember, error)

func (*SRegion) GetLoadbalancerPoolById

func (region *SRegion) GetLoadbalancerPoolById(poolId string) (*SLoadbalancerPool, error)

func (*SRegion) GetLoadbalancerPools

func (region *SRegion) GetLoadbalancerPools() ([]SLoadbalancerPool, error)

func (*SRegion) GetLoadbalancerbyId

func (region *SRegion) GetLoadbalancerbyId(loadbalancerId string) (*SLoadbalancer, error)

func (*SRegion) GetLoadbalancers

func (region *SRegion) GetLoadbalancers() ([]SLoadbalancer, error)

func (*SRegion) GetMaxVersion

func (region *SRegion) GetMaxVersion(service string) (string, error)

func (*SRegion) GetMessages

func (region *SRegion) GetMessages(resourceId string) ([]SMessage, error)

func (*SRegion) GetMigrations

func (region *SRegion) GetMigrations(instanceId string, migrationType string) (jsonutils.JSONObject, error)

func (*SRegion) GetName

func (region *SRegion) GetName() string

func (*SRegion) GetNetwork

func (region *SRegion) GetNetwork(networkId string) (*SNetwork, error)

func (*SRegion) GetNetworks

func (region *SRegion) GetNetworks(vpcId string) ([]SNetwork, error)

func (*SRegion) GetPort

func (region *SRegion) GetPort(portId string) (*SPort, error)

func (*SRegion) GetPorts

func (region *SRegion) GetPorts(macAddress, deviceId string) ([]SPort, error)

func (*SRegion) GetProvider

func (region *SRegion) GetProvider() string

func (*SRegion) GetQuota

func (region *SRegion) GetQuota() (*QuotaSet, error)

func (*SRegion) GetRouters

func (region *SRegion) GetRouters() ([]SRouter, error)

func (*SRegion) GetSchedulerStatsPool

func (region *SRegion) GetSchedulerStatsPool() ([]SPool, error)

func (*SRegion) GetSecurityGroup

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

func (*SRegion) GetSecurityGroups

func (region *SRegion) GetSecurityGroups(projectId, name string) ([]SSecurityGroup, error)

func (*SRegion) GetSecurityGroupsByInstance

func (region *SRegion) GetSecurityGroupsByInstance(instanceId string) ([]SecurityGroup, error)

func (*SRegion) GetSnapshot

func (region *SRegion) GetSnapshot(snapshotId string) (*SSnapshot, error)

func (*SRegion) GetSnapshots

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

func (*SRegion) GetStatus

func (region *SRegion) GetStatus() string

func (*SRegion) GetStorageTypes

func (region *SRegion) GetStorageTypes() ([]SStorage, error)

func (*SRegion) GetVpc

func (region *SRegion) GetVpc(vpcId string) (*SVpc, error)

func (*SRegion) GetVpcs

func (region *SRegion) GetVpcs(projectId string) ([]SVpc, error)

func (*SRegion) GetZones

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

func (*SRegion) IBucketExist

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

func (*SRegion) IsEmulated

func (region *SRegion) IsEmulated() bool

func (*SRegion) IsStorageAvailable

func (region *SRegion) IsStorageAvailable(storageType string) (bool, error)

func (*SRegion) ListServerMigration

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

仅live-migration

func (*SRegion) LiveMigrateVM

func (region *SRegion) LiveMigrateVM(instanceId string, hostName string) error

func (*SRegion) MigrateVM

func (region *SRegion) MigrateVM(instanceId string, hostName string) error

func (*SRegion) ProjectId

func (region *SRegion) ProjectId() string

func (*SRegion) Refresh

func (region *SRegion) Refresh() error

func (*SRegion) RenewInstances

func (region *SRegion) RenewInstances(instanceId []string, bc billing.SBillingCycle) error

func (*SRegion) ReplaceSystemDisk

func (region *SRegion) ReplaceSystemDisk(instanceId string, imageId string, passwd string, publicKey string, sysDiskSizeGB int) error

func (*SRegion) ResetDisk

func (region *SRegion) ResetDisk(diskId, snapshotId string) error

func (*SRegion) ResizeDisk

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

func (*SRegion) SetQuota

func (region *SRegion) SetQuota(quota *SQuota) error

func (*SRegion) StartVM

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

func (*SRegion) StopVM

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

func (*SRegion) SyncFlavor

func (region *SRegion) SyncFlavor(name string, cpu, memoryMb, diskGB int) (string, error)

func (*SRegion) UpdateLoadBalancerAdminStateUp

func (region *SRegion) UpdateLoadBalancerAdminStateUp(AdminStateUp bool, loadbalancerId string) error

func (*SRegion) UpdateLoadBalancerListener

func (region *SRegion) UpdateLoadBalancerListener(loadbalancerListenerId string, lblis *cloudprovider.SLoadbalancerListenerCreateOptions) error

func (*SRegion) UpdateLoadBalancerListenerAdminStateUp

func (region *SRegion) UpdateLoadBalancerListenerAdminStateUp(AdminStateUp bool, loadbalancerListenerId string) error

func (*SRegion) UpdateLoadBalancerMemberWtight

func (region *SRegion) UpdateLoadBalancerMemberWtight(poolId, memberId string, weight int) error

func (*SRegion) UpdateLoadbalancerHealthmonitor

func (region *SRegion) UpdateLoadbalancerHealthmonitor(healthmonitorId string, healthcheck *cloudprovider.SLoadbalancerHealthCheck) (*SLoadbalancerHealthmonitor, error)

func (*SRegion) UpdateLoadbalancerListenerAllowedCidrs

func (region *SRegion) UpdateLoadbalancerListenerAllowedCidrs(listenerId string, cidrs []string) error

type SResource

type SResource struct {
	CPU      int
	DiskGB   int
	Host     string
	MemoryMb int
	Project  string
}

type SRole

type SRole struct {
	Id   string
	Name string
}

type SRouteEntry

type SRouteEntry struct {
	multicloud.SResourceBase
	OpenStackTags
	Destination string `json:"destination"`
	Nexthop     string `json:"nexthop"`
}

func (*SRouteEntry) GetCidr

func (route *SRouteEntry) GetCidr() string

func (*SRouteEntry) GetGlobalId

func (route *SRouteEntry) GetGlobalId() string

func (*SRouteEntry) GetId

func (route *SRouteEntry) GetId() string

func (*SRouteEntry) GetName

func (route *SRouteEntry) GetName() string

func (*SRouteEntry) GetNextHop

func (route *SRouteEntry) GetNextHop() string

func (*SRouteEntry) GetNextHopType

func (route *SRouteEntry) GetNextHopType() string

func (*SRouteEntry) GetStatus

func (route *SRouteEntry) GetStatus() string

func (*SRouteEntry) GetType

func (route *SRouteEntry) GetType() string

func (*SRouteEntry) IsEmulated

func (route *SRouteEntry) IsEmulated() bool

func (*SRouteEntry) Refresh

func (route *SRouteEntry) Refresh() error

type SRouteTable

type SRouteTable struct {
	multicloud.SResourceBase
	OpenStackTags
	// contains filtered or unexported fields
}

func (*SRouteTable) CreateRoute

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

func (*SRouteTable) GetAssociations

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

func (*SRouteTable) GetDescription

func (self *SRouteTable) GetDescription() string

func (*SRouteTable) GetGlobalId

func (self *SRouteTable) GetGlobalId() string

func (*SRouteTable) GetIRoutes

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

func (*SRouteTable) GetId

func (self *SRouteTable) GetId() string

func (*SRouteTable) GetName

func (self *SRouteTable) GetName() string

func (*SRouteTable) GetRegionId

func (self *SRouteTable) GetRegionId() string

func (*SRouteTable) GetStatus

func (self *SRouteTable) GetStatus() string

func (*SRouteTable) GetType

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

func (*SRouteTable) GetVpcId

func (self *SRouteTable) GetVpcId() string

func (*SRouteTable) IsEmulated

func (self *SRouteTable) IsEmulated() bool

func (*SRouteTable) Refresh

func (self *SRouteTable) Refresh() error

func (*SRouteTable) RemoveRoute

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

func (*SRouteTable) UpdateRoute

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

type SRouter

type SRouter struct {
	AdminStateUp        bool                 `json:"admin_state_up"`
	Description         string               `json:"description"`
	FlavorId            string               `json:"flavor_id"`
	Id                  string               `json:"id"`
	Name                string               `json:"name"`
	Routes              []SRouteEntry        `json:"routes"`
	Status              string               `json:"status"`
	ProjectId           string               `json:"project_id"`
	TenantId            string               `json:"tenant_id"`
	Tags                []string             `json:"tags"`
	ConntrackHelpers    []SConntrackHelper   `json:"conntrack_helpers"`
	ExternalGatewayInfo SExternalGatewayInfo `json:"external_gateway_info"`
	// contains filtered or unexported fields
}

type SSecurityGroup

type SSecurityGroup struct {
	multicloud.SSecurityGroup
	OpenStackTags

	Description        string
	Id                 string
	Name               string
	SecurityGroupRules []SSecurityGroupRule
	ProjectId          string
	RevisionNumber     int
	CreatedAt          time.Time
	UpdatedAt          time.Time
	Tags               []string
	TenantId           string
	// contains filtered or unexported fields
}

func (*SSecurityGroup) Delete

func (secgroup *SSecurityGroup) Delete() error

func (*SSecurityGroup) GetDescription

func (secgroup *SSecurityGroup) GetDescription() string

func (*SSecurityGroup) GetGlobalId

func (secgroup *SSecurityGroup) GetGlobalId() string

func (*SSecurityGroup) GetId

func (secgroup *SSecurityGroup) GetId() string

func (*SSecurityGroup) GetName

func (secgroup *SSecurityGroup) GetName() string

func (*SSecurityGroup) GetProjectId

func (secgroup *SSecurityGroup) GetProjectId() string

func (*SSecurityGroup) GetRules

func (secgroup *SSecurityGroup) GetRules() ([]cloudprovider.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

type SSecurityGroupRule

type SSecurityGroupRule struct {
	Direction       string
	Ethertype       string
	Id              string
	PortRangeMax    int
	PortRangeMin    int
	Protocol        string
	RemoteGroupId   string
	RemoteIpPrefix  string
	SecurityGroupId string
	ProjectId       string
	RevisionNumber  int
	Tags            []string
	TenantId        string
	CreatedAt       time.Time
	UpdatedAt       time.Time
	Description     string
	// 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 SSessionPersistence

type SSessionPersistence struct {
	CookieName string `json:"cookie_name,omitempty"`
	Type       string `json:"type,omitempty"`
}

type SSnapshot

type SSnapshot struct {
	multicloud.SResourceBase
	OpenStackTags

	Id       string
	VolumeId string

	Status string

	Progress  string `json:"os-extended-snapshot-attributes:progress"`
	Name      string
	UserId    string
	ProjectId string `json:"os-extended-snapshot-attributes:project_id"`
	//CreatedAt time.Time
	Size int32

	Description string
	// contains filtered or unexported fields
}

func (*SSnapshot) Delete

func (snapshot *SSnapshot) Delete() error

func (*SSnapshot) GetDiskId

func (snapshot *SSnapshot) GetDiskId() string

func (*SSnapshot) GetDiskType

func (snapshot *SSnapshot) GetDiskType() string

func (*SSnapshot) GetGlobalId

func (snapshot *SSnapshot) GetGlobalId() string

func (*SSnapshot) GetId

func (snapshot *SSnapshot) GetId() string

func (*SSnapshot) GetName

func (snapshot *SSnapshot) GetName() string

func (*SSnapshot) GetProjectId

func (self *SSnapshot) GetProjectId() string

func (*SSnapshot) GetSizeMb

func (snapshot *SSnapshot) GetSizeMb() int32

func (*SSnapshot) GetStatus

func (snapshot *SSnapshot) GetStatus() string

func (*SSnapshot) IsEmulated

func (snapshot *SSnapshot) IsEmulated() bool

func (*SSnapshot) Refresh

func (snapshot *SSnapshot) Refresh() error

type SStorage

type SStorage struct {
	multicloud.SStorageBase

	Name       string
	ExtraSpecs SExtraSpecs
	ID         string
	// contains filtered or unexported fields
}

func (*SStorage) CreateIDisk

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

func (*SStorage) GetCapacityMB

func (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

func (*SStorage) Refresh

func (storage *SStorage) Refresh() error

type SStoragecache

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

func (*SStoragecache) GetGlobalId

func (cache *SStoragecache) GetGlobalId() string

func (*SStoragecache) GetICloudImages

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

func (*SStoragecache) GetICustomizedCloudImages

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

func (*SStoragecache) GetIImageById

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

func (*SStoragecache) GetId

func (cache *SStoragecache) GetId() string

func (*SStoragecache) GetName

func (cache *SStoragecache) GetName() string

func (*SStoragecache) GetPath

func (cache *SStoragecache) GetPath() string

func (*SStoragecache) GetStatus

func (cache *SStoragecache) GetStatus() string

func (*SStoragecache) IsEmulated

func (cache *SStoragecache) IsEmulated() bool

func (*SStoragecache) Refresh

func (cache *SStoragecache) Refresh() error

func (*SStoragecache) UploadImage

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

type SVpc

type SVpc struct {
	multicloud.SVpc
	OpenStackTags

	AdminStateUp          bool
	AvailabilityZoneHints []string
	AvailabilityZones     []string
	CreatedAt             time.Time
	DnsDomain             string
	Id                    string
	Ipv4AddressScope      string
	Ipv6AddressScope      string
	L2Adjacency           bool
	Mtu                   int
	Name                  string
	PortSecurityEnabled   bool
	ProjectID             string
	QosPolicyID           string
	RevisionNumber        int
	External              bool `json:"router:external"`
	Shared                bool
	Status                string
	Subnets               []string
	TenantID              string
	UpdatedAt             time.Time
	VlanTransparent       bool
	Fescription           string
	IsDefault             bool
	NetworkType           string `json:"provider:network_type"` // flat, vlan, vxlan, or gre ...
	PhysicalNetwork       string `json:"provider:physical_network"`
	SegmentationId        string `json:"provider:segmentation_id"`
	// contains filtered or unexported fields
}

func (*SVpc) Delete

func (vpc *SVpc) Delete() error

func (*SVpc) GetCidrBlock

func (vpc *SVpc) GetCidrBlock() string

func (*SVpc) GetGlobalId

func (vpc *SVpc) GetGlobalId() string

func (*SVpc) GetIRouteTableById

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

func (*SVpc) GetIRouteTables

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

func (*SVpc) GetISecurityGroups

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

func (*SVpc) GetIWireById

func (vpc *SVpc) GetIWireById(wireId string) (cloudprovider.ICloudWire, error)

func (*SVpc) GetIWires

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

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

type SWire

type SWire struct {
	multicloud.SResourceBase
	OpenStackTags
	// 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
	OpenStackTags

	ZoneName  string
	ZoneState ZoneState

	Hosts map[string]jsonutils.JSONObject
	// contains filtered or unexported fields
}

func (*SZone) CreateVM

func (zone *SZone) CreateVM(hypervisor string, opts *cloudprovider.SManagedVMCreateConfig) (*SInstance, error)

func (*SZone) GetGlobalId

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

func (zone *SZone) GetId() string

func (*SZone) GetName

func (zone *SZone) GetName() string

func (*SZone) GetStatus

func (zone *SZone) GetStatus() string

func (*SZone) IsEmulated

func (zone *SZone) IsEmulated() bool

func (*SZone) Refresh

func (zone *SZone) Refresh() error

type SecurityGroup

type SecurityGroup struct {
	Id          string
	Name        string
	Description string
}

type Service

type Service struct {
	Host           string
	ID             string
	DisabledReason string
}

type VolumeImageMetadata

type VolumeImageMetadata struct {
	Checksum        string
	MinRAM          int
	DiskFormat      string
	ImageName       string
	ImageId         string
	ContainerFormat string
	MinDisk         int
	Size            int
}

type VolumesAttached

type VolumesAttached struct {
	Id                  string
	DeleteOnTermination bool
}

type ZoneState

type ZoneState struct {
	Available bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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