commandimpl

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2025 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommandRepository

func NewCommandRepository(db db.DB, queries *sqlc.Queries) command.Repository

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 (s *Service) CancelActiveCloudCommands(ctx context.Context) error

func (*Service) CancelAllRunningCommands added in v0.14.0

func (s *Service) CancelAllRunningCommands(ctx context.Context) error

func (*Service) CancelCurrentProcessingCommand added in v0.13.0

func (s *Service) CancelCurrentProcessingCommand(ctx context.Context) error

func (*Service) CreateCommand added in v0.13.0

func (s *Service) CreateCommand(ctx context.Context, params command.CreateCommandParams) (command.Command, error)

func (*Service) DeleteCommandByID added in v0.13.0

func (s *Service) DeleteCommandByID(ctx context.Context, params command.DeleteCommandByIDParams) error

func (*Service) DeleteOldCommands added in v0.13.0

func (s *Service) DeleteOldCommands(ctx context.Context) error

func (*Service) GetCommandByID added in v0.13.0

func (s *Service) GetCommandByID(ctx context.Context, params command.GetCommandByIDParams) (command.Command, error)

func (*Service) GetCurrentProcessingCommand added in v0.13.0

func (s *Service) GetCurrentProcessingCommand(ctx context.Context) (command.Command, error)

func (*Service) ListCommands added in v0.13.0

func (s *Service) ListCommands(ctx context.Context, params command.ListCommandsParams) (paging.List[command.Command], error)

func (*Service) RunNextExecutableCommand added in v0.16.0

func (s *Service) RunNextExecutableCommand(ctx context.Context) error

Jump to

Keyboard shortcuts

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