Help us shape the future of Go! Take the 2026 Go Developer Survey

proxy

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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"`
}

Jump to

Keyboard shortcuts

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