executions

package
v0.0.0-...-d761283 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PaginateExecutionsParams

type PaginateExecutionsParams struct {
	Page              int
	Limit             int
	DatabaseFilter    uuid.NullUUID
	DestinationFilter uuid.NullUUID
	BackupFilter      uuid.NullUUID
}

type Service

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

func New

func New(
	env *config.Env, dbgen *dbgen.Queries, ints *integration.Integration,
	webhooksService *webhooks.Service,
) *Service

func (*Service) CreateExecution

func (*Service) GetExecution

func (*Service) GetExecutionDownloadLinkOrPath

func (s *Service) GetExecutionDownloadLinkOrPath(
	ctx context.Context, executionID uuid.UUID,
) (bool, string, error)

GetExecutionDownloadLinkOrPath returns a download link for the file associated with the given execution. If the execution is stored locally, the link will be a file path.

Returns a boolean indicating if the file is locally stored and the download link/path.

func (*Service) GetExecutionsQty

func (s *Service) GetExecutionsQty(
	ctx context.Context,
) (dbgen.ExecutionsServiceGetExecutionsQtyRow, error)

func (*Service) ListBackupExecutions

func (s *Service) ListBackupExecutions(
	ctx context.Context, backupID uuid.UUID,
) ([]dbgen.Execution, error)

func (*Service) RunExecution

func (s *Service) RunExecution(ctx context.Context, backupID uuid.UUID) error

RunExecution runs a backup execution

func (*Service) SoftDeleteExecution

func (s *Service) SoftDeleteExecution(
	ctx context.Context, executionID uuid.UUID,
) error

func (*Service) SoftDeleteExpiredExecutions

func (s *Service) SoftDeleteExpiredExecutions()

func (*Service) UpdateExecution

Jump to

Keyboard shortcuts

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