cleaner

package
v0.0.0-...-9ec3720 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2021 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CleanerAPI

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

CleanerAPI implements the API used by the cleaner worker.

func NewCleanerAPI

func NewCleanerAPI(
	st *state.State,
	res facade.Resources,
	authorizer facade.Authorizer,
) (*CleanerAPI, error)

NewCleanerAPI creates a new instance of the Cleaner API.

func (*CleanerAPI) Cleanup

func (api *CleanerAPI) Cleanup() error

Cleanup triggers a state cleanup

func (*CleanerAPI) WatchCleanups

func (api *CleanerAPI) WatchCleanups() (params.NotifyWatchResult, error)

WatchChanges watches for cleanups to be perfomed in state

type StateInterface

type StateInterface interface {
	Cleanup() error
	WatchCleanups() state.NotifyWatcher
}

Jump to

Keyboard shortcuts

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