Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Binary = "/usr/local/openresty/nginx/sbin/nginx"
Binary location of NGINX binary.
View Source
var StatusSocket = "/tmp/nginx-config-socket.sock"
StatusSocket defines the location of the unix socket used by NGINX for the status server
View Source
var Template = "/etc/nginx/template/nginx.tmpl"
Template NGINX template useed to render the configuration file
Functions ¶
Types ¶
type Configuration ¶
type Configuration struct { // Servers server sections Servers []Server `json:"servers"` }
Configuration defines an NGINX configuration
func (*Configuration) Equal ¶
func (c *Configuration) Equal(to *Configuration) bool
Equal tests for equality between two Server types
type Endpoint ¶
type Endpoint struct { Address string `json:"address,omitempty"` Port string `json:"port,omitempty"` }
Endpoint defines the IP address and port of a pod from the deployment
type NGINX ¶
type NGINX interface { // Start creates a new NGINX process Start(stopCh <-chan struct{}) error // Update changes the running configuration in NGINX Update(*Configuration) error }
NGINX defines
func NewInstance ¶
NewInstance returns an NGINX instance
Click to show internal directories.
Click to hide internal directories.