servicesInfra

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: EPL-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const SupervisorCtlBin string = "/usr/bin/supervisorctl -c /infinite/supervisord.conf"

Variables

This section is empty.

Functions

This section is empty.

Types

type ServicesCmdRepo

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

func NewServicesCmdRepo

func NewServicesCmdRepo(
	persistentDbSvc *internalDbInfra.PersistentDatabaseService,
) *ServicesCmdRepo

func (*ServicesCmdRepo) CreateCustom

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

func (*ServicesCmdRepo) CreateInstallable

func (repo *ServicesCmdRepo) CreateInstallable(
	createDto dto.CreateInstallableService,
) (installedServiceName valueObject.ServiceName, err error)

func (*ServicesCmdRepo) Delete

func (repo *ServicesCmdRepo) Delete(name valueObject.ServiceName) 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) Update

func (repo *ServicesCmdRepo) Update(updateDto dto.UpdateService) error

type ServicesQueryRepo

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

func NewServicesQueryRepo

func NewServicesQueryRepo(
	persistentDbSvc *internalDbInfra.PersistentDatabaseService,
) *ServicesQueryRepo

func (*ServicesQueryRepo) Read

func (repo *ServicesQueryRepo) Read() ([]entity.InstalledService, error)

func (*ServicesQueryRepo) ReadByName

func (repo *ServicesQueryRepo) ReadByName(
	name valueObject.ServiceName,
) (serviceEntity entity.InstalledService, err error)

func (*ServicesQueryRepo) ReadInstallableByName

func (repo *ServicesQueryRepo) ReadInstallableByName(
	serviceName valueObject.ServiceName,
) (installableService entity.InstallableService, err error)

func (*ServicesQueryRepo) ReadInstallables

func (repo *ServicesQueryRepo) ReadInstallables() ([]entity.InstallableService, error)

func (*ServicesQueryRepo) ReadWithMetrics

func (repo *ServicesQueryRepo) ReadWithMetrics() ([]dto.InstalledServiceWithMetrics, error)

Jump to

Keyboard shortcuts

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