renderer

package
v0.0.0-...-d2d5cb9 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MainConfigTemplateData

type MainConfigTemplateData struct {
	ServerNamesHashBucketSize string
	ServerNamesHashMaxSize    string
	LogFormat                 string
	HealthStatus              bool
	HTTPSnippets              []string

	// http://nginx.org/en/docs/http/ngx_http_ssl_module.html
	SSLProtocols           string
	SSLPreferServerCiphers bool
	SSLCiphers             string
	SSLDHParamsFile        *pb.File

	WorkerShutdownTimeout string
}

MainConfigTemplateData contains all values to render the main NGINX configuration file from its template "nginx.conf.tmpl"

func MainConfigTemplateDataFromIngressConfig

func MainConfigTemplateDataFromIngressConfig(config *config.GlobalConfig) *MainConfigTemplateData

MainConfigTemplateDataFromIngressConfig creates a MainConfigTemplateData from config.GlobalConfig

type Renderer

type Renderer interface {
	RenderMainConfig(mainConfig *MainConfigTemplateData) (*pb.MainConfig, error)
	RenderServerConfig(mergedConfig *collision.MergedIngressConfig) (*pb.ServerConfig, error)
}

Renderer generates storage objects

func NewRenderer

func NewRenderer() Renderer

NewRenderer creates a new Renderer

Jump to

Keyboard shortcuts

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