Documentation
¶
Index ¶
- func NewCommandRepository(db db.DB, queries *sqlc.Queries) command.Repository
- func NewRunningCmdRepository() command.RunningCommandRepository
- func NewService(deleteOldCmdCfg config.DeleteOldCommand, log *slog.Logger, ...) command.Service
- type Service
- func (s *Service) CancelActiveCloudCommands(ctx context.Context) error
- func (s *Service) CancelAllRunningCommands(ctx context.Context) error
- func (s *Service) CancelCurrentProcessingCommand(ctx context.Context) error
- func (s *Service) CreateCommand(ctx context.Context, params command.CreateCommandParams) (command.Command, error)
- func (s *Service) DeleteCommandByID(ctx context.Context, params command.DeleteCommandByIDParams) error
- func (s *Service) DeleteOldCommands(ctx context.Context) error
- func (s *Service) GetCommandByID(ctx context.Context, params command.GetCommandByIDParams) (command.Command, error)
- func (s *Service) GetCurrentProcessingCommand(ctx context.Context) (command.Command, error)
- func (s *Service) ListCommands(ctx context.Context, params command.ListCommandsParams) (paging.List[command.Command], error)
- func (s *Service) RunNextExecutableCommand(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCommandRepository ¶
func NewRunningCmdRepository ¶ added in v0.15.0
func NewRunningCmdRepository() command.RunningCommandRepository
func NewService ¶
func NewService( deleteOldCmdCfg config.DeleteOldCommand, log *slog.Logger, validator validator.Validator, publisher eventbus.Publisher, runningCmdRepository command.RunningCommandRepository, commandRepository command.Repository, processingLock command.ProcessingLock, executorService command.ExecutorService, ) command.Service
Types ¶
type Service ¶ added in v0.13.0
type Service struct {
// contains filtered or unexported fields
}
func (*Service) CancelActiveCloudCommands ¶ added in v0.13.0
func (*Service) CancelAllRunningCommands ¶ added in v0.14.0
func (*Service) CancelCurrentProcessingCommand ¶ added in v0.13.0
func (*Service) CreateCommand ¶ added in v0.13.0
func (*Service) DeleteCommandByID ¶ added in v0.13.0
func (*Service) DeleteOldCommands ¶ added in v0.13.0
func (*Service) GetCommandByID ¶ added in v0.13.0
func (*Service) GetCurrentProcessingCommand ¶ added in v0.13.0
func (*Service) ListCommands ¶ added in v0.13.0
Click to show internal directories.
Click to hide internal directories.