nginx

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteConfig

func WriteConfig(routerConfig *models.RouterConfig, fs models.FileSystem, filePath string) error

WriteConfig writes a new nginx file config

Types

type Mock added in v0.1.5

type Mock struct {
	Err error
}

func (*Mock) AssertConfig added in v0.1.5

func (m *Mock) AssertConfig(filePath string, logger logrus.FieldLogger) error

AssertConfig tests config file for correct syntax

func (*Mock) Reload added in v0.1.5

func (m *Mock) Reload(logger logrus.FieldLogger) error

Reload reloads nginx

type Nginx added in v0.1.5

type Nginx struct{}

func (*Nginx) AssertConfig added in v0.1.5

func (*Nginx) AssertConfig(filePath string, logger logrus.FieldLogger) error

AssertConfig tests config file for correct syntax

func (*Nginx) Reload added in v0.1.5

func (*Nginx) Reload(logger logrus.FieldLogger) error

Reload reloads nginx

type NginxInterface added in v0.1.5

type NginxInterface interface {
	Reload(logger logrus.FieldLogger) error
	AssertConfig(filePath string, logger logrus.FieldLogger) error
}

Jump to

Keyboard shortcuts

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