Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cmd = &cobra.Command{ Use: "cleanup", Short: "Clean up all not used resources (only volumes yet)", Long: `Clean up all not used resources Currently, all resources means: - Volumes `, Args: cobra.NoArgs, Run: func(c *cobra.Command, args []string) { token := digitalocean_utils.GetToken() v := digitalocean_utils.PrepareVolumesCleanUp(token) fmt.Println("") fmt.Println("Wait 10s, cancel clean up using ctrl-c") for i := 1; i <= 10; i++ { fmt.Print(".") time.Sleep(time.Second) } fmt.Println("") fmt.Println("Cleaning up...") digitalocean_utils.DoVolumesCleanUp(token, v) fmt.Println("Done.") }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.