disk

package
v0.15.4 Latest Latest
Warning

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

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

Documentation

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
}

Controller

func NewController

func NewController(mgr crmanager.Manager) *Controller

NewController

func (*Controller) Done

func (ctr *Controller) Done(disk manager.Event)

Done completes the task and remove from the queue

func (*Controller) Forget

func (ctr *Controller) Forget(disk manager.Event)

Forget completes the task and remove from the queue

func (*Controller) HandleEvent

func (ctr *Controller) HandleEvent()

HandleEvent

func (*Controller) Pop

func (ctr *Controller) Pop() manager.Event

Pop pops an item from the work queue, it will block until it returns an item

func (*Controller) Push

func (ctr *Controller) Push(disk manager.Event)

Push pushes item to the work queue

func (*Controller) PushRateLimited

func (ctr *Controller) PushRateLimited(disk manager.Event)

PushRateLimited pushes an item to the work queue after the rate limiter says it's ok

func (*Controller) StartMonitor

func (ctr *Controller) StartMonitor()

StartMonitor

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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