webserver

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WebServerNginxCode  = "nginx"
	WebServerApacheCode = "apache"
)

Variables

This section is empty.

Functions

func GetSupportedWebServers

func GetSupportedWebServers() []string

Types

type HostManager

type HostManager interface {
	Enable(configFilePath string) error
	Disable(configFilePath string) error
}

type NginxWebServer

type NginxWebServer struct {
	Config *nginxConfig.Config
	// contains filtered or unexported fields
}

func GetNginxWebServer

func GetNginxWebServer(options map[string]string) (*NginxWebServer, error)

func (*NginxWebServer) GetCode

func (nws *NginxWebServer) GetCode() string

func (*NginxWebServer) GetProcessManager

func (nws *NginxWebServer) GetProcessManager() (ProcessManager, error)

func (*NginxWebServer) GetVhostByName

func (nws *NginxWebServer) GetVhostByName(serverName string) (*agentintegration.VirtualHost, error)

func (*NginxWebServer) GetVhostManager

func (nws *NginxWebServer) GetVhostManager() HostManager

func (*NginxWebServer) GetVhosts

func (nws *NginxWebServer) GetVhosts() ([]agentintegration.VirtualHost, error)

type ProcessManager

type ProcessManager interface {
	Reload() error
}

type WebServer

type WebServer interface {
	GetVhostByName(serverName string) (*agentintegration.VirtualHost, error)
	GetVhosts() ([]agentintegration.VirtualHost, error)
	GetCode() string
	GetVhostManager() HostManager
	GetProcessManager() (ProcessManager, error)
}

func GetWebServer

func GetWebServer(webServerCode string, options map[string]string) (WebServer, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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