config

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

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.

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.

Jump to

Keyboard shortcuts

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