service

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServiceManager

type ServiceManager struct {
	// contains filtered or unexported fields
}

ServiceManager coordinates all host-level service plugins

func NewServiceManager

func NewServiceManager(ctx context.Context) (*ServiceManager, error)

func (*ServiceManager) ACME

func (m *ServiceManager) ACME() *acme.ACMEPlugin

ACME returns the ACME plugin

func (*ServiceManager) Cron

func (m *ServiceManager) Cron() *cron.CronPlugin

Cron returns the cron plugin

func (*ServiceManager) DNS

func (m *ServiceManager) DNS() *dns.DNSPlugin

DNS returns the DNS plugin

func (*ServiceManager) DeployWebService

func (m *ServiceManager) DeployWebService(ctx context.Context, config *WebServiceConfig) error

DeployWebService deploys a complete web service with nginx, systemd, firewall, and SSL

func (*ServiceManager) Environment

func (m *ServiceManager) Environment() *environment.EnvironmentPlugin

Environment returns the environment plugin

func (*ServiceManager) Firewall

func (m *ServiceManager) Firewall() *firewall.FirewallPlugin

Firewall returns the firewall plugin

func (*ServiceManager) Nginx

func (m *ServiceManager) Nginx() *nginx.NginxPlugin

Nginx returns the nginx plugin

func (*ServiceManager) Shutdown

func (m *ServiceManager) Shutdown(ctx context.Context) error

Shutdown gracefully shuts down all service plugins

func (*ServiceManager) Systemd

func (m *ServiceManager) Systemd() *systemd.SystemdPlugin

Systemd returns the systemd plugin

type ServicesHandler

func NewServicesHandler

func NewServicesHandler(serviceMgr *ServiceManager) *ServicesHandler

func (*ServicesHandler) AddRule

Firewall Handlers

func (*ServicesHandler) AllowPort

func (*ServicesHandler) CreateReverseProxy

func (*ServicesHandler) CreateService

Systemd Service Handlers

func (*ServicesHandler) CreateVirtualHost

Nginx Service Handlers

func (*ServicesHandler) DeployWebService

Complete Service Deployment Handler

func (*ServicesHandler) GetHostInfo

Host Environment Handlers

func (*ServicesHandler) GetServiceStatus

func (*ServicesHandler) InstallPackage

func (*ServicesHandler) ObtainCertificate

ACME Handlers

func (*ServicesHandler) RenewAll

func (*ServicesHandler) StartService

type WebServiceConfig

type WebServiceConfig struct {
	Name        string
	Description string
	Domain      string
	Port        int
	Command     string
	WorkingDir  string
	User        string
	SSL         bool
	Environment map[string]string
}

Jump to

Keyboard shortcuts

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