Documentation
¶
Index ¶
- Variables
- func BasicsAndSecurityCheck(language, nt3CheckType string, securityCheckStatus bool) (string, string, string, string, string)
- func CaptureOutput(f func()) string
- func CheckChina(enableLogger bool) bool
- func CompareVersions(v1, v2 string) int
- func FormatGoecsNumber(num int) string
- func OnlyBasicsIpInfo(language string) (string, string, string)
- func PrintAndCapture(f func(), tempOutput, output string) string
- func PrintCenteredTitle(title string, width int)
- func PrintHead(language string, width int, ecsVersion string)
- func ProcessAndUpload(output string, filePath string, enableUplaod bool) (string, string)
- func UploadText(absPath string) (string, string, error)
- type GitHubRelease
- type NetCheckResult
- type StatsResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var StackType string
Functions ¶
func BasicsAndSecurityCheck ¶ added in v0.0.84
func BasicsAndSecurityCheck(language, nt3CheckType string, securityCheckStatus bool) (string, string, string, string, string)
BasicsAndSecurityCheck 执行安全检查
func CheckChina ¶ added in v0.0.33
func OnlyBasicsIpInfo ¶ added in v0.1.75
OnlyBasicsIpInfo 仅检查和输出IP信息
func PrintAndCapture ¶
PrintAndCapture 捕获函数输出的同时打印内容
func PrintCenteredTitle ¶
PrintCenteredTitle 根据指定的宽度打印居中标题
func ProcessAndUpload ¶ added in v0.0.14
ProcessAndUpload 创建结果文件并上传文件
Types ¶
type GitHubRelease ¶ added in v0.1.74
type GitHubRelease struct {
TagName string `json:"tag_name"`
}
获取最新的Github的仓库中的版本
func GetLatestEcsRelease ¶ added in v0.1.74
func GetLatestEcsRelease() (*GitHubRelease, error)
通过Github的API检索仓库最新TAG的版本
type NetCheckResult ¶ added in v0.1.38
type NetCheckResult struct {
HasIPv4 bool
HasIPv6 bool
Connected bool
StackType string // "IPv4", "IPv6", "DualStack", "None"
}
func CheckPublicAccess ¶ added in v0.1.38
func CheckPublicAccess(timeout time.Duration) NetCheckResult
前置联网能力检测
Click to show internal directories.
Click to hide internal directories.