app

package
v1.27.0-alpha.30 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2022 License: MIT Imports: 20 Imported by: 0

Documentation

Overview

Package app xxx

Index

Constants

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

	// LabelOfIdcId TODO
	LabelOfIdcId = "bkbcs.tencent.com/idc-id"
	// LabelOfIdcName TODO
	LabelOfIdcName = "bkbcs.tencent.com/idc-name"
	// LabelOfIdcUnitId TODO
	LabelOfIdcUnitId = "bkbcs.tencent.com/idc-unit-id"
	// LabelOfIdcUnitName TODO
	LabelOfIdcUnitName = "bkbcs.tencent.com/idc-unit-name"
	// LabelOfRack TODO
	LabelOfRack = "bkbcs.tencent.com/rack"
	// LabelOfSvrTypeName TODO
	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