params

package
v3.0.8-alpha.10+incomp... Latest Latest
Warning

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

Go to latest
Published: May 28, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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 ParseAppSearchParams(input map[string]interface{}) map[string]interface{}

func ParseCommonParams

func ParseCommonParams(input []interface{}, output map[string]interface{}) error

func ParseHostIPParams

func ParseHostIPParams(ipCond IPInfo, output map[string]interface{}) error

func ParseHostParams

func ParseHostParams(input []interface{}, output map[string]interface{}) error

func SpeceialCharChange

func SpeceialCharChange(targetStr string) string

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 GroupPrivilege struct {
	GroupID   string
	OwnerID   string
	Privilege Privilege `json:"privilege"`
}

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 SearchGroup struct {
	Code    int         `json:"code"`
	Result  bool        `json:"result"`
	Message interface{} `json:"message"`
	Data    interface{} `json:"data"`
}

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 SysConfigStruct struct {
	Globalbusi []string `json:"global_busi"`
	BackConfig []string `json:"back_config"`
}

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"`
}

Jump to

Keyboard shortcuts

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