webserver

package
v0.0.0-...-ea924cd Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2023 License: MIT Imports: 3 Imported by: 0

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

func (h *Host) GetAddressesString(hostsOnly bool) string

GetAddressesString return address as a string: "172.10.52.2:80 172.10.52.3:8080"

func (*Host) GetConfigName

func (h *Host) GetConfigName() string

GetConfigName returns config name of a host

func (*Host) IsIpv4Enabled

func (h *Host) IsIpv4Enabled() bool

func (*Host) IsIpv6Enabled

func (h *Host) IsIpv6Enabled() bool

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
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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