checkVersinoningURLRemote checks if the versioning related flags are used with local objects. Because the versioning is only supported with s3.
(url *url.URL)
| 18 | // checkVersinoningURLRemote checks if the versioning related flags are used with |
| 19 | // local objects. Because the versioning is only supported with s3. |
| 20 | func checkVersinoningURLRemote(url *url.URL) error { |
| 21 | if !url.IsRemote() && url.IsVersioned() { |
| 22 | return fmt.Errorf("%q, and %q flags can only be used with remote objects", allVersionsFlagName, versionIDFlagName) |
| 23 | } |
| 24 | return nil |
| 25 | } |
| 26 | |
| 27 | // checkVersioningFlagCompatibility checks if the incompatible versioning flags |
| 28 | // are used together. Because it is not allowed to refer to both "all versions" and |
no test coverage detected