package
Version:
v0.0.0-...-f696f8f
Opens a new window with list of versions in this module.
Published: Dec 25, 2024
License: MIT
Opens a new window with license information.
Imports: 14
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
var (
DefaultConfigName = "wb-go-deploy.yaml"
SshPort = 22
SshUser = "root"
SshPassword = "wirenboard"
DefaultAppDir = "/mnt/data/"
)
type BuildConfig struct {
SrcDir string `yaml:"src_dir" validate:"required,dirpath"`
OutDir string `yaml:"out_dir" validate:"required,dirpath"`
}
type Config struct {
AppName string `yaml:"app_name" validate:"required"`
Build BuildConfig `yaml:"build" validate:"required"`
Environment map[string]string `yaml:"environment"`
Devices []Device `yaml:"devices" validate:"required,min=1,dive"`
WorkingDir string
}
type Device struct {
Host string `yaml:"host" validate:"required"`
User string `yaml:"user" validate:"required"`
Password string `yaml:"password" validate:"required"`
SshPort int `yaml:"ssh_port" validate:"required,min=1,max=65535"`
AppDir string `yaml:"app_dir" validate:"required"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.