Documentation ¶
Index ¶
- Variables
- func CreateCustom(createDto dto.CreateCustomService) error
- func CreateInstallable(createDto dto.CreateInstallableService) error
- func CreateInstallableSimplified(serviceName string) error
- func Uninstall(name valueObject.ServiceName) error
- func Update(serviceEntity entity.Service, updateDto dto.UpdateService) error
- type ServicesCmdRepo
- func (repo ServicesCmdRepo) CreateCustom(createDto dto.CreateCustomService) error
- func (repo ServicesCmdRepo) CreateInstallable(createDto dto.CreateInstallableService) error
- func (repo ServicesCmdRepo) Restart(name valueObject.ServiceName) error
- func (repo ServicesCmdRepo) Start(name valueObject.ServiceName) error
- func (repo ServicesCmdRepo) Stop(name valueObject.ServiceName) error
- func (repo ServicesCmdRepo) Uninstall(name valueObject.ServiceName) error
- func (repo ServicesCmdRepo) Update(updateDto dto.UpdateService) error
- type ServicesQueryRepo
- func (repo ServicesQueryRepo) Get() ([]entity.Service, error)
- func (repo ServicesQueryRepo) GetByName(name valueObject.ServiceName) (entity.Service, error)
- func (repo ServicesQueryRepo) GetInstallables() ([]entity.InstallableService, error)
- func (repo ServicesQueryRepo) GetMultiServiceName(serviceName valueObject.ServiceName, startupFile *valueObject.UnixFilePath) (valueObject.ServiceName, error)
- func (repo ServicesQueryRepo) GetWithMetrics() ([]dto.ServiceWithMetrics, error)
- type SupervisordFacade
- func (facade SupervisordFacade) CreateConf(svcName valueObject.ServiceName, svcNature valueObject.ServiceNature, ...) error
- func (facade SupervisordFacade) Reload() error
- func (facade SupervisordFacade) RemoveConf(svcName valueObject.ServiceName) error
- func (facade SupervisordFacade) Restart(name valueObject.ServiceName) error
- func (facade SupervisordFacade) Start(name valueObject.ServiceName) error
- func (facade SupervisordFacade) Stop(name valueObject.ServiceName) error
Constants ¶
This section is empty.
Variables ¶
View Source
var MariaDbPackages = []string{
"mariadb-server",
}
View Source
var OlsPackages = []string{
"openlitespeed",
}
View Source
var PhpPackages = []string{
"lsphp74",
"lsphp74-common",
"lsphp74-curl",
"lsphp74-intl",
"lsphp74-mysql",
"lsphp74-opcache",
"lsphp80",
"lsphp80-common",
"lsphp80-curl",
"lsphp80-intl",
"lsphp80-mysql",
"lsphp80-opcache",
"lsphp81",
"lsphp81-common",
"lsphp81-curl",
"lsphp81-intl",
"lsphp81-mysql",
"lsphp81-opcache",
"lsphp82",
"lsphp82-common",
"lsphp82-curl",
"lsphp82-intl",
"lsphp82-mysql",
"lsphp82-opcache",
}
View Source
var RedisPackages = []string{
"redis-server",
}
Functions ¶
func CreateCustom ¶
func CreateCustom( createDto dto.CreateCustomService, ) error
func CreateInstallable ¶
func CreateInstallable( createDto dto.CreateInstallableService, ) error
func Uninstall ¶
func Uninstall(name valueObject.ServiceName) error
Types ¶
type ServicesCmdRepo ¶
type ServicesCmdRepo struct { }
func (ServicesCmdRepo) CreateCustom ¶
func (repo ServicesCmdRepo) CreateCustom( createDto dto.CreateCustomService, ) error
func (ServicesCmdRepo) CreateInstallable ¶
func (repo ServicesCmdRepo) CreateInstallable( createDto dto.CreateInstallableService, ) error
func (ServicesCmdRepo) Restart ¶
func (repo ServicesCmdRepo) Restart(name valueObject.ServiceName) error
func (ServicesCmdRepo) Start ¶
func (repo ServicesCmdRepo) Start(name valueObject.ServiceName) error
func (ServicesCmdRepo) Stop ¶
func (repo ServicesCmdRepo) Stop(name valueObject.ServiceName) error
func (ServicesCmdRepo) Uninstall ¶
func (repo ServicesCmdRepo) Uninstall( name valueObject.ServiceName, ) error
func (ServicesCmdRepo) Update ¶
func (repo ServicesCmdRepo) Update( updateDto dto.UpdateService, ) error
type ServicesQueryRepo ¶
type ServicesQueryRepo struct { }
func (ServicesQueryRepo) GetByName ¶
func (repo ServicesQueryRepo) GetByName( name valueObject.ServiceName, ) (entity.Service, error)
func (ServicesQueryRepo) GetInstallables ¶
func (repo ServicesQueryRepo) GetInstallables() ([]entity.InstallableService, error)
func (ServicesQueryRepo) GetMultiServiceName ¶
func (repo ServicesQueryRepo) GetMultiServiceName( serviceName valueObject.ServiceName, startupFile *valueObject.UnixFilePath, ) (valueObject.ServiceName, error)
func (ServicesQueryRepo) GetWithMetrics ¶
func (repo ServicesQueryRepo) GetWithMetrics() ([]dto.ServiceWithMetrics, error)
type SupervisordFacade ¶
type SupervisordFacade struct { }
func (SupervisordFacade) CreateConf ¶
func (facade SupervisordFacade) CreateConf( svcName valueObject.ServiceName, svcNature valueObject.ServiceNature, svcType valueObject.ServiceType, svcVersion valueObject.ServiceVersion, svcCmd valueObject.UnixCommand, startupFile *valueObject.UnixFilePath, svcPortBindings []valueObject.PortBinding, svcUser *valueObject.Username, ) error
func (SupervisordFacade) Reload ¶
func (facade SupervisordFacade) Reload() error
func (SupervisordFacade) RemoveConf ¶
func (facade SupervisordFacade) RemoveConf(svcName valueObject.ServiceName) error
func (SupervisordFacade) Restart ¶
func (facade SupervisordFacade) Restart(name valueObject.ServiceName) error
func (SupervisordFacade) Start ¶
func (facade SupervisordFacade) Start(name valueObject.ServiceName) error
func (SupervisordFacade) Stop ¶
func (facade SupervisordFacade) Stop(name valueObject.ServiceName) error
Click to show internal directories.
Click to hide internal directories.