pruner

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ResourceTypeDroplet = "droplet"
	ResourceTypeVolume  = "volume"
	ResourceTypeAll     = "all"
)

Variables

This section is empty.

Functions

func Prune

func Prune(doToken string, opts Options) error

Prune Prune the old DigitalOcean snapshots based on the specified options

Types

type Options

type Options struct {
	DaysToDelete int
	ResourceType string
}

Options A struct that encapsulates the configuration options for the prune job.

Jump to

Keyboard shortcuts

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