commands

package
v0.0.0-...-5fda629 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: MulanPSL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	HTTPClient *http.Client
	//ApiKey string
	BaseURL string
}

func NewClient

func NewClient() *Client

func (*Client) Add

func (cli *Client) Add() error

TODO ADD

func (*Client) Clear

func (cli *Client) Clear() (string, error)

清理dead资源

func (*Client) Delete

func (cli *Client) Delete(param string) (string, error)

DELETE

func (*Client) Find

func (cli *Client) Find(param string) (string, error)

TODO FIND

func (*Client) GetTagGroupInfos

func (cli *Client) GetTagGroupInfos(info TagGroupSearchInfo) (string, error)

func (*Client) Group

func (cli *Client) Group() error

TODO GROUP

func (*Client) Human

func (cli *Client) Human(param string) (string, error)

返回某guId对应的资源信息

func (*Client) Kafka

func (cli *Client) Kafka() ([]*Resp, error)

TODO KAFKA

func (*Client) List

func (cli *Client) List(param string) ([]byte, error)

列出资源信息(all:全部;alive:活跃的;dead:停止的)

func (*Client) Register

func (cli *Client) Register(ri RegisterInfo) (string, error)

注册

func (*Client) Relation

func (cli *Client) Relation(param string) (string, error)

TODO RELATION

func (*Client) Restart

func (cli *Client) Restart() ([]*Resp, error)

TODO RESTART

func (*Client) SetIp

func (cli *Client) SetIp() ([]*Resp, error)

TODO SETIP

func (*Client) Stop

func (cli *Client) Stop() ([]*Resp, error)

TODO STOP

func (*Client) TopicPub

func (cli *Client) TopicPub() ([]*Resp, error)

TODO TOPICPUB

func (*Client) TopicSub

func (cli *Client) TopicSub() ([]*Resp, error)

TODO TOPICSUB

type RegisterInfo

type RegisterInfo struct {
	Description string
	Status      int
	Area        string
	DependNode  string
	OType       int
	Utilization int
	Tags        []Tag
}

type Resp

type Resp struct {
}

type Tag

type Tag struct {
	Key   string
	Type  string
	Value interface{}
}

type TagGroupSearchInfo

type TagGroupSearchInfo struct {
	OType  int `json:"oType"`
	Status int `json:"status"`
	Tag    Tag `json:"tag"`
}

Jump to

Keyboard shortcuts

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