deploy

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GitRepoKey = "git_repo"
	BranchKey  = "deploy_branch"
	GOVersion  = "1.23.4"
)

Variables

View Source
var Env envService
View Source
var EnvDefault = []GoEnv{
	{"GOARCH", "amd64", true},
	{"GOOS", "linux", true},
	{"CGO_ENABLED", "0", false},
	{"GO111MODULE", "on", false},
}

Functions

func Branches

func Branches(ctx *gin.Context)

func CheckGit

func CheckGit(ctx *gin.Context)

func CheckGo added in v1.0.8

func CheckGo(ctx *gin.Context)

func GenSSHKey

func GenSSHKey(ctx *gin.Context)

func GetSSHKey

func GetSSHKey(ctx *gin.Context)

func GoEnvGet added in v1.0.8

func GoEnvGet(ctx *gin.Context)

func GoEnvSet added in v1.0.8

func GoEnvSet(ctx *gin.Context)

func Install

func Install(ctx *gin.Context)

func InstallGo added in v1.0.8

func InstallGo(ctx *gin.Context)

Types

type EnvVersion

type EnvVersion struct {
	Installed bool   `json:"installed"`
	Version   string `json:"version"`
	Error     string `json:"error"`
}

type GitRepo

type GitRepo struct {
	URL    string   `json:"url"`
	Branch []string `json:"branch"`
}

type GoEnv added in v1.0.8

type GoEnv struct {
	Key     string `json:"key" form:"gitInit" binding:"required"`
	Value   string `json:"value" form:"gitInit" binding:"required"`
	Default bool   `json:"default"`
}

type SshKey

type SshKey struct {
	PublicKey string `json:"publicKey"`
	Error     string `json:"error"`
}

Jump to

Keyboard shortcuts

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