model

package
v0.0.0-...-111b8c6 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Host

type Host struct {
	Id         string `json:"id"`          // 服务器 ID
	Host       string `json:"host"`        // 服务器地址
	Port       uint32 `json:"port"`        // 端口
	Username   string `json:"username"`    // 用户名
	Password   string `json:"password"`    // 密码
	PrivateKey string `json:"private_key"` // 私钥
}

type Project

type Project struct {
	Id         string `json:"id"`         // 项目 ID
	Name       string `json:"name"`       // 项目名称
	Desc       string `json:"desc"`       // 项目描述
	Dockerfile string `json:"dockerfile"` // 指定的 Dockerfile 文件内容
	Hosts      []Host `json:"hosts"`      // 部署到对应的服务器
}

Jump to

Keyboard shortcuts

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