code: func GetAccessModesFromString(modes string) []core.PersistentVolumeAccessMode {
  	strmodes := strings.Split(modes, ",")
  	accessModes := []core.PersistentVolumeAccessMode{}
  	for _, s := range strmodes {
  		s = strings.Trim(s, " ")
  		switch {
  		case s == "RWO":
  			accessModes = append(accessModes, core.ReadWriteOnce)
  		case s == "ROX":
  			accessModes = append(accessModes, core.ReadOnlyMany)
  		case s == "RWX":
  			accessModes = append(accessModes, core.ReadWriteMany)
  		}
  	}
  	return accessModes
  }
docs: // GetAccessModesFromString returns an array of AccessModes from a string created by GetAccessModesAsString