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
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
type NginxInterface ¶ added in v0.1.5
type NginxInterface interface { Reload(logger logrus.FieldLogger) error AssertConfig(filePath string, logger logrus.FieldLogger) error }
Click to show internal directories.
Click to hide internal directories.