apache

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: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApacheManager

type ApacheManager struct {
	// contains filtered or unexported fields
}

func GetApacheManager

func GetApacheManager(params map[string]string, logger logger.LoggerInterface) (*ApacheManager, error)

func (*ApacheManager) CheckConfiguration

func (m *ApacheManager) CheckConfiguration() error

CheckConfiguration checks if apache configuration is correct

func (*ApacheManager) CommitChanges

func (m *ApacheManager) CommitChanges() error

Commit applies all current changes

func (*ApacheManager) DeployCertificate

func (m *ApacheManager) DeployCertificate(serverName, certPath, certKeyPath, chainPath, fullChainPath string) error

func (*ApacheManager) EnableHost

func (m *ApacheManager) EnableHost(host *webserver.Host) error

func (*ApacheManager) GetHosts

func (m *ApacheManager) GetHosts() ([]webserver.Host, error)

func (*ApacheManager) GetHostsByServerName

func (m *ApacheManager) GetHostsByServerName(serverName string) ([]webserver.Host, error)

func (*ApacheManager) GetVersion

func (m *ApacheManager) GetVersion() (string, error)

func (*ApacheManager) Restart

func (m *ApacheManager) Restart() error

RestartWebServer restarts apache web server

func (*ApacheManager) RollbackChanges

func (m *ApacheManager) RollbackChanges() error

func (*ApacheManager) Save

func (m *ApacheManager) Save() error

func (*ApacheManager) SaveChanges

func (m *ApacheManager) SaveChanges() error

type HostManager

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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