Documentation
¶
Index ¶
- type Orchestrator
- func (o *Orchestrator) GetDeploymentProxyStatus(deployment *models.Deployment) *ProxyStatus
- func (o *Orchestrator) GetExpiringCertificates(days int) ([]models.Certificate, error)
- func (o *Orchestrator) ListCertificates() ([]models.Certificate, error)
- func (o *Orchestrator) ListVirtualHosts() ([]nginx.VirtualHostInfo, error)
- func (o *Orchestrator) NginxManager() *nginx.Manager
- func (o *Orchestrator) RenewCertificates() (*ssl.RenewalResult, error)
- func (o *Orchestrator) RequestCertificate(domain string) (*ssl.CertificateResult, error)
- func (o *Orchestrator) SSLManager() *ssl.Manager
- func (o *Orchestrator) SetupDeployment(deployment *models.Deployment) (*SetupResult, error)
- func (o *Orchestrator) TeardownDeployment(deploymentName string) error
- func (o *Orchestrator) UpdateDeployment(deployment *models.Deployment) (*SetupResult, error)
- type ProxyStatus
- type SetupResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Orchestrator ¶
type Orchestrator struct {
// contains filtered or unexported fields
}
func NewOrchestrator ¶
func NewOrchestrator(cfg *config.Config) *Orchestrator
func (*Orchestrator) GetDeploymentProxyStatus ¶
func (o *Orchestrator) GetDeploymentProxyStatus(deployment *models.Deployment) *ProxyStatus
func (*Orchestrator) GetExpiringCertificates ¶
func (o *Orchestrator) GetExpiringCertificates(days int) ([]models.Certificate, error)
func (*Orchestrator) ListCertificates ¶
func (o *Orchestrator) ListCertificates() ([]models.Certificate, error)
func (*Orchestrator) ListVirtualHosts ¶
func (o *Orchestrator) ListVirtualHosts() ([]nginx.VirtualHostInfo, error)
func (*Orchestrator) NginxManager ¶
func (o *Orchestrator) NginxManager() *nginx.Manager
func (*Orchestrator) RenewCertificates ¶
func (o *Orchestrator) RenewCertificates() (*ssl.RenewalResult, error)
func (*Orchestrator) RequestCertificate ¶
func (o *Orchestrator) RequestCertificate(domain string) (*ssl.CertificateResult, error)
func (*Orchestrator) SSLManager ¶
func (o *Orchestrator) SSLManager() *ssl.Manager
func (*Orchestrator) SetupDeployment ¶
func (o *Orchestrator) SetupDeployment(deployment *models.Deployment) (*SetupResult, error)
func (*Orchestrator) TeardownDeployment ¶
func (o *Orchestrator) TeardownDeployment(deploymentName string) error
func (*Orchestrator) UpdateDeployment ¶
func (o *Orchestrator) UpdateDeployment(deployment *models.Deployment) (*SetupResult, error)
type ProxyStatus ¶
type ProxyStatus struct {
DeploymentName string `json:"deployment_name"`
Exposed bool `json:"exposed"`
Domain string `json:"domain,omitempty"`
VirtualHostExists bool `json:"virtual_host_exists"`
SSLEnabled bool `json:"ssl_enabled"`
CertificateExists bool `json:"certificate_exists"`
Certificate *models.Certificate `json:"certificate,omitempty"`
}
type SetupResult ¶
type SetupResult struct {
DeploymentName string `json:"deployment_name"`
Domain string `json:"domain,omitempty"`
Success bool `json:"success"`
Skipped bool `json:"skipped"`
Message string `json:"message,omitempty"`
VirtualHostCreated bool `json:"virtual_host_created"`
NginxReloaded bool `json:"nginx_reloaded"`
CertificateRequested bool `json:"certificate_requested"`
CertificateExists bool `json:"certificate_exists"`
SSLMessage string `json:"ssl_message,omitempty"`
SSLError string `json:"ssl_error,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.