// printUnmountedStorage prints all the unmounted storage in the application
printUnmountedStorage prints all the unmounted storage in the application
// printUnmountedStorage prints all the unmounted storage in the application
func printUnmountedStorage(client *occlient.Client, applicationName string) {
	tabWriterUnmounted := tabwriter.NewWriter(os.Stdout, 5, 2, 3, ' ', tabwriter.TabIndent)
	fmt.Fprintln(tabWriterUnmounted, "NAME", "\t", "SIZE")
	storageListUnmounted, err := storage.ListUnmounted(client, applicationName)
	odoutil.CheckError(err, "could not get unmounted storage list")
	if len(storageListUnmounted) > 0 {
		for _, uStorage := range storageListUnmounted {
			fmt.Fprintln(tabWriterUnmounted, uStorage.Name, "\t", uStorage.Size)
		}
		fmt.Printf("Storage that are not mounted to any component:\n")
		tabWriterUnmounted.Flush()
	}
	fmt.Println("")
}
func printUnmountedStorage ( client * occlient . Client , applicationName string ) { tabWriterUnmounted := tabwriter . NewWriter ( os . Stdout , 5 , 2 , 3 , ' ' , tabwriter . TabIndent ) fmt . Fprintln ( tabWriterUnmounted , " " , " \t " , " " ) storageListUnmounted , err := storage . ListUnmounted ( client , applicationName ) odoutil . CheckError ( err , " " ) if len ( storageListUnmounted ) > 0 { for _ , uStorage := range storageListUnmounted { fmt . Fprintln ( tabWriterUnmounted , uStorage . Name , " \t " , uStorage . Size ) } fmt . Printf ( " \n " ) tabWriterUnmounted . Flush ( ) } fmt . Println ( " " ) }
printUnmountedStorage prints all the unmounted storage in the application
printUnmountedStorage prints all the unmounted storage in the application
// defining the column structure of the unmounted storage table // create header of unmounted storage in all the components of the given application and project // iterating over all unmounted storage and put in the unmount storage table // print unmounted storage of all the application