cloud

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: MIT Imports: 14 Imported by: 1

Documentation

Index

Constants

View Source
const (
	AMOUNT    = "amount"
	BALANCE   = "balance"
	PRODUCT   = "product"
	USED_TIME = "usedTime"
)
View Source
const (
	CLIENT     = "client"
	SESS       = "sess"
	SECRET_ID  = "secretId"
	SECRET_KEY = "secretKey"
)
View Source
const (
	CREATED_TIME         = "createdTime"
	EXPIRED_TIME         = "expiredTime"
	INSTANCE             = "instance"
	INSTANCE_ID          = "instanceId"
	INSTANCE_NAME        = "instanceName"
	INSTANCE_TYPE        = "instanceType"
	INSTANCE_CHARGE_TYPE = "instanceChargeType"
	LAUNCH_TEMPLATE_ID   = "launchTemplateId"
	SECURITY_GROUP_ID    = "securityGroupId"
	IMAGE_ID             = "imageId"
	KEY_ID               = "keyId"

	OS        = "os"
	CPU       = "cpu"
	MEMORY    = "memory"
	DISK      = "disk"
	BANDWIDTH = "bandwidth"
	ADDRESS   = "address"
	REGION    = "region"
	STATUS    = "status"
	HOSTNAME  = "hostName"
	PORTAL    = "portal"

	POSTPAID = "POSTPAID"
	PREPAID  = "PREPAID"
	RUNNING  = "RUNNING"

	INSTANCE_CREATE = "instance.create"
	INSTANCE_REMOVE = "instance.remove"
)
View Source
const (
	RESOURCE      = "resource"
	RESOURCE_ID   = "resourceId"
	RESOURCE_NAME = "resourceName"
)
View Source
const (
	BUNDLE = "bundle"
)
View Source
const (
	DOMAIN = "domain"
)

Variables

This section is empty.

Functions

func BundleCreate

func BundleCreate(m *ice.Message, name, text string, conf ice.Map, arg ...string)

func BundleUpdate

func BundleUpdate(m *ice.Message, name string, conf ice.Map)

func DomainCreate

func DomainCreate(m *ice.Message, domain string, arg ...string)

func ParseResponse

func ParseResponse(m *ice.Message, res, key string, arg ...string) ice.Any

func ParseTime

func ParseTime(m *ice.Message, value string) string

func ParseUsedTime

func ParseUsedTime(m *ice.Message, createdTime, endTime string) string

func PrefixKey

func PrefixKey(arg ...string) string

func RequestPost

func RequestPost(m *ice.Message, arg []string, req ice.Any, cb func() (ice.Any, error)) ice.Any

func SetParamIds

func SetParamIds(m *ice.Message, req ice.Any, key string, arg ...string)

func SetParams

func SetParams(req ice.Any, arg ...ice.Any)

Types

type Account

type Account struct {
	ice.Hash
	// contains filtered or unexported fields
}

func (Account) List

func (s Account) List(m *ice.Message, arg ...string)

func (Account) Publish

func (s Account) Publish(m *ice.Message, arg ...string)

type Bundle

type Bundle struct {
	ice.Hash
	// contains filtered or unexported fields
}

func (Bundle) List

func (s Bundle) List(m *ice.Message, arg ...string) *ice.Message

func (Bundle) Publish

func (s Bundle) Publish(m *ice.Message, arg ...string)

func (Bundle) Start

func (s Bundle) Start(m *ice.Message, arg ...string)

func (Bundle) StartParams

func (s Bundle) StartParams(m *ice.Message, arg ...string) []string

type Client

type Client struct {
	ice.Hash
	// contains filtered or unexported fields
}

func (Client) List

func (s Client) List(m *ice.Message, arg ...string)

func (Client) Secret

func (s Client) Secret(m *ice.Message, arg ...string)

func (Client) Vendor

func (s Client) Vendor(m *ice.Message, arg ...string)

type Domain

type Domain struct {
	ice.Hash
	// contains filtered or unexported fields
}

func (Domain) InstanceCreate

func (s Domain) InstanceCreate(m *ice.Message, arg ...string)

func (Domain) InstanceRemove

func (s Domain) InstanceRemove(m *ice.Message, arg ...string)

type Instance

type Instance struct {
	relay.Relay
	ice.Hash
	// contains filtered or unexported fields
}

func (Instance) Admin

func (s Instance) Admin(m *ice.Message, arg ...string)

func (Instance) Create

func (s Instance) Create(m *ice.Message, arg ...string)

func (Instance) Desktop

func (s Instance) Desktop(m *ice.Message, arg ...string)

func (Instance) Dream

func (s Instance) Dream(m *ice.Message, arg ...string)

func (Instance) Inputs

func (s Instance) Inputs(m *ice.Message, arg ...string)

func (Instance) Install

func (s Instance) Install(m *ice.Message, arg ...string)

func (Instance) List

func (s Instance) List(m *ice.Message, arg ...string)

func (Instance) Open

func (s Instance) Open(m *ice.Message, arg ...string)

func (Instance) Portal

func (s Instance) Portal(m *ice.Message, arg ...string)

func (Instance) Publish

func (s Instance) Publish(m *ice.Message, arg ...string)

func (Instance) Pushbin added in v0.1.0

func (s Instance) Pushbin(m *ice.Message, arg ...string)

func (Instance) Reboot

func (s Instance) Reboot(m *ice.Message, arg ...string)

func (Instance) Relays added in v0.1.0

func (s Instance) Relays(m *ice.Message, arg ...string)

func (Instance) Remove

func (s Instance) Remove(m *ice.Message, arg ...string)

func (Instance) Rename

func (s Instance) Rename(m *ice.Message, arg ...string)

func (Instance) Start

func (s Instance) Start(m *ice.Message, arg ...string)

func (Instance) TableButton

func (s Instance) TableButton(m *ice.Message)

func (Instance) Xterm

func (s Instance) Xterm(m *ice.Message, arg ...string)

type Resource added in v0.1.0

type Resource struct {
	ice.Hash
	// contains filtered or unexported fields
}

func (Resource) List added in v0.1.0

func (s Resource) List(m *ice.Message, arg ...string)

func (Resource) Publish added in v0.1.0

func (s Resource) Publish(m *ice.Message, arg ...string)

type Summary

type Summary struct {
	ice.Hash
	// contains filtered or unexported fields
}

func (Summary) List

func (s Summary) List(m *ice.Message, arg ...string)

func (Summary) Publish

func (s Summary) Publish(m *ice.Message, arg ...string)

Directories

Path Synopsis
cas
dns
ecs
cvm
tag

Jump to

Keyboard shortcuts

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