stointegrityverifier

package
v0.0.0-...-ea0be71 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Responsible for integrity of your data by periodically scanning your volumes to detect bit rot and hardware failures.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

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

func NewController

func NewController(
	db *bbolt.DB,
	ivJobRepository blorm.Repository,
	blobRepository blorm.Repository,
	diskAccess *stodiskaccess.Controller,
	logger *log.Logger,
	start func(fn func(context.Context) error),
) *Controller

returns controller with threadsafe APIs whose work will be safely executed in a single thread

func (*Controller) ListRunningJobs

func (s *Controller) ListRunningJobs() []string

func (*Controller) Resume

func (s *Controller) Resume(jobId string)

func (*Controller) Stop

func (s *Controller) Stop(jobId string)

Jump to

Keyboard shortcuts

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