cmd

package
v0.0.0-...-7873db6 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	XrayDbDockerRun = "" /* 180-byte string literal not displayed */
)

Functions

func CreateDefaultInitConfig

func CreateDefaultInitConfig()

CreateDefaultInitConfig 创建默认的配置文件

func Execute

func Execute()

Execute 执行rootCmd

func InstallDocker

func InstallDocker()

InstallDocker 安装docker

func InstallMysql

func InstallMysql(dockerCommand string, database string)

InstallMysql InstallMysql with docker

func InstallSqliteBin

func InstallSqliteBin()

InstallSqliteBin 安装sqlite3的可执行文件

func InstallTls

func InstallTls()

InstallTls 安装证书

func InstallTrojan

func InstallTrojan()

InstallTrojan 安装trojan

func InstallXray

func InstallXray()

InstallXray 安装xray

func ResetAdminPass

func ResetAdminPass()

ResetAdminPass 重置管理员密码

Types

type Any

type Any map[string]interface{}

Any 别名

type Mysql

type Mysql struct {
	Enabled    bool   `json:"enabled"`
	ServerAddr string `json:"server_addr"`
	ServerPort int    `json:"server_port"`
	Database   string `json:"database"`
	Username   string `json:"username"`
	Password   string `json:"password"`
	Cafile     string `json:"cafile"`
}

Jump to

Keyboard shortcuts

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