1 Star 1 Fork 0

yefeng20200202 / etcd-manage

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

etcd-manage

本项目受到e3w启发

项目旨在于方便开发者简单明了的查看、添加、修改和删除存储于etcd中的配置。

相比于e3w本程序运行简单,已将ui静态文件打包到了可执行文件中只需在终端运行此程序即可自动打开浏览器访问子集的etcd。

与e3w好的地方

  1. 支持多etcd服务,更适用于开发者日常开发场景,一般都会有开发环境、测试环境和线上环境的不同切换etcd服务端。
  2. 支持Basic Auth用户验证登录,可以通过配置文件添加用户并设置用户角色实现用户可访问etcd server的空。

Demo

demo地址: Demo

用户名:admin

密码:123456

使用

可以直接通过docker-compose将服务运行在docker中,可以参考 https://github.com/shiguanghuxian/docker-compose/tree/master/etcd33直接使用。

配置文件介绍 bin/config/cfg.toml

配置完后就可以直接在终端运行 etcd-manage

备注

如果需要切换用户需要彻底退出浏览器,重新打开管理页面。

编译和运行

由于已经将前端静态文件打包到了tpls/tpls.go,如果不需要自定义ui可以不忽略 前端代码编译 部分

服务端编译:

  1. 编译到当前平台

make build 2. 编译到其它平台

make linux_build 或 make windows_build

  1. 直接运行

make run

  1. 安装

make install

  1. 编译前端代码

make build_web

  1. 编译docker

make docker_build

docker-compose up

前端代码编译:

  1. 安装node

    下载地址 https://nodejs.org/

  2. 安装cnpm加速node依赖安装速度

    npm install -g cnpm --registry=https://registry.npm.taobao.org

  3. 安装vue-cli3

    cnpm install -g @vue/cli

  4. 安装依赖,编译项目

    cd $GOPATH/github.com/shiguanghuxian/etcd-manage/static

    cnpm install && npm run build

运行效果

首页

列表形式显示

添加

删除

查看&修改

MIT License Copyright (c) 2017 时光弧线 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

一个现代的etcd v3管理ui 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/yefeng20200202/etcd-manage.git
git@gitee.com:yefeng20200202/etcd-manage.git
yefeng20200202
etcd-manage
etcd-manage
master

搜索帮助