veen

package
v1.0.161 Latest Latest
Warning

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

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

README

VEEN接口调用示例

前置准备

服务开通

请确保您已开通了边缘计算节点服务。您可前往火山引擎控制台,在左侧菜单中选择或在顶部搜索栏中搜索" 边缘计算节点"",进入服务控制台内完成开通流程。

获取安全凭证

Access Key(访问密钥)是访问火山引擎服务的安全凭证,包含Access Key ID(简称为AK)和Secret Access Key(简称为SK)两部分。您可登录火山引擎控制台 ,前往“访问控制”的“访问密钥 ”中创建及管理您的Access Key。更多信息可参考访问密钥帮助文档

环境检查

Go版本需要不低于1.13.1。

运行方式

  • 设置AK/SK
// init.go
ak = "Your AK"
sk = "Your SK"
  • 编写测试用例: veen_test.go
package veen

import (
	"testing"
)

func TestVeen(t *testing.T) {
	// 调用创建边缘服务接口
	CreateCloudServer(t)
}
  • 执行测试用例
go test -v veen_test.go init.go create_cloudserver.go

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AttachEbs added in v1.0.146

func AttachEbs(t *testing.T)

func BatchResetSystem added in v1.0.146

func BatchResetSystem(t *testing.T)

func CreateCloudServer

func CreateCloudServer(t *testing.T)

func CreateEbsInstances added in v1.0.146

func CreateEbsInstances(t *testing.T)

func CreateInstance

func CreateInstance(t *testing.T)

func DeleteCloudServer

func DeleteCloudServer(t *testing.T)

func DeleteEbsInstance added in v1.0.146

func DeleteEbsInstance(t *testing.T)

func DetachEbs added in v1.0.146

func DetachEbs(t *testing.T)

func GetCloudServer

func GetCloudServer(t *testing.T)

func GetEbsInstance added in v1.0.146

func GetEbsInstance(t *testing.T)

func GetInstance

func GetInstance(t *testing.T)

func GetInstanceCloudDiskInfo

func GetInstanceCloudDiskInfo(t *testing.T)

func ListAvailableResourceInfo

func ListAvailableResourceInfo(t *testing.T)

func ListCloudServers

func ListCloudServers(t *testing.T)

func ListEbsInstances added in v1.0.146

func ListEbsInstances(t *testing.T)

func ListInstanceTypes

func ListInstanceTypes(t *testing.T)

func ListInstances

func ListInstances(t *testing.T)

func OfflineInstances

func OfflineInstances(t *testing.T)

func RebootCloudServer

func RebootCloudServer(t *testing.T)

func RebootInstances

func RebootInstances(t *testing.T)

func ResetLoginCredential

func ResetLoginCredential(t *testing.T)

func ScaleEbsInstanceCapacity added in v1.0.146

func ScaleEbsInstanceCapacity(t *testing.T)

func ScaleInstanceCloudDiskCapacity

func ScaleInstanceCloudDiskCapacity(t *testing.T)

func SetInstanceName

func SetInstanceName(t *testing.T)

func StartCloudServer

func StartCloudServer(t *testing.T)

func StartInstances

func StartInstances(t *testing.T)

func StopCloudServer

func StopCloudServer(t *testing.T)

func StopInstances

func StopInstances(t *testing.T)

Types

This section is empty.

Jump to

Keyboard shortcuts

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