sdk

package
v0.0.0-...-b532d83 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudSDK

type CloudSDK interface {
	// Auth 判断是否认证信息有效,并尝试增添最低的权限角色
	// 返回认证后查询的账户信息
	Auth(ca *models.CloudAuth, region string) (*models.ProviderInfo, error)
	// Deploy 部署隧道函数
	Deploy(ca *models.CloudAuth, tun *models.Tunnel) (string, string, error)
	// Destroy 删除隧道函数
	Destroy(ca *models.CloudAuth, tun *models.Tunnel) error
	// SyncFC 同步函数
	SyncFC(ca *models.CloudAuth, regions []string) (models.TunnelCreateApiList, error)
}

func GetSDK

func GetSDK(t enum.ProviderType) CloudSDK

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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