config

package
v0.0.1-rc1 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Deploy

type Deploy struct {
	TargetFolder string `yaml:"target_folder"`
}

type Deployment

type Deployment struct {
	DockerUser     string      `yaml:"user"`
	DockerPassword string      `yaml:"password"`
	Type           string      `yaml:"type"`
	SSHConfig      []SSHConfig `yaml:"ssh_config"`
	Deploy         Deploy      `yaml:"deploy"`
}

func NewConfig

func NewConfig() Deployment

func ParseConfig

func ParseConfig() (config Deployment, err error)

ParseConfig 解析部署配置文件优先:命令行参数 > 环境变量 > 当前目录配文件

type SSHConfig

type SSHConfig struct {
	Ip       string `yaml:"ip"`
	Port     int    `yaml:"port"`
	User     string `yaml:"user"`
	Password string `yaml:"password"`
}

Jump to

Keyboard shortcuts

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