package
0.3.0
Repository: https://github.com/ucloud/ucloud-cli.git
Documentation: pkg.go.dev

# Functions

AppendToFile 添加到文件中.
Confirm 二次确认.
FormatDate 格式化时间,把以秒为单位的时间戳格式化未年月日.
FormatDateTime 格式化时间,把以秒为单位的时间戳格式化未年月日/时分秒.
GetBizClient 初始化BizClient.
GetConfigDir 获取配置文件所在目录.
GetFileList 补全文件名.
GetHomePath 获取家目录.
GetLogFileDir 获取日志文件路径.
GetLogFilePath 获取日志文件路径.
GetLogger return point of logger.
GetUserInfo from local file and remote api.
HandleBizError 处理RetCode != 0 的业务异常.
HandleError 处理错误,业务错误 和 HTTP错误.
InitConfig 初始化配置.
No description provided by the author
No description provided by the author
LineInFile 检查某一行是否在某文件中.
ListAggConfig ucloud --config + ucloud config list.
LoadUserInfo 从~/.ucloud/user.json加载用户信息.
LogError 记录日志.
LogInfo 记录日志.
LogPrint 记录日志.
LogWarn 记录日志.
MosaicString 对字符串敏感部分打马赛克 如公钥私钥.
NewAggConfigManager create instance.
NewClient will return a aggregate client.
No description provided by the author
NewLogRotateHook create a LogRotateHook.
NewPoller 轮询.
NewSpoller simple.
ParseError 解析错误为字符串.
PickResourceID uhost-xxx/uhost-name => uhost-xxx.
PrintDescribe 打印详情.
PrintJSON 以JSON格式打印数据集合.
PrintList 打印表格或者JSON.
PrintTable 以表格方式打印数据集合.
PrintTableS 简化版表格打印,无需传表头,根据结构体反射解析.
ToQueryMap tranform request to map.
UploadLogs send logs to das server.
WriteJSONFile 写json文件.

# Constants

ConfigPath 配置文件路径.
DateTimeLayout 时间格式.
DefaultBaseURL location of api server.
No description provided by the author
DefaultMaxRetryTimes default timeout for requesting api, 15s.
DefaultProfile name of default profile.
DefaultTimeoutSec default timeout for requesting api, 15s.
GAP 表格列直接的间隔字符数.
LocalFileMode file mode of $HOME/ucloud/*.
Version 版本号.

# Variables

AggConfigListIns 配置列表, 进程启动时从本地文件加载.
AuthCredential 创建sdk client参数.
BizClient 用于调用业务接口.
ClientConfig 创建sdk client参数.
ConfigFilePath path of config.json.
ConfigIns 配置实例, 程序加载时生成.
CredentialFilePath path of credential.json.
No description provided by the author
Cxt 上下文.
Global 全局flag.
No description provided by the author
RegionLabel regionlable.
SdkClient 用于上报数据.
No description provided by the author

# Structs

AggConfig 聚合配置 config+credential.
AggConfigManager 配置管理.
CLIConfig cli_config element.
Client aggregate client for business.
CredentialConfig credential element.
No description provided by the author
DescribeTableRow 详情表格通用表格行.
GlobalFlag 几乎所有接口都需要的参数,例如 region zone projectID.
LogRotateHook rotate log file.
OldConfig 0.1.7以及之前版本的配置struct.
Poller 轮询器.
Tracer upload log to server if allowed.

# Type aliases

PrivatePathxClient 私有模块的pathx client 即未在官网开放的接口.
PrivateUDBClient 私有模块的udb client 即未在官网开放的接口.
PrivateUHostClient 私有模块的uhost client 即未在官网开放的接口.
PrivateUMemClient 私有模块的umem client 即未在官网开放的接口.