task

package
v0.25.1 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: AGPL-3.0 Imports: 17 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)

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 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)

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)

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)

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)

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)

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