Documentation ¶
Index ¶
Constants ¶
View Source
const ( Apache = "apache" Nginx = "nginx" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Host ¶
type Host struct { FilePath, ServerName, DocRoot string Addresses map[string]host.Address Aliases []string Ssl, Enabled bool }
func (*Host) GetAddressesString ¶
GetAddressesString return address as a string: "172.10.52.2:80 172.10.52.3:8080"
func (*Host) GetConfigName ¶
GetConfigName returns config name of a host
func (*Host) IsIpv4Enabled ¶
func (*Host) IsIpv6Enabled ¶
type WebServerManagerInterface ¶
type WebServerManagerInterface interface { GetHosts() ([]Host, error) GetVersion() (string, error) GetHostsByServerName(serverName string) ([]Host, error) EnableHost(host *Host) error DeployCertificate(serverName, certPath, certKeyPath, chainPath, fullChainPath string) error CheckConfiguration() error Restart() error SaveChanges() error CommitChanges() error RollbackChanges() error }
Click to show internal directories.
Click to hide internal directories.