Documentation ¶
Index ¶
- Constants
- func Init(keeperAddr string) error
- func InitClient(keeper string)
- type BaseResponse
- type Client
- func (c *Client) AddFile(cluster string, file string, confData string, note string) error
- func (c *Client) GetService(serviceName string) (*discovery.Service, error)
- func (c *Client) GetServices() ([]string, error)
- func (c *Client) Keeper() string
- func (c *Client) ManageConfig(cluster string, ops []*km.Operate, note string) error
- func (c *Client) ManageNode(cluster, node, operation string) error
- func (c *Client) QueryClusters() (Clusters, error)
- func (c *Client) QueryConfig(cluster string) ([]*conf.File, error)
- func (c *Client) QueryHistory() error
- func (c *Client) QueryNodeInfo(cluster, node string) error
- func (c *Client) QueryNodeList(cluster, component string) ([]*km.NodeInfo, error)
- func (c *Client) QueryNodeStatus() error
- func (c *Client) ReloadConfig(cluster string) error
- func (c *Client) RollbackConfig(cluster string, id int64) error
- type Clusters
- type GetServiceResp
- type GetServicesResp
- type QueryClustersResp
- type QueryConfigResp
- type QueryNodeListResp
Constants ¶
View Source
const ( Start = "start" Stop = "stop" Restart = "restart" )
View Source
const ( GetConfig = "get" AddConfig = "add" UpdateConfig = "update" DeleteConfig = "delete" )
View Source
const InnerSecretKey = "D2BsaMhN4IPnsFJ8NPIki83n2f6xdC0s"
View Source
const Partner = "dashboard"
Variables ¶
This section is empty.
Functions ¶
func InitClient ¶
func InitClient(keeper string)
Types ¶
type BaseResponse ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
var KeeperAdminClient *Client
func (*Client) GetService ¶
func (*Client) GetServices ¶
func (*Client) ManageConfig ¶
管理集群配置
func (*Client) ManageNode ¶
func (*Client) QueryConfig ¶
查询集群配置
func (*Client) QueryHistory ¶
func (*Client) QueryNodeList ¶
查询集群所有结点
func (*Client) ReloadConfig ¶
type GetServiceResp ¶
type GetServicesResp ¶
type QueryClustersResp ¶
type QueryClustersResp struct { BaseResponse Data Clusters `json:"data"` }
type QueryConfigResp ¶
type QueryConfigResp struct { BaseResponse Data []*conf.File `json:"data"` }
type QueryNodeListResp ¶
type QueryNodeListResp struct { BaseResponse Data []*km.NodeInfo `json:"data"` }
Click to show internal directories.
Click to hide internal directories.