Storage creates a storage object from the class in an object string
(iObject string)
| 144 | |
| 145 | // Storage creates a storage object from the class in an object string |
| 146 | func storageProvider(iObject string) (storage, error) { |
| 147 | components := strings.Split(iObject, ":") |
| 148 | if len(components) < 1 || components[0] != fileStorageClass { |
| 149 | return storage{}, fmt.Errorf("storage provider not found: %s", iObject) |
| 150 | } |
| 151 | |
| 152 | return storage{}, nil |
| 153 | } |
no outgoing calls
no test coverage detected