servicesInfra

package
v0.0.0-...-841bae9 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: EPL-2.0 Imports: 20 Imported by: 0

Documentation

Index

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 CreateInstallableSimplified

func CreateInstallableSimplified(serviceName string) error

func Uninstall

func Uninstall(name valueObject.ServiceName) error

func Update

func Update(
	serviceEntity entity.Service,
	updateDto dto.UpdateService,
) error

Types

type ServicesCmdRepo

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

func NewServicesCmdRepo

func NewServicesCmdRepo() *ServicesCmdRepo

func (*ServicesCmdRepo) CreateCustom

func (repo *ServicesCmdRepo) CreateCustom(createDto dto.CreateCustomService) error

func (*ServicesCmdRepo) CreateInstallable

func (repo *ServicesCmdRepo) CreateInstallable(
	createDto dto.CreateInstallableService,
) error

func (*ServicesCmdRepo) Reload

func (repo *ServicesCmdRepo) Reload() 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) Get

func (repo ServicesQueryRepo) Get() ([]entity.Service, error)

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

Jump to

Keyboard shortcuts

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