(obj Obj)
| 97 | } |
| 98 | |
| 99 | func GetStorageDetails(obj Obj) (*StorageDetails, bool) { |
| 100 | if obj, ok := obj.(ObjWithStorageDetails); ok { |
| 101 | return obj.GetStorageDetails(), true |
| 102 | } |
| 103 | if unwrap, ok := obj.(ObjUnwrap); ok { |
| 104 | return GetStorageDetails(unwrap.Unwrap()) |
| 105 | } |
| 106 | return nil, false |
| 107 | } |
no test coverage detected