Help us shape the future of Go! Take the 2026 Go Developer Survey

nginx

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

func NewManager

func NewManager(cfg *config.NginxConfig, deploymentsPath string) *Manager

func (*Manager) ConfigPath

func (m *Manager) ConfigPath() string

func (*Manager) CreateVirtualHost

func (m *Manager) CreateVirtualHost(deployment *models.Deployment) error

func (*Manager) DeleteVirtualHost

func (m *Manager) DeleteVirtualHost(deploymentName string) error

func (*Manager) GetVirtualHost

func (m *Manager) GetVirtualHost(deploymentName string) (string, error)

func (*Manager) ListVirtualHosts

func (m *Manager) ListVirtualHosts() ([]VirtualHostInfo, error)

func (*Manager) Reload

func (m *Manager) Reload() error

func (*Manager) TestConfig

func (m *Manager) TestConfig() error

func (*Manager) UpdateVirtualHost

func (m *Manager) UpdateVirtualHost(deployment *models.Deployment) error

func (*Manager) VirtualHostExists

func (m *Manager) VirtualHostExists(deploymentName string) bool

type VirtualHostInfo

type VirtualHostInfo struct {
	Name       string `json:"name"`
	ConfigFile string `json:"config_file"`
	ModifiedAt int64  `json:"modified_at"`
}

Jump to

Keyboard shortcuts

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