Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewNGINXController ¶
func NewNGINXController() (factory.BackendController, error)
NewNGINXController creates a NGINX controller
Types ¶
type NGINXConfig ¶
NGINXConfig describes the upstreams and servers needed for the conf file
type NGINXController ¶
type NGINXController struct {
// contains filtered or unexported fields
}
NGINXController Updates NGINX configuration, starts and reloads NGINX
func (*NGINXController) AddConfig ¶
func (nginx *NGINXController) AddConfig(name string, config factory.BackendConfig)
AddConfig creates or updates a file with the specified configuration for the specified config
func (*NGINXController) DeleteConfig ¶
func (nginx *NGINXController) DeleteConfig(name string)
DeleteConfig deletes the configuration file, which corresponds for the specified configmap from NGINX conf directory
func (*NGINXController) ExitChannel ¶
func (nginx *NGINXController) ExitChannel() chan struct{}
ExitChannel returns the channel used to communicate nginx process has exited
func (*NGINXController) Name ¶
func (nginx *NGINXController) Name() string
Name returns the name of the backend controller
type Server ¶
type Server struct {
Name string
BindIP string
BindPort string
Location Location
SSL bool
SSLPort string
SSLCertificate string
SSLCertificateKey string
}
Server describes an NGINX server
type Upstream ¶
type Upstream struct {
Name string
UpstreamServer UpstreamServer
}
Upstream describes an NGINX upstream
type UpstreamServer ¶
UpstreamServer describes a server in an NGINX upstream