nginx

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2020 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PortNameHTTP       = "http"
	PortNameHTTPS      = "https"
	PortNameManagement = "management"
)

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
}

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) error

Jump to

Keyboard shortcuts

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