NewVersionedReaderWriter creates a client to perform versioned requests. Note that write requests are best-effort since the S3 API does not support precondition headers.
(cfg *Config)
| 111 | // NewVersionedReaderWriter creates a client to perform versioned requests. Note that write requests are |
| 112 | // best-effort since the S3 API does not support precondition headers. |
| 113 | func NewVersionedReaderWriter(cfg *Config) (backend.VersionedReaderWriter, error) { |
| 114 | return internalNew(cfg, true) |
| 115 | } |
| 116 | |
| 117 | func internalNew(cfg *Config, confirm bool) (*readerWriter, error) { |
| 118 | if cfg == nil { |
no test coverage detected