Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocalConfig ¶
type LocalConfig struct {
// contains filtered or unexported fields
}
Local configuration.
func (*LocalConfig) Create ¶
func (c *LocalConfig) Create() error
Create a config file from a template.
func (*LocalConfig) Read ¶
func (c *LocalConfig) Read() (*ServerConfig, error)
Read and parse the config file into a struct.
type RemoteConfig ¶
type RemoteConfig struct {
// contains filtered or unexported fields
}
Remote configuration.
func NewRemote ¶
func NewRemote(conn *server.Connection) *RemoteConfig
Initialise a new remote config.
func (*RemoteConfig) Write ¶
func (c *RemoteConfig) Write(rev string) error
Write to the remote config.
type SectionConfig ¶
type SectionConfig struct {
Scheme string
Section string
Host string
Port int
Username string
Password string
Privatekey string
Path string
Branch string
Atomic bool
Releasedir string
Include []string
Exclude []string
Logger bool
Maxclients int
Predeploy []string
Postdeploy []string
}
Maps the server sections of the local init file.
type ServerConfig ¶
type ServerConfig struct {
Sections []SectionConfig
}
Maps the local ini file to a struct.
Click to show internal directories.
Click to hide internal directories.