Documentation ¶
Index ¶
- Constants
- func ParseAppSearchParams(input map[string]interface{}) map[string]interface{}
- func ParseCommonParams(input []metadata.ConditionItem, output map[string]interface{}) error
- func ParseHostIPParams(ipCond metadata.IPInfo, output map[string]interface{}) error
- func ParseHostParams(input []metadata.ConditionItem, 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 SearchMainLine
- type SearchParams
- 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 ParseCommonParams(input []metadata.ConditionItem, output map[string]interface{}) error
func ParseHostIPParams ¶
func ParseHostParams ¶
func ParseHostParams(input []metadata.ConditionItem, output map[string]interface{}) error
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 SearchMainLine ¶
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 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.