INNER CODE UNIT · Go

runModule

wgpsec/cloudsword · cmd/modules.go:75

func runModule(m global.Module) {
	var bool_ bool = true
	for _, n := range m.BasicOptions {
		if n.Required && n.Value == global.NULL {
			logger.Println.Warn("未配置必选参数:" + n.Key)
			bool_ = false
		}
	}
	if bool_ {
		logger.Println.Info(fmt.Sprintf("正在运行 %s 模块。", utils.GetModuleName(m)))
		switch m.ID {
		// 阿里云
		case 1101:
			aliyun.ListCloudAssets()
		case 1201:
			aliyun.OSSListBuckets()
		case 1202:
			aliyun.OSSSearchObjects()

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…