datapruner

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ControllerTickerRunner

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

func NewStorageControllerTickerRunner

func NewStorageControllerTickerRunner(
	authDuration time.Duration) *ControllerTickerRunner

func (*ControllerTickerRunner) GetAuthBucketTicker

func (c *ControllerTickerRunner) GetAuthBucketTicker() <-chan time.Time

func (*ControllerTickerRunner) Start

func (c *ControllerTickerRunner) Start() error

type StorageController

type StorageController struct {
	Runner              StorageControllerRunner
	Arch                archive.Archive
	ExpiredAuthDataPath string
}

func NewStorageController

func NewStorageController(storageControllerRunner StorageControllerRunner, arch archive.Archive) (StorageController, error)

type StorageControllerRunner

type StorageControllerRunner interface {
	GetAuthBucketTicker() <-chan time.Time
	Start() error
}

StorageControllerRunner is the controller interface of data pruner jobs.

Jump to

Keyboard shortcuts

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