Documentation ¶
Overview ¶
Package cfg provides configuration structs and types
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
// NoInertiaRemote is used to warn about missing inertia remote
NoInertiaRemote = "No inertia remote"
)
Functions ¶
func SetProperty ¶ added in v0.5.0
SetProperty takes a struct pointer and searches for its "toml" tag with a search key and set property value with the tag
Types ¶
type Config ¶
type Config struct { Version string `toml:"version"` Project string `toml:"project-name"` BuildType string `toml:"build-type"` BuildFilePath string `toml:"build-file-path"` Remotes map[string]*RemoteVPS `toml:"remotes"` }
Config represents the current projects configuration.
func (*Config) RemoveRemote ¶
RemoveRemote removes remote with given name
type DaemonConfig ¶
type DaemonConfig struct { Port string `toml:"port"` Token string `toml:"token"` WebHookSecret string `toml:"webhook-secret"` }
DaemonConfig contains parameters for the Daemon
type RemoteVPS ¶
type RemoteVPS struct { Name string `toml:"name"` IP string `toml:"IP"` User string `toml:"user"` PEM string `toml:"pemfile"` Branch string `toml:"branch"` SSHPort string `toml:"ssh-port"` Daemon *DaemonConfig `toml:"daemon"` DontKillOnDeath *bool `toml:"no-kill-on-death"` }
RemoteVPS contains parameters for the VPS
func (*RemoteVPS) GetIPAndPort ¶
GetIPAndPort creates the IP:Port string.
Click to show internal directories.
Click to hide internal directories.