swift
swift copied to clipboard
Go language interface to Swift / Openstack Object Storage / Rackspace cloud files (golang)
When receiving errors for creating/updating objects/containers the headers are thrown away, this makes it impossible to respect retry-after headers which can be present in e.g. http 503 Service Unavailable or...
The `Authentication` method says: > If you don't call it before calling one of the connection methods then it will be called for you on the first access. And the...
According to [swift doc](https://docs.openstack.org/api-ref/object-store/index.html?expanded=create-or-replace-object-detail) PUT request on object (object creation) returns 404 if container is not found > If the container for the object does not already exist, the operation...
`DynamicLargeObjectCreateFile` succeeds, but when I try to write to it with `io.CopyBuffer`, the write always fails. Am I using the API correctly? Is there something more explicit I need to...
Lib version used: v1.0.52 Hi, I'm not sure if it's an issue or me wrongly using the lib. The [`Authenticate` documentation](https://pkg.go.dev/github.com/ncw/swift?tab=doc#Connection.Authenticate) states that: > If you don't call it before...
When migrating from OVH Keystone API v2.0 to v3 the `Authenticate` method return `Bad Request` which isn't very explicit. After debugging it, I see that the server respond with a...
Newer swift no longer requires a copy in place to update content-type. Updated a bit of the docs and added test to demonstrate the differences in behavior when using ObjectUpdateContentType...
The library actually fetches some environment variables to connect against Openstack API. However, we cannot use a custom certificate (using `OS_CACERT`) the same way that the python-based `openstack-cli` does. Using...
Why don't use `sync.RWMutex` and `RLock` in method `Connection.storage` for read StorageUrl? Why `OnReAuth` don't lock mutex in this case? Why variable `Connection.StorageUrl` is exportable and sensitive to sync and...
If server returns content type like this `application/json; charset=utf-8`, it brokens client. https://github.com/ncw/swift/blob/24e3012fc8a71f004a6455bce2088031d50bf2b6/swift.go#L1993 Please use `strings.Contains` instead equal. ``` // Detect old servers which don't support this feature if !strings.Contains(headers["Content-Type"],...