// printMountedStorageInComponent prints all the mounted storage in a given component of the application
printMountedStorageInComponent prints all the mounted storage in a given component of the application
// printMountedStorageInComponent prints all the mounted storage in a given component of the application
func printMountedStorageInComponent(client *occlient.Client, componentName string, applicationName string) {
	tabWriterMounted := tabwriter.NewWriter(os.Stdout, 5, 2, 3, ' ', tabwriter.TabIndent)
	fmt.Fprintln(tabWriterMounted, "NAME", "\t", "SIZE", "\t", "PATH")
	storageListMounted, err := storage.ListMounted(client, componentName, applicationName)
	odoutil.CheckError(err, "could not get mounted storage list")
	if len(storageListMounted) > 0 {
		for _, mStorage := range storageListMounted {
			fmt.Fprintln(tabWriterMounted, mStorage.Name, "\t", mStorage.Size, "\t", mStorage.Path)
		}
		fmt.Printf("The component '%v' has the following storage attached:\n", componentName)
		tabWriterMounted.Flush()
	} else {
		fmt.Printf("The component '%v' has no storage attached\n", componentName)
	}
	fmt.Println("")
}
func printMountedStorageInComponent ( client * occlient . Client , componentName string , applicationName string ) { tabWriterMounted := tabwriter . NewWriter ( os . Stdout , 5 , 2 , 3 , ' ' , tabwriter . TabIndent ) fmt . Fprintln ( tabWriterMounted , " " , " \t " , " " , " \t " , " " ) storageListMounted , err := storage . ListMounted ( client , componentName , applicationName ) odoutil . CheckError ( err , " " ) if len ( storageListMounted ) > 0 { for _ , mStorage := range storageListMounted { fmt . Fprintln ( tabWriterMounted , mStorage . Name , " \t " , mStorage . Size , " \t " , mStorage . Path ) } fmt . Printf ( " \n " , componentName ) tabWriterMounted . Flush ( ) } else { fmt . Printf ( " \n " , componentName ) } fmt . Println ( " " ) }
printMountedStorageInComponent prints all the mounted storage in a given component of the application
printMountedStorageInComponent prints all the mounted storage in a given component of the application
// defining the column structure of the table // create headers of mounted storage table // iterating over all mounted storage and put in the mount storage table // print all mounted storage of the given component