app

package
v1.29.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Overview

Package app xxx

Index

Constants

View Source
const (
	// IdcId idc id
	IdcId = "bcs_idc_id"
	// IdcName idc name
	IdcName = "bcs_idc_name"
	// IdcUnitId idc unit id
	IdcUnitId = "bcs_idc_unit_id"
	// IdcUnitName idc unit name
	IdcUnitName = "bcs_idc_unit_name"
	// Rack rack
	Rack = "bcs_rack"
	// SvrTypeName server type name
	SvrTypeName = "bcs_svr_type_name"
	// CvmRegion cvm region
	CvmRegion = "bcs_cvm_region"
	// CvmZone cvm zone
	CvmZone = "bcs_cvm_zone"

	// LabelOfIdcId label of idc id
	LabelOfIdcId = "bkbcs.tencent.com/idc-id"
	// LabelOfIdcName label of idc name
	LabelOfIdcName = "bkbcs.tencent.com/idc-name"
	// LabelOfIdcUnitId label of idc unit id
	LabelOfIdcUnitId = "bkbcs.tencent.com/idc-unit-id"
	// LabelOfIdcUnitName label of idc unit name
	LabelOfIdcUnitName = "bkbcs.tencent.com/idc-unit-name"
	// LabelOfRack label of rack
	LabelOfRack = "bkbcs.tencent.com/rack"
	// LabelOfSvrTypeName label of server type name
	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"`
}

APIResponse xxx

type NodeInfo

type NodeInfo struct {
	*Properties
	CvmRegion string
	CvmZone   string
}

NodeInfo xxx

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

Properties xxx

type PropertyFilter

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

PropertyFilter xxx

type RespData

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

RespData xxx

type Rule

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

Rule xxx

Jump to

Keyboard shortcuts

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