etcd

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2026 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Package etcd 实现 etcd binder:KV 浏览、查询面板、连接测试。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Etcd

type Etcd struct {
	// contains filtered or unexported fields
}

Etcd binder。

func New

func New(appCtx context.Context, lang LangProvider, pool *sshpool.Pool) *Etcd

New 构造 etcd binder。

func (*Etcd) Cleanup

func (e *Etcd) Cleanup()

Cleanup 占位。

func (*Etcd) EtcdExec

func (e *Etcd) EtcdExec(req etcd_svc.ExecRequest) (*etcd_svc.ExecResult, error)

EtcdExec 执行 etcd 操作(get/put/del/lease/member/endpoint),来源标记为查询面板。

func (*Etcd) EtcdListPrefix

func (e *Etcd) EtcdListPrefix(req etcd_svc.ListPrefixRequest) (*etcd_svc.ListPrefixResult, error)

EtcdListPrefix 按前缀分层列出 keys(用于 KV 树懒加载)。

func (*Etcd) EtcdTestConnection

func (e *Etcd) EtcdTestConnection(assetID int64) error

EtcdTestConnection 即时拨号验证 etcd 资产可达。

func (*Etcd) Startup

func (e *Etcd) Startup(ctx context.Context)

Startup 保存 Wails ctx。

type LangProvider

type LangProvider interface {
	Lang() string
}

LangProvider 由 system binder 实现。

Jump to

Keyboard shortcuts

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