nginx

package
v0.40.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PortNameHTTP  = "http"
	PortNameHTTPS = "https"

	PortNameProxyProtocolHTTP  = "proxy-http"
	PortNameProxyProtocolHTTPS = "proxy-https"
	PortNameMetrics            = "nginx-metrics"
	PortNameManagement         = PortNameMetrics

	DefaultManagePort             = 8800
	DefaultProxyProtocolHTTPPort  = 9080
	DefaultProxyProtocolHTTPSPort = 9443
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigurationBlocks

type ConfigurationBlocks struct {
	MainBlock      string
	RootBlock      string
	HttpBlock      string
	ServerBlock    string
	LuaServerBlock string
	LuaWorkerBlock string
}

type ConfigurationData

type ConfigurationData struct {
	Config   *v1alpha1.NginxConfig
	Instance *v1alpha1.RpaasInstance
	// Modules is a map of installed modules, using a map instead of a slice
	// allow us to use `hasKey` inside templates.
	Modules map[string]interface{}
}

type ConfigurationRenderer

type ConfigurationRenderer interface {
	Render(ConfigurationData) (string, error)
}

func NewConfigurationRenderer added in v0.6.3

func NewConfigurationRenderer(cb ConfigurationBlocks) (ConfigurationRenderer, error)

type NginxError

type NginxError struct {
	Msg string
}

func (NginxError) Error

func (e NginxError) Error() string

type NginxManager

type NginxManager struct {
	// contains filtered or unexported fields
}

func NewNginxManager

func NewNginxManager() NginxManager

func (NginxManager) PurgeCache

func (m NginxManager) PurgeCache(host, purgePath string, port int32, preservePath bool, extraHeaders http.Header) (bool, error)

Jump to

Keyboard shortcuts

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