config

package
v1.5.26 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2024 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const Name = `nginx`

Variables

This section is empty.

Functions

func DefaultConfigDir added in v1.4.7

func DefaultConfigDir() string

Types

type Config

type Config struct {
	Version        string
	CertPathFormat engine.CertPathFormatWithUpdater
	*engine.CommonConfig
}

func New added in v1.4.7

func New() *Config

func (*Config) CertUpdater added in v1.4.11

func (c *Config) CertUpdater() string

func (*Config) CopyFrom added in v1.4.7

func (c *Config) CopyFrom(m *dbschema.NgingVhostServer)

func (*Config) FixEngineConfigFile added in v1.4.7

func (c *Config) FixEngineConfigFile(deleteMode ...bool) (bool, error)

func (*Config) GetCertPathFormat added in v1.4.7

func (c *Config) GetCertPathFormat(ctx echo.Context) engine.CertPathFormat

func (*Config) GetVhostConfigDirAbs added in v1.4.7

func (c *Config) GetVhostConfigDirAbs() (string, error)

func (*Config) GetVhostConfigLocalDirAbs added in v1.4.7

func (c *Config) GetVhostConfigLocalDirAbs() (string, error)

func (*Config) Init

func (c *Config) Init() error

func (*Config) OnVhostConfigSaving added in v1.4.7

func (c *Config) OnVhostConfigSaving(id uint, formData *form.Values) error

func (*Config) Quit

func (c *Config) Quit(ctx context.Context) error

func (*Config) Reload

func (c *Config) Reload(ctx context.Context) error

func (*Config) RemoveCertFile added in v1.4.7

func (c *Config) RemoveCertFile(id uint) error

func (*Config) RemoveVhostConfig added in v1.4.7

func (c *Config) RemoveVhostConfig(id uint) error

func (*Config) RenewCert added in v1.4.10

func (c *Config) RenewCert(ctx echo.Context, id uint, domains []string, email string, isObtain bool) error

func (*Config) Reopen

func (c *Config) Reopen(ctx context.Context) error

func (*Config) Start

func (c *Config) Start(ctx context.Context) error

func (*Config) Stop

func (c *Config) Stop(ctx context.Context) error

func (*Config) TestConfig added in v1.4.7

func (c *Config) TestConfig(ctx context.Context) error

Jump to

Keyboard shortcuts

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