In order to contribute, please follow the Contributing Guidelines.
npm install --save scality/sproxydclient
The client API consists of a class handling basic operations on its side, using a callback to return whatever value is needed.
opts is an optional parameter, that will evolve to an array of connectors.
var SproxydClient = require('sproxydclient');
var opts = {
hostname: 'example.com',
port: '81',
path: '/proxy/arc/',
};
var client = new SproxydClient(opts);
assert(stream instanceof stream.Readable);
Client.put(stream: stream.Readable, size: number, (err: Error, key: string) => {});
Client.get(key: string, (err: Error, stream: http.IncomingMessage) => {});
Client.delete(key: string, (err: Error) => {});
The API is still in its infancy stages. We need to:
- Detect said failures before sending our requests (Phi accrual detector)