api_example

package
v0.0.0-...-3281640 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UserAuthKey = "cJIrTa_b2Hnjn6BZkrL8PJkYto2Ael3O"
View Source
var WalleUrl = "http://192.168.139.126:8192"

Functions

This section is empty.

Types

type Project

type Project struct {
	Id             int
	UserId         uint      //必填管理员为0
	Name           string    //必填 项目名字
	Level          int16     // 必填 项目环境1:测试,2:仿真,3:线上
	Status         int16     // 不填
	Version        string    // 不填
	RepoUrl        string    //git地址
	RepoUsername   string    // 不填
	RepoPassword   string    // 不填
	RepoMode       string    // 不填
	RepoType       string    //必填 git/file
	DeployFrom     string    //必填 宿主机存放clone出来的文件
	Excludes       string    //选填 要排除的文件
	ReleaseUser    string    //必填 目标机器用户
	ReleaseTo      string    //必填 目标机器的目录,相当于nginx的root,可直接web访问
	ReleaseLibrary string    //必填 目标机器版本发布库
	Hosts          string    //必填 目标机器列表
	PreDeploy      string    //选填 部署前置任务
	PostDeploy     string    //选填 同步之前任务
	PreRelease     string    //选填 同步之前目标机器执行的任务
	PostRelease    string    //选填 同步之后目标机器执行的任务
	Audit          int16     // 不填
	Ansible        int16     // 不填
	KeepVersionNum int       //选填 线上版本保留数 默认20
	CreatedAt      time.Time // 不填
	UpdatedAt      time.Time // 不填
	P2p            int16     //选填 部署前置任务
	Orgalorg       int16     // 不填
	HostGroup      string    // 不填
	Gzip           int16     // 不填
}

type Task

type Task struct {
	ProjectId  int
	Title      string
	CommitId   string
	Branch     string
	PmsBatchId int //选填
	PmsUworkId int //选填
}

type WalleRes

type WalleRes struct {
	Msg  string      `json:"msg,omitempty"`
	Code int         `json:"code,omitempty"`
	Data interface{} `json:"data,omitempty"`
}

Jump to

Keyboard shortcuts

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