defs

package
v3.0.7-beta+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ObjMap = map[string]map[string]string{
	"1": map[string]string{
		"ObjectID":      common.BKInnerObjIDApp,
		"IDName":        "ApplicationID",
		"IDDisplayName": "业务ID",
	},
	"2": map[string]string{
		"ObjectID":      common.BKInnerObjIDSet,
		"IDName":        "SetID",
		"IDDisplayName": "集群ID",
	},
	"3": map[string]string{
		"ObjectID":      common.BKInnerObjIDModule,
		"IDName":        "ModuleID",
		"IDDisplayName": "模块ID",
	},
	"4": map[string]string{
		"ObjectID":      common.BKInnerObjIDHost,
		"IDName":        "HostID",
		"IDDisplayName": "主机ID",
	},
}

2.0与3.0的对象映射

View Source
var RoleMap = map[string]string{
	"Maintainers": "bk_biz_maintainer",
	"ProductPm":   "bk_biz_productor",
}
View Source
var SetEnvMap = map[string]string{
	"1": "测试",
	"2": "体验",
	"3": "正式",
}

env 1:测试 2:体验 3:正式,默认为3

View Source
var SetStatusMap = map[string]string{
	"0": "关闭",
	"1": "开放",
}

服务状态,包含0:关闭,1:开启,默认为1

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL