task

package
v0.27.2 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: AGPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlobCleaner added in v0.25.0

type BlobCleaner interface {
	EntryExists(ctx context.Context, checksum string) (bool, error)
}

type BlobStoreMigrator

type BlobStoreMigrator interface {
	Count(ctx context.Context) (int, error)
	FindBlobs(ctx context.Context, n uint, lastChecksum string) ([]string, error)
	MigrateBlob(ctx context.Context, checksum string, deleteOld bool) error
}

type CleanGeneratedJob added in v0.25.0

type CleanGeneratedJob struct {
	Options CleanGeneratedOptions

	Paths                    *paths.Paths
	BlobsStorageType         config.BlobsStorageType
	VideoFileNamingAlgorithm models.HashAlgorithm

	BlobCleaner BlobCleaner
	Repository  models.Repository
	// contains filtered or unexported fields
}

func (*CleanGeneratedJob) Execute added in v0.25.0

func (j *CleanGeneratedJob) Execute(ctx context.Context, progress *job.Progress) error

type CleanGeneratedOptions added in v0.25.0

type CleanGeneratedOptions struct {
	BlobFiles bool `json:"blobs"`

	Sprites     bool `json:"sprites"`
	Screenshots bool `json:"screenshots"`
	Transcodes  bool `json:"transcodes"`

	Markers bool `json:"markers"`

	ImageThumbnails bool `json:"imageThumbnails"`

	DryRun bool `json:"dryRun"`
}

type DownloadFFmpegJob added in v0.26.0

type DownloadFFmpegJob struct {
	ConfigDirectory string
	OnComplete      func(ctx context.Context)
	// contains filtered or unexported fields
}

func (*DownloadFFmpegJob) Execute added in v0.26.0

func (s *DownloadFFmpegJob) Execute(ctx context.Context, progress *job.Progress) error

type InstallPackagesJob added in v0.24.0

type InstallPackagesJob struct {
	PackagesJob
	Packages []*models.PackageSpecInput
}

func (*InstallPackagesJob) Execute added in v0.24.0

func (j *InstallPackagesJob) Execute(ctx context.Context, progress *job.Progress) error

type MigrateBlobsJob

type MigrateBlobsJob struct {
	TxnManager txn.Manager
	BlobStore  BlobStoreMigrator
	Vacuumer   Vacuumer
	DeleteOld  bool
}

func (*MigrateBlobsJob) Execute

func (j *MigrateBlobsJob) Execute(ctx context.Context, progress *job.Progress) error

type MigrateJob added in v0.26.0

type MigrateJob struct {
	BackupPath string
	Config     migrateJobConfig
	Database   *sqlite.Database
}

func (*MigrateJob) Execute added in v0.26.0

func (s *MigrateJob) Execute(ctx context.Context, progress *job.Progress) error

type MigrateSceneScreenshotsJob

type MigrateSceneScreenshotsJob struct {
	ScreenshotsPath string
	Input           scene.MigrateSceneScreenshotsInput
	SceneRepo       scene.HashFinderCoverUpdater
	TxnManager      txn.Manager
}

func (*MigrateSceneScreenshotsJob) Execute

func (j *MigrateSceneScreenshotsJob) Execute(ctx context.Context, progress *job.Progress) error

type PackagesJob added in v0.24.0

type PackagesJob struct {
	PackageManager *pkg.Manager
	OnComplete     func()
}

type UninstallPackagesJob added in v0.24.0

type UninstallPackagesJob struct {
	PackagesJob
	Packages []*models.PackageSpecInput
}

func (*UninstallPackagesJob) Execute added in v0.24.0

func (j *UninstallPackagesJob) Execute(ctx context.Context, progress *job.Progress) error

type UpdatePackagesJob added in v0.24.0

type UpdatePackagesJob struct {
	PackagesJob
	Packages []*models.PackageSpecInput
}

func (*UpdatePackagesJob) Execute added in v0.24.0

func (j *UpdatePackagesJob) Execute(ctx context.Context, progress *job.Progress) error

type Vacuumer

type Vacuumer interface {
	Vacuum(ctx context.Context) error
}

Jump to

Keyboard shortcuts

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