# Functions
DefaultJobIsPrunable is a default IsPrunableFunc to be used specifically with Job resources.
DefaultPodIsPrunable is a default IsPrunableFunc to be used specifically with Pod resources.
DefaultRegistry is a default Registry configuration.
IsUnprunable checks if a given error is that of Unprunable.
NewPruneByCountStrategy returns a StrategyFunc that will return a list of resources to prune based on a maximum count of resources allowed.
NewPruneByDateStrategy returns a StrategyFunc that will return a list of resources to prune where the resource CreationTimestamp is after the given time.Time.
NewPruner returns a pruner that uses the given strategy to prune objects that have the given GVK.
NewRegistry creates a new Registry.
RegisterIsPrunableFunc registers a function to check whether it is safe to prune a resource of a certain type.
WithLabels can be used to set the Labels field when configuring a Pruner.
WithNamespace can be used to set the Namespace field when configuring a Pruner.
# Structs
Pruner is an object that runs a prune job.
Registry is used to register a mapping of GroupVersionKind to an IsPrunableFunc.
Unprunable indicates that it is not allowed to prune a specific object.
# Type aliases
IsPrunableFunc is a function that checks the data of an object to see whether or not it is safe to prune it.
PrunerOption configures the pruner.
StrategyFunc takes a list of resources and returns the subset to prune.