mirror of https://github.com/docker/cli.git
31 lines
1.0 KiB
Go
31 lines
1.0 KiB
Go
package prune
|
|
|
|
import (
|
|
"github.com/docker/cli/cli/command"
|
|
"github.com/docker/cli/cli/command/container"
|
|
"github.com/docker/cli/cli/command/image"
|
|
"github.com/docker/cli/cli/command/network"
|
|
"github.com/docker/cli/cli/command/volume"
|
|
"github.com/docker/cli/opts"
|
|
)
|
|
|
|
// RunContainerPrune executes a prune command for containers
|
|
func RunContainerPrune(dockerCli command.Cli, filter opts.FilterOpt) (uint64, string, error) {
|
|
return container.RunPrune(dockerCli, filter)
|
|
}
|
|
|
|
// RunVolumePrune executes a prune command for volumes
|
|
func RunVolumePrune(dockerCli command.Cli, filter opts.FilterOpt) (uint64, string, error) {
|
|
return volume.RunPrune(dockerCli, filter)
|
|
}
|
|
|
|
// RunImagePrune executes a prune command for images
|
|
func RunImagePrune(dockerCli command.Cli, all bool, filter opts.FilterOpt) (uint64, string, error) {
|
|
return image.RunPrune(dockerCli, all, filter)
|
|
}
|
|
|
|
// RunNetworkPrune executes a prune command for networks
|
|
func RunNetworkPrune(dockerCli command.Cli, filter opts.FilterOpt) (uint64, string, error) {
|
|
return network.RunPrune(dockerCli, filter)
|
|
}
|