aliyun

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Name 程序名称
	Name string = "dnsctl-aliyun"

	// Module 模块名称
	Module string = "OMOA"
)

Variables

View Source
var (
	// Client Aliyun 实例
	Client *aliyun.Aliyun
)
View Source
var (
	// Version 版本号
	Version string = "0.0.1"
)

Functions

func InitAliyun

func InitAliyun(regionID, secretID, secretKey string) error

InitAliyun 初始化 Aliyun

func ParseArgs

func ParseArgs(cmd *cobra.Command, args []string)

ParseArgs 从命令行参数获取 AccessKey

如果命令行参数未指定,则从环境变量获取
- ALIYUN_REGION_ID
- ALIYUN_SECRET_ID
- ALIYUN_SECRET_KEY

Types

This section is empty.

Jump to

Keyboard shortcuts

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