types

package
Version: v3.1.0-rc.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BK_CC_EVENT    string = "event"
	BK_CC_MODEL    string = "model"
	BK_CC_AUDIT    string = "audit"
	BK_CC_RESOURCE string = "resource"
)
View Source
const (
	BK_CC_UPDATE     string = "update"
	BK_CC_DELETE     string = "delete"
	BK_CC_CREATE     string = "create"
	BK_CC_SEARCH     string = "search"
	BK_CC_HOSTUPDATE string = "hostupdate"
	BK_CC_HOSTTRANS  string = "hosttrans"
	BK_CC_TOPOUPDATE string = "topoupdate"
	BK_CC_CUSTOMAPI  string = "customapi"
	BK_CC_PROCCONFIG string = "proconfig"
)
View Source
const (
	BK_APP_SEARCH                    = "biz/search"
	BK_SET_SEARCH                    = "set/search"
	BK_MODULE_SEARCH                 = "module/search"
	BK_INST_SEARCH                   = "inst/search"
	BK_HOSTS_SEARCH                  = "hosts/search"
	BK_HOSTS_SNAP                    = "hosts/snapshot"
	BK_HOSTS_HIS                     = "hosts/history"
	BK_TOPO_MODEL                    = "topo/model"
	BK_INST_ASSOCIATION_TOPO_SEARCH  = "inst/association/topo/search"
	BK_INST_ASSOCIATION_OWNER_SEARCH = "inst/association/search/owner"
)

bk search

View Source
const (
	BK_INSTS  string = "inst"
	BK_TOPO   string = "topo"
	BK_SET    string = "set"
	BK_MODULE string = "module"
)

bk topo

View Source
const (
	BK_INSTSI string = "insts"
	BK_IMPORT string = "import"
)
View Source
const (
	BK_INST_SEARCH_OWNER string = "inst/search/owner"
	BK_OBJECT_PLAT       string = "object/plat"
)
View Source
const BK_CC_CLASSIFIC string = "object/classifications"
View Source
const BK_CC_HOST_FAVORITES string = "favorites"
View Source
const BK_CC_MAINTAINERS string = "bk_biz_maintainer"
View Source
const BK_CC_OBJECT_ATTR string = "object/attr/search"
View Source
const BK_CC_PRIVI_PATTERN string = "topo/privilege/user/detail"
View Source
const BK_CC_USER_CUSTOM string = "usercustom"
View Source
const BK_HOST_TRANS = "hosts/modules"

host trans pattern

View Source
const BK_HOST_UPDATE string = "hosts/batch"

host update string

View Source
const BK_OBJECT_ATT_GROUP = "objectatt/group/property/owner"
View Source
const BK_PROC_S string = "proc"

proc manage pattern

View Source
const BK_USER_API_S string = "userapi"

user api pattern

Variables

View Source
var (
	ResPatternRegexp    = regexp.MustCompile(resPattern)
	ObjectPatternRegexp = regexp.MustCompile(objectPattern)
)

system config privilege regexp

View Source
var BK_CC_AUDIT_PRE = []string{"audit"}
View Source
var BK_CC_EVENT_PRE = []string{"event"}
View Source
var BK_CC_MODEL_PRE = []string{"object", "objects"}
View Source
var BK_CC_SYSCONFIG = []string{"event", "model", "audit"}
View Source
var SearchPatternRegexp = regexp.MustCompile(searchPattern)

Functions

This section is empty.

Types

type AppResult

type AppResult struct {
	Count int                      `json:"count"`
	Info  []map[string]interface{} `json:"info"`
}

type LoginResult

type LoginResult struct {
	Message string
	Code    string
	Result  bool
	Data    interface{}
}

type RoleAppResult

type RoleAppResult struct {
	Result  bool                     `json:"result"`
	Code    int                      `json:"bk_error_code"`
	Message interface{}              `json:"bk_error_msg"`
	Data    []map[string]interface{} `json:"data"`
}

type RolePriResult

type RolePriResult struct {
	Result  bool        `json:"result"`
	Code    int         `json:"bk_error_code"`
	Message interface{} `json:"bk_error_msg"`
	Data    []string    `json:"data"`
}

type SearchAppResult

type SearchAppResult struct {
	Result  bool        `json:"result"`
	Code    int         `json:"bk_error_code"`
	Message interface{} `json:"bk_error_msg"`
	Data    AppResult   `json:"data"`
}

Source Files

Jump to

Keyboard shortcuts

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