remove keystone client dependency

this dependency is no longer needed

Signed-off-by: Thiago da Silva <thiago@redhat.com>
Merge pull request #26 from thiagol11/remove_keystoneclient_dependency

remove keystone client dependency
New constraints middleware

This middleware allows different constraints to be mapped
to different storage policies. For example, swiftonfile
storage policy can have a different set of file name size
constraints different from the swift default values.

Signed-off-by: Thiago da Silva <thiago@redhat.com>
constraints middleware

The constraints middleware would allow of different
constraints to be applied to different storage policies.
In the case of swiftonfile this is important, because
the constraints are different than the existing constraints
of the default swift constraints. For example: Sof needs
to check for the size of each directory in a object path,
which is not necessary for default swift.

Signed-off-by: Thiago da Silva <thiago@redhat.com>
fixing setup.py to add middleware

added constraints middleware to setup.py

Signed-off-by: Thiago da Silva <thiago@redhat.com>
New constraints middleware

This middleware allows different constraints to be mapped
to different storage policies. For example, swiftonfile
storage policy can have a different set of file name size
constraints different from the swift default values.

Signed-off-by: Thiago da Silva <thiago@redhat.com>
constraints middleware

The constraints middleware would allow of different
constraints to be applied to different storage policies.
In the case of swiftonfile this is important, because
the constraints are different than the existing constraints
of the default swift constraints. For example: Sof needs
to check for the size of each directory in a object path,
which is not necessary for default swift.

Signed-off-by: Thiago da Silva <thiago@redhat.com>
Add check for content-type header in request

the default check_object_creation checks if content-type
header is in the request headers. If it is not a HTTPBadRequest
returns. The proxy has code to detect and add the content-type,
so for now we have moved this code here, so that the constraints
middleware can be in the proxy pipeline.

Signed-off-by: Thiago da Silva <thiago@redhat.com>
Merge branch 'constraints-middleware' of github.com:thiagol11/swiftonfile into constraints-middleware

Conflicts:
	swiftonfile/swift/common/middleware/check_constraints.py