varasto: github.com/function61/varasto/pkg/stoserver/stointegrityverifier Index | Files

package stointegrityverifier

import "github.com/function61/varasto/pkg/stoserver/stointegrityverifier"

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

Index

Package Files

controller.go

type Controller Uses

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

func NewController Uses

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 Uses

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

func (*Controller) Resume Uses

func (s *Controller) Resume(jobId string)

func (*Controller) Stop Uses

func (s *Controller) Stop(jobId string)

Package stointegrityverifier imports 11 packages (graph) and is imported by 1 packages. Updated 2020-08-22. Refresh now. Tools for package owners.