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)

Source Files