hostmanager

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HostManager

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

HostManager enables/disables host by creating/removing symlink for a configuration file

func GetHostManager

func GetHostManager(enabledHostConfigDir string) (HostManager, error)

func (HostManager) Disable

func (m HostManager) Disable(hostConfigPath string) error

path to "available" host config. For example /etc/.../sites-available/

func (HostManager) Enable

func (m HostManager) Enable(hostConfigPath string) error

path to "available" host config. For example /etc/.../sites-available/

Jump to

Keyboard shortcuts

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