@@ -42,6 +42,8 @@ const (
4242 back = "back"
4343 all = "all"
4444 partitionDisplayType = "partition"
45+ access = "access"
46+ storage = "storage"
4547)
4648
4749// getCachesCmd represents the get caches command.
@@ -452,7 +454,7 @@ You can specify '-o wide' to display addition information.`,
452454 return nil
453455 },
454456 RunE : func (cmd * cobra.Command , args []string ) error {
455- return getCacheDetails (cmd , args , " access" )
457+ return getCacheDetails (cmd , args , access )
456458 },
457459}
458460
@@ -470,7 +472,7 @@ You can specify '-o wide' to display addition information.`,
470472 return nil
471473 },
472474 RunE : func (cmd * cobra.Command , args []string ) error {
473- return getCacheDetails (cmd , args , " storage" )
475+ return getCacheDetails (cmd , args , storage )
474476 },
475477}
476478
@@ -660,11 +662,11 @@ func getCacheDetails(cmd *cobra.Command, args []string, displayType string) erro
660662 cmd .Printf ("Cache: %s\n \n " , args [0 ])
661663 }
662664
663- if displayType == " access" {
665+ if displayType == access {
664666 cmd .Println (FormatCacheDetailsSizeAndAccess (cacheDetails .Details ))
665667 } else if displayType == "index" {
666668 cmd .Println (FormatCacheIndexDetails (cacheDetails .Details ))
667- } else if displayType == " storage" {
669+ } else if displayType == storage {
668670 cmd .Println (FormatCacheDetailsStorage (cacheDetails .Details ))
669671 } else if displayType == partitionDisplayType {
670672 cmd .Printf ("Cache: %s\n " , args [0 ])
0 commit comments