mars

command module
v5.0.0-beta.13 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

README

Mars

专为devops而生,30秒内部署一个应用。



codecov unittest Release GitHub license Go Report Card Documentation

查看文档

💡 简介

Mars 是一款专门为 devops 服务的一款应用,基于 kubernetes 之上,可以在短短几秒内部署一个和生产环境一模一样的应用。它打通了 git、kubernetes、helm,通过 git ci 构建镜像,然后通过 kubernetes 部署高可用应用,一气呵成。

🗺️ 背景

随着 devops 概念的兴起,现在软件开发不仅要求开发效率高,而且还要求部署便捷,最好能做到流水线开发打包测试上线一条龙服务。 Mars 由此而生,它打通了打包、测试、部署,基于 git ci/cd 做到任何人不管是开发大牛,还是不懂代码的产品小白,都能在 30 秒部署一个生产级别的应用。真真做到一教即会,高效生产。

✨ 特性

  • 支持基于 helm charts 开发的任何应用。
  • 支持自动配置 https 域名。
  • 支持高可用,弹性部署。
  • 支持命令行操作。
  • 支持查看容器日志。
  • 支持查看容器 cpu 和内存使用情况。
  • 插件化
    • 队列驱动: ws_sender_nsq, ws_sender_redis, ws_sender_memory
    • 证书驱动: manual_domain_manager, cert-manager_domain_manager, sync_secret_domain_manager
    • 代码仓库支持: gitlab github
    • 背景图: picture_cartoon,picture_bing
  • sdk 接入:

🍀 go-sdk 接入

go get -u github.com/duc-cnzj/mars/api/v5
package main

import (
  api "github.com/duc-cnzj/mars/api/v5"
)

func main()  {
  c, _ := api.NewClient("127.0.0.1:50000",
    api.WithAuth("admin", "123456"),
    api.WithTokenAutoRefresh(),
  )
  defer c.Close()

  // ...
}

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
examples
internal
application
Package application is a generated GoMock package.
Package application is a generated GoMock package.
auth
Package auth is a generated GoMock package.
Package auth is a generated GoMock package.
cache
Package cache is a generated GoMock package.
Package cache is a generated GoMock package.
cron
Package cron is a generated GoMock package.
Package cron is a generated GoMock package.
data
Package data is a generated GoMock package.
Package data is a generated GoMock package.
ent
event
Package event is a generated GoMock package.
Package event is a generated GoMock package.
locker
Package locker
Package locker
metrics
Package metrics
Package metrics
mlog
Package mlog is a generated GoMock package.
Package mlog is a generated GoMock package.
repo
Package repo is a generated GoMock package.
Package repo is a generated GoMock package.
server
Package server is a generated GoMock package.
Package server is a generated GoMock package.
services
Package services is a generated GoMock package.
Package services is a generated GoMock package.
socket
Package socket is a generated GoMock package.
Package socket is a generated GoMock package.
uploader
Package uploader is a generated GoMock package.
Package uploader is a generated GoMock package.
third_party

Jump to

Keyboard shortcuts

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