app

package
v1.20.11 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2021 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IdcId       = "bcs_idc_id"
	IdcName     = "bcs_idc_name"
	IdcUnitId   = "bcs_idc_unit_id"
	IdcUnitName = "bcs_idc_unit_name"
	Rack        = "bcs_rack"
	SvrTypeName = "bcs_svr_type_name"
	CvmRegion   = "bcs_cvm_region"
	CvmZone     = "bcs_cvm_zone"

	LabelOfIdcId       = "bkbcs.tencent.com/idc-id"
	LabelOfIdcName     = "bkbcs.tencent.com/idc-name"
	LabelOfIdcUnitId   = "bkbcs.tencent.com/idc-unit-id"
	LabelOfIdcUnitName = "bkbcs.tencent.com/idc-unit-name"
	LabelOfRack        = "bkbcs.tencent.com/rack"
	LabelOfSvrTypeName = "bkbcs.tencent.com/svr-type-name"
)

Variables

This section is empty.

Functions

func Run

func Run(op *options.ServerOption)

Run bcs-cc-agent server

Types

type APIResponse

type APIResponse struct {
	Result  bool     `json:"result"`
	Code    int      `json:"code"`
	Data    RespData `json:"data"`
	Message string   `json:"message"`
}

type NodeInfo

type NodeInfo struct {
	*Properties
	CvmRegion string
	CvmZone   string
}

type Properties

type Properties struct {
	HostInnerIP string `json:"bk_host_innerip"`
	IdcId       int    `json:"idc_id"`
	IdcName     string `json:"idc_name"`
	IdcUnitId   int    `json:"idc_unit_id"`
	IdcUnitName string `json:"idc_unit_name"`
	SvrTypeName string `json:"svr_type_name"`
	Rack        string `json:"rack"`
}

type PropertyFilter

type PropertyFilter struct {
	Condition string `json:"condition"`
	Rules     []Rule `json:"rules"`
}

type RespData

type RespData struct {
	Count int          `json:"count"`
	Info  []Properties `json:"info"`
}

type Rule

type Rule struct {
	Field    string `json:"field"`
	Operator string `json:"operator"`
	Value    string `json:"value"`
}

Jump to

Keyboard shortcuts

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