Documentation ¶
Index ¶
- type IngressNGINXConfig
- type Location
- type NGINXController
- func (nginx *NGINXController) AddOrUpdateCertAndKey(name string, cert string, key string) string
- func (nginx *NGINXController) AddOrUpdateIngress(name string, config IngressNGINXConfig)
- func (nginx *NGINXController) DeleteIngress(name string)
- func (nginx *NGINXController) Reload()
- func (nginx *NGINXController) Start()
- type Server
- type Upstream
- type UpstreamServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IngressNGINXConfig ¶
IngressNGINXConfig describes an NGINX configuration
type NGINXController ¶
type NGINXController struct {
// contains filtered or unexported fields
}
NGINXController Updates NGINX configuration, starts and reloads NGINX
func NewNGINXController ¶
func NewNGINXController(resolver string, nginxConfPath string, local bool) (*NGINXController, error)
NewNGINXController creates a NGINX controller
func (*NGINXController) AddOrUpdateCertAndKey ¶
func (nginx *NGINXController) AddOrUpdateCertAndKey(name string, cert string, key string) string
AddOrUpdateCertAndKey creates a .pem file wth the cert and the key with the specified name
func (*NGINXController) AddOrUpdateIngress ¶
func (nginx *NGINXController) AddOrUpdateIngress(name string, config IngressNGINXConfig)
AddOrUpdateIngress creates or updates a file with the specified configuration for the specified ingress
func (*NGINXController) DeleteIngress ¶
func (nginx *NGINXController) DeleteIngress(name string)
DeleteIngress deletes the configuration file, which corresponds for the specified ingress from NGINX conf directory
type Server ¶
type Server struct { Name string Locations []Location SSL bool SSLCertificate string SSLCertificateKey string }
Server describes an NGINX server
type Upstream ¶
type Upstream struct { Name string UpstreamServers []UpstreamServer }
Upstream describes an NGINX upstream
type UpstreamServer ¶
UpstreamServer describes a server in an NGINX upstream
Click to show internal directories.
Click to hide internal directories.