forked from libopenstorage/stork
-
Notifications
You must be signed in to change notification settings - Fork 0
/
delete.go
27 lines (24 loc) · 943 Bytes
/
delete.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package storkctl
import (
"github.com/spf13/cobra"
"k8s.io/cli-runtime/pkg/genericclioptions"
)
func newDeleteCommand(cmdFactory Factory, ioStreams genericclioptions.IOStreams) *cobra.Command {
deleteCommands := &cobra.Command{
Use: "delete",
Short: "Delete stork resources",
}
deleteCommands.AddCommand(
newDeleteSnapshotCommand(cmdFactory, ioStreams),
newDeleteMigrationCommand(cmdFactory, ioStreams),
newDeleteMigrationScheduleCommand(cmdFactory, ioStreams),
newDeleteSnapshotScheduleCommand(cmdFactory, ioStreams),
newDeleteGroupVolumeSnapshotCommand(cmdFactory, ioStreams),
newDeleteVolumeSnapshotRestoreCommand(cmdFactory, ioStreams),
newDeleteApplicationBackupCommand(cmdFactory, ioStreams),
newDeleteApplicationBackupScheduleCommand(cmdFactory, ioStreams),
newDeleteApplicationRestoreCommand(cmdFactory, ioStreams),
newDeleteApplicationCloneCommand(cmdFactory, ioStreams),
)
return deleteCommands
}