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

package statushistory

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

Index

Package Files

pruner.go

type API Uses

type API struct {
    *common.ModelWatcher
    // 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 4 packages (graph) and is imported by 3 packages. Updated 2017-10-08. Refresh now. Tools for package owners.