Documentation
¶
Index ¶
Constants ¶
View Source
const (
// HeaderMatchSeparator is the separator for constructing header-based match for NJS.
HeaderMatchSeparator = ":"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Generator ¶
type Generator interface { // Generate generates NGINX configuration from internal representation. Generate(configuration dataplane.Configuration) []byte }
Generator generates NGINX configuration. This interface is used for testing purposes only.
type GeneratorImpl ¶
type GeneratorImpl struct{}
GeneratorImpl is an implementation of Generator.
func NewGeneratorImpl ¶
func NewGeneratorImpl() GeneratorImpl
NewGeneratorImpl creates a new GeneratorImpl.
func (GeneratorImpl) Generate ¶
func (g GeneratorImpl) Generate(conf dataplane.Configuration) []byte
Generate generates NGINX configuration from internal representation. It is the responsibility of the caller to validate the configuration before calling this function. In case of invalid configuration, NGINX will fail to reload or could be configured with malicious configuration. To validate, use the validators from the validation package.
Source Files
¶
Directories
¶
Path | Synopsis |
---|---|
Code generated by counterfeiter.
|
Code generated by counterfeiter. |
Package validation includes validators to validate values that will propagate to the NGINX configuration.
|
Package validation includes validators to validate values that will propagate to the NGINX configuration. |
Click to show internal directories.
Click to hide internal directories.