statushistory

package
v0.0.0-...-78dbea0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: AGPL-3.0 Imports: 7 Imported by: 1

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 status history pruner operation (override for tests).

Functions

func Register

func Register(registry facade.FacadeRegistry)

Register is called to expose a package of facades onto a given registry.

Types

type API

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

API is the concrete implementation of the Pruner endpoint.

func (*API) Prune

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

Prune endpoint removes status history 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