// PrintComponentInfo prints Component Information like path, URL & storage
PrintComponentInfo prints Component Information like path, URL & storage
// PrintComponentInfo prints Component Information like path URL & storage
func PrintComponentInfo(currentComponentName string, componentDesc component.Description) {
	fmt.Printf("Component Name: %v\nType: %v\n", currentComponentName, componentDesc.ComponentImageType)
	if componentDesc.Path != "" {
		fmt.Printf("Source: %v\n", componentDesc.Path)
	}
	if componentDesc.Env != nil {
		fmt.Println("\nEnvironment variables:")
		for _, env := range componentDesc.Env {
			fmt.Printf(" - %v=%v\n", env.Name, env.Value)
		}
	}
	if componentDesc.Storage != nil {
		fmt.Println("\nStorage:")
		for _, store := range componentDesc.Storage {
			fmt.Printf(" - %v of size %v mounted to %v\n", store.Name, store.Size, store.Path)
		}
	}
	if componentDesc.URLs != nil {
		fmt.Println("\nURLs")
		for _, componentUrl := range componentDesc.URLs {
			fmt.Printf(" - %v exposed via %v\n", url.GetURLString(componentUrl), componentUrl.Port)
		}
	}
}
func PrintComponentInfo ( currentComponentName string , componentDesc component . Description ) { fmt . Printf ( " \n \n " , currentComponentName , componentDesc . ComponentImageType ) if componentDesc . Path != " " { fmt . Printf ( " \n " , componentDesc . Path ) } if componentDesc . Env != nil { fmt . Println ( " \n " ) for _ , env := range componentDesc . Env { fmt . Printf ( " \n " , env . Name , env . Value ) } } if componentDesc . Storage != nil { fmt . Println ( " \n " ) for _ , store := range componentDesc . Storage { fmt . Printf ( " \n " , store . Name , store . Size , store . Path ) } } if componentDesc . URLs != nil { fmt . Println ( " \n " ) for _ , componentUrl := range componentDesc . URLs { fmt . Printf ( " \n " , url . GetURLString ( componentUrl ) , componentUrl . Port ) } } }
PrintComponentInfo prints Component Information like path, URL & storage
PrintComponentInfo prints Component Information like path URL & storage
// Source // Env // Storage // URL