Documentation
¶
Overview ¶
Package ApolloCLI
Package ApolloCLI ¶
Package ApolloCLI ¶
Package ApolloCLI ¶
Package ApolloCLI ¶
Package ApolloCLI ¶
Package ApolloCLI ¶
Package ApolloCLI ¶
Package ApolloCLI ¶
Package ApolloCLI ¶
Package ApolloCLI ¶
Package ApolloCLI ¶
Package ApolloCLI ¶
Package ApolloCLI
Index ¶
- Constants
- Variables
- func ErrPrintf(f string, v ...interface{})
- func ErrPrintln(v ...interface{})
- func InfoPrintf(f string, v ...interface{})
- func InfoPrintln(v ...interface{})
- func NoEngineManage(app string, ops string) (interface{}, error)
- func SuccessPrintf(f string, v ...interface{})
- func SuccessPrintln(v ...interface{})
- func TableApps(d interface{}) (*table.Table, error)
- type App
- type NoEnginePort
- type NoEngineTemplate
- type NoEngineVolume
Constants ¶
View Source
const ( ApolloCLI = "ApolloCLI" ApolloAddr = "/var/run/Apollo.sock" APPRoot = "/renj.io/app" TwigAddr = "/var/run/OctopusTwig.sock" ReadSize = 1 << 20 )
View Source
const ( NoEngineAll = "/api/noengine/all" NoEngineStart = "/api/noengine/x/start" NoEngineReStart = "/api/noengine/x/restart" NoEngineStop = "/api/noengine/x/stop" NoEnginePause = "/api/noengine/x/pause" NoEngineResume = "/api/noengine/x/resume" NoEngineRemove = "/api/noengine/x/remove" NoEngineStatus = "/api/noengine/x/status" NoEngineRefresh = "/api/noengine/x/refresh" )
View Source
const Logo = `` /* 750-byte string literal not displayed */
Variables ¶
View Source
var CLI = grumble.New(&grumble.Config{ Name: ApolloCLI, Description: msg.Description, Flags: func(f *grumble.Flags) { f.String("a", "address", ApolloAddr, msg.FlagAddress) f.Bool("v", "version", false, msg.FlagVersion) f.Bool("s", "skip", false, msg.FlagVersion) }, PromptColor: color.New(color.FgGreen, color.Bold), HelpHeadlineColor: color.New(color.FgGreen), HelpHeadlineUnderline: true, })
Functions ¶
func ErrPrintln ¶
func ErrPrintln(v ...interface{})
func InfoPrintf ¶
func InfoPrintf(f string, v ...interface{})
func InfoPrintln ¶
func InfoPrintln(v ...interface{})
func NoEngineManage ¶
NoEngineManage 查询全部服务时app为空
func SuccessPrintf ¶
func SuccessPrintf(f string, v ...interface{})
func SuccessPrintln ¶
func SuccessPrintln(v ...interface{})
Types ¶
type App ¶
type App struct {
Meta octopus_meta.App `json:"meta"`
}
type NoEnginePort ¶
type NoEngineTemplate ¶
type NoEngineTemplate struct {
// 域名默认由nginx.conf文件配置不需要单独写在配置文件中
ServerDomain string `json:"serverDomain"` // 缺省域名
ServerName string `json:"serverName"` // 微服务名称
Volumes []NoEngineVolume `json:"volumes"` // 映射卷
Ports []NoEnginePort `json:"ports"` // 映射端口 开启随机端口时hostPort为随机生成
}
type NoEngineVolume ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.