package
Version:
v0.0.0-...-0a64ede
Opens a new window with list of versions in this module.
Published: Mar 6, 2024
License: MIT
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
var ErrRamInfoNil = errors.New("ram info is nil")
HasCacheRam 开启 RAM 数据缓存
HasEnvRam 开启 RAM 更新环境变量
Region 获取实例所在地域,如 cn-hangzhou
TerminationTime 获取实例释放时间,仅抢占式适用
Zone 获取实例所在可用区,如 cn-hangzhou-b
type RamInfo struct {
AccessKeyID string `json:"AccessKeyId"`
AccessKeySecret string `json:"AccessKeySecret"`
Expiration time.Time `json:"Expiration"`
SecurityToken string `json:"SecurityToken"`
LastUpdated time.Time `json:"LastUpdated"`
Code string `json:"Code"`
Error error `json:"Error"`
}
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.