actionpruner

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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Model = func(ctx facade.Context) (state.ModelAccessor, error) {
	return ctx.State().Model()
}

Model returns the model for a context (override for tests).

Prune performs the action pruner operation (override for tests).

Functions

This section is empty.

Types

type API

type API struct {
	*common.ModelWatcher
	// contains filtered or unexported fields
}

API provides access to the action pruner API.

func NewAPI

func NewAPI(ctx facade.Context) (*API, error)

NewAPI returns an action pruner API.

func (*API) Prune

func (api *API) Prune(p params.ActionPruneArgs) error

Prune endpoint removes action entries until only the ones newer than now - p.MaxHistoryTime remain and the history is smaller than p.MaxHistoryMB.

Jump to

Keyboard shortcuts

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