qingcloud

package
v0.0.0-...-266875b Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2022 License: MPL-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusActive = "active"

	DEFAULT_ZONE     = "pek3a"
	DEFAULT_ENDPOINT = "https://api.qingcloud.com:443/iaas"

	DEFAULT_TAG_COLOR = "#9f9bb7"
	BasicNetworkID    = "vxnet-0"
)
View Source
const SERVERBUSY = 5100

Variables

View Source
var ColorRegex = regexp.MustCompile("^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$")
View Source
var PortRegex = regexp.MustCompile("^0*(?:6553[0-5]|655[0-2][0-9]|65[0-4][0-9]{2}|6[0-4][0-9]{3}|[1-5][0-9]{4}|[1-9][0-9]{1,3}|[0-9])$")

Functions

func EIPTransitionStateRefresh

func EIPTransitionStateRefresh(clt *qc.EIPService, id string) (interface{}, error)

EipTransitionStateRefresh Waiting for no transition_status

func InstanceTransitionStateRefresh

func InstanceTransitionStateRefresh(clt *qc.InstanceService, id string) (interface{}, error)

func LoadBalancerTransitionStateRefresh

func LoadBalancerTransitionStateRefresh(clt *qc.LoadBalancerService, id *string) (interface{}, error)

func ModifySecurityGroupRuleAttributes

func ModifySecurityGroupRuleAttributes(d *schema.ResourceData, meta interface{}) error

func Provider

func Provider() *schema.Provider

func RouterTransitionStateRefresh

func RouterTransitionStateRefresh(clt *qc.RouterService, id string) (interface{}, error)

RouterTransitionStateRefresh Waiting for no transition_status

func SecurityGroupApplyTransitionStateRefresh

func SecurityGroupApplyTransitionStateRefresh(clt *qc.SecurityGroupService, id *string) (interface{}, error)

func VolumeDeleteTransitionStateRefresh

func VolumeDeleteTransitionStateRefresh(clt *qc.VolumeService, id string) (interface{}, error)

func VolumeTransitionStateRefresh

func VolumeTransitionStateRefresh(clt *qc.VolumeService, id string) (interface{}, error)

func VxnetLeaveRouterTransitionStateRefresh

func VxnetLeaveRouterTransitionStateRefresh(clt *qc.VxNetService, id string) (interface{}, error)

func WaitForLease

func WaitForLease(CreateTime *time.Time)

Types

type Config

type Config struct {
	ID       string
	Secret   string
	Zone     string
	EndPoint string
}

func (*Config) Client

func (c *Config) Client() (*QingCloudClient, error)

type QingCloudClient

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

Jump to

Keyboard shortcuts

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