qingcloud

package
v0.0.0-...-b8a1a0e Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: Apache-2.0 Imports: 25 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Param

type Param struct {
	Name  string
	Value interface{}
}

type Params

type Params []*Param

Params 请求参数数组

func (Params) Len

func (ps Params) Len() int

Len 长度

func (Params) Less

func (ps Params) Less(i, j int) bool

Less less

func (Params) Swap

func (ps Params) Swap(i, j int)

Swap swap

type QingCloud

type QingCloud struct {
	Uuid         string
	UuidGenerate string
	Name         string
	RegionUuid   string

	RegionIdToLcuuid map[string]string

	ZoneNames []string

	VxnetIdToVPCLcuuid    map[string]string
	VxnetIdToSubnetLcuuid map[string]string

	HostNameToIP map[string]string

	// statsd monitor
	CloudStatsd statsd.CloudStatsd
	// contains filtered or unexported fields
}

func NewQingCloud

func NewQingCloud(domain mysql.Domain, cfg cloudconfig.CloudConfig) (*QingCloud, error)

func (*QingCloud) CheckAuth

func (q *QingCloud) CheckAuth() error

func (*QingCloud) CheckRequiredAttributes

func (q *QingCloud) CheckRequiredAttributes(json *simplejson.Json, attributes []string) error

func (*QingCloud) ClearDebugLog

func (q *QingCloud) ClearDebugLog()

func (*QingCloud) GenSignature

func (q *QingCloud) GenSignature(signURL, secret string) string

func (*QingCloud) GetCloudData

func (q *QingCloud) GetCloudData() (model.Resource, error)

func (*QingCloud) GetFloatingIPs

func (q *QingCloud) GetFloatingIPs() ([]model.VInterface, []model.IP, []model.FloatingIP, error)

func (*QingCloud) GetLoadBalances

func (q *QingCloud) GetLoadBalances() (
	[]model.LB, []model.LBListener, []model.LBTargetServer, []model.VInterface,
	[]model.IP, []model.LBVMConnection, error,
)

func (*QingCloud) GetNATGateways

func (q *QingCloud) GetNATGateways() (
	[]model.NATGateway, []model.VInterface, []model.IP, []model.NATVMConnection, error,
)

func (*QingCloud) GetNetworks

func (q *QingCloud) GetNetworks() ([]model.Network, []model.Subnet, error)

func (*QingCloud) GetRegionLcuuid

func (q *QingCloud) GetRegionLcuuid(lcuuid string) string

func (*QingCloud) GetResponse

func (q *QingCloud) GetResponse(action string, resultKey string, kwargs []*Param) ([]*simplejson.Json, error)

func (*QingCloud) GetRouterAndTables

func (q *QingCloud) GetRouterAndTables() (
	[]model.VRouter, []model.RoutingTable, []model.VInterface, []model.IP, error,
)

func (*QingCloud) GetSecurityGroups

func (q *QingCloud) GetSecurityGroups() ([]model.SecurityGroup, []model.SecurityGroupRule, error)

func (*QingCloud) GetStatter

func (q *QingCloud) GetStatter() statsd.StatsdStatter

func (*QingCloud) GetSubDomains

func (q *QingCloud) GetSubDomains() ([]model.SubDomain, error)

func (*QingCloud) GetVMNics

func (q *QingCloud) GetVMNics() ([]model.VInterface, []model.IP, error)

func (*QingCloud) GetVMs

func (q *QingCloud) GetVMs() ([]model.VM, []model.VMSecurityGroup, []model.Subnet, error)

func (*QingCloud) GetVPCs

func (q *QingCloud) GetVPCs() ([]model.VPC, error)

Jump to

Keyboard shortcuts

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