Documentation ¶
Index ¶
- Constants
- func GetSupportedWebServers() []string
- type ApacheWebServer
- func (aws *ApacheWebServer) GetApacheConfigurator() a2conf.ApacheConfigurator
- func (aws *ApacheWebServer) GetCode() string
- func (aws *ApacheWebServer) GetVhostByName(serverName string) (*agentintegration.VirtualHost, error)
- func (aws *ApacheWebServer) GetVhosts() ([]agentintegration.VirtualHost, error)
- type WebServer
Constants ¶
View Source
const ( // WebServerNginxCode nginx web server code WebServerNginxCode = "nginx" // WebServerApacheCode apache web server code WebServerApacheCode = "apache" )
Variables ¶
This section is empty.
Functions ¶
func GetSupportedWebServers ¶
func GetSupportedWebServers() []string
GetSupportedWebServers returns the codes of supported web servers
Types ¶
type ApacheWebServer ¶
type ApacheWebServer struct {
// contains filtered or unexported fields
}
ApacheWebServer provides functionality to work with apache web server
func GetApacheWebServer ¶
func GetApacheWebServer(options map[string]string) (*ApacheWebServer, error)
GetApacheWebServer creates an instance of ApacheWebServer
func (*ApacheWebServer) GetApacheConfigurator ¶
func (aws *ApacheWebServer) GetApacheConfigurator() a2conf.ApacheConfigurator
GetApacheConfigurator returns webserver code
func (*ApacheWebServer) GetCode ¶
func (aws *ApacheWebServer) GetCode() string
GetCode returns webserver code
func (*ApacheWebServer) GetVhostByName ¶
func (aws *ApacheWebServer) GetVhostByName(serverName string) (*agentintegration.VirtualHost, error)
GetVhostByName returns virtual host by name
func (*ApacheWebServer) GetVhosts ¶
func (aws *ApacheWebServer) GetVhosts() ([]agentintegration.VirtualHost, error)
GetVhosts returns apache web server vitual hosts
type WebServer ¶
type WebServer interface { GetVhostByName(serverName string) (*agentintegration.VirtualHost, error) GetVhosts() ([]agentintegration.VirtualHost, error) GetCode() string }
WebServer is an interface for a webserver like nginx, apache
Click to show internal directories.
Click to hide internal directories.