Documentation ¶
Index ¶
- Constants
- func ParseAppSearchParams(input map[string]interface{}) map[string]interface{}
- func ParseCommonParams(input []interface{}, output map[string]interface{}) error
- func ParseHostIPParams(ipCond IPInfo, output map[string]interface{}) error
- func ParseHostParams(input []interface{}, output map[string]interface{}) error
- func SpeceialCharChange(targetStr string) string
- type CommonResult
- type Gprivilege
- type GroupPriviResult
- type GroupPrivilege
- type HostCommonSearch
- type IPInfo
- type PageInfo
- type Privilege
- type SearchCondition
- type SearchGroup
- type SearchParams
- type SubscribeCommonSearch
- type SysConfigStruct
- type UserPriviResult
- type UserPrivilege
Constants ¶
View Source
const ( INNERONLY string = "bk_host_innerip" OUTERONLY string = "bk_host_outerip" IOBOTH string = "bk_host_innerip|bk_host_outerip" )
Variables ¶
This section is empty.
Functions ¶
func ParseAppSearchParams ¶
func ParseCommonParams ¶
func ParseHostIPParams ¶
func ParseHostParams ¶
func SpeceialCharChange ¶
Types ¶
type CommonResult ¶
type CommonResult struct { Result bool `json:"result"` Code int `json:"int"` Message interface{} `json:"message"` Data interface{} `json:"data"` }
common result struct
type Gprivilege ¶
type Gprivilege struct { ModelConfig map[string]map[string][]string `json:"model_config"` SysConfig SysConfigStruct `json:"sys_config,omitempty"` IsHostCrossBiz bool `json:"is_host_cross_biz"` }
type GroupPriviResult ¶
type GroupPriviResult struct { Result bool `json:"result"` Code int `json:"code"` Message interface{} `json:"message"` Data GroupPrivilege `json:"data"` }
type GroupPrivilege ¶
type HostCommonSearch ¶
type HostCommonSearch struct { AppID int `json:"bk_biz_id,omitempty"` Ip IPInfo `json:"ip"` Condition []SearchCondition `json:"condition"` Page PageInfo `json:"page"` Pattern string `json:"pattern,omitempty"` }
common search struct
type IPInfo ¶
type IPInfo struct { Data []string `json:"data"` Exact int `json:"exact"` Flag string `json:"flag"` }
ip search info
type PageInfo ¶
type PageInfo struct { Start int `json:"start"` Limit int `json:"limit"` Sort string `json:"sort"` }
common page info
type Privilege ¶
type Privilege struct { ModelConfig map[string]map[string][]string `json:"model_config,omitempty"` SysConfig *SysConfigStruct `json:"sys_config,omitempty"` }
type SearchCondition ¶
type SearchCondition struct { Fields []string `json:"fields"` Condition []interface{} `json:"condition"` ObjectID string `json:"bk_obj_id"` }
search condition
type SearchGroup ¶
type SearchParams ¶
type SearchParams struct { Condition map[string]interface{} `json:"condition"` Page map[string]interface{} `json:"page,omitempty"` Fields []string `json:"fields,omitempty"` Native int `json:"native,omitempty"` }
common search struct
type SubscribeCommonSearch ¶
type SubscribeCommonSearch struct { Fields []string `json:"fields"` Condition map[string]interface{} `json:"condition"` Page PageInfo `json:"page"` }
common search struct
type SysConfigStruct ¶
type UserPriviResult ¶
type UserPriviResult struct { Result bool `json:"result"` Code int `json:"code"` Message interface{} `json:"message"` Data UserPrivilege `json:"data"` }
type UserPrivilege ¶
type UserPrivilege struct { GroupID string `json:"bk_group_id"` ModelConfig map[string]map[string][]string `json:"model_config"` SysConfig SysConfigStruct `json:"sys_config"` }
Click to show internal directories.
Click to hide internal directories.