cmd

package
v0.0.0-...-cb472e6 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2021 License: MIT Imports: 37 Imported by: 0

Documentation

Overview

apiserver对于接收到的请求可以配置限流策略 该命令行工具可对这些限流策略(规则)进行增删查的操作

Index

Constants

View Source
const (
	DefaultDir = "../cmdb_adminserver/configures"
)

Variables

This section is empty.

Functions

func GetRootCmd

func GetRootCmd() *cobra.Command

func NewAuthCommand

func NewAuthCommand() *cobra.Command

func NewConfCommand

func NewConfCommand() *cobra.Command

func NewEchoCommand

func NewEchoCommand() *cobra.Command

func NewLimiterCommand

func NewLimiterCommand() *cobra.Command

func NewLogCommand

func NewLogCommand() *cobra.Command

func NewShutdownCommand

func NewShutdownCommand() *cobra.Command

func NewSnapshotCheckCommand

func NewSnapshotCheckCommand() *cobra.Command

func NewTopoCheckCommand

func NewTopoCheckCommand() *cobra.Command

func NewWatchCommand

func NewWatchCommand() *cobra.Command

func NewZkCommand

func NewZkCommand() *cobra.Command

func WithBlueColor

func WithBlueColor(str string) string

func WithGreenColor

func WithGreenColor(str string) string

func WithRedColor

func WithRedColor(str string) string

Types

type Detail

type Detail struct {
	Cursor    string `json:"bk_cursor"`
	Resource  string `json:"bk_resource"`
	EventType string `json:"bk_event_type"`
	// Default instance is JsonString type
	Detail map[string]interface{} `json:"bk_detail"`
}

type WatchResp

type WatchResp struct {
	// watched events or not
	Watched bool      `json:"bk_watched"`
	Events  []*Detail `json:"bk_events"`
}

Jump to

Keyboard shortcuts

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