Documentation
¶
Index ¶
- Variables
- func BasicsAndSecurityCheck(language, nt3CheckType string, securityCheckStatus bool) (string, string, string)
- func CaptureOutput(f func()) string
- func CheckChina(enableLogger bool) bool
- 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 NetCheckResult
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)
BasicsAndSecurityCheck 执行安全检查
func CheckChina ¶ added in v0.0.33
func PrintAndCapture ¶
PrintAndCapture 捕获函数输出的同时打印内容
func PrintCenteredTitle ¶
PrintCenteredTitle 根据指定的宽度打印居中标题
func ProcessAndUpload ¶ added in v0.0.14
ProcessAndUpload 创建结果文件并上传文件
Types ¶
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.