juju: github.com/juju/juju/apiserver/facades/controller/statushistory Index | Files

package statushistory

import "github.com/juju/juju/apiserver/facades/controller/statushistory"


Package Files


type API Uses

type API struct {
    // contains filtered or unexported fields

API is the concrete implementation of the Pruner endpoint.

func NewAPI Uses

func NewAPI(st *state.State, r facade.Resources, auth facade.Authorizer) (*API, error)

NewAPI returns an API Instance.

func (*API) Prune Uses

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.

Package statushistory imports 5 packages (graph) and is imported by 4 packages. Updated 2020-07-26. Refresh now. Tools for package owners.