Quantcast

Rackspace Files stream wrapper

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Rackspace Files stream wrapper

Matt Kynx
Hi,

First off, great to see all the work on zf2 beta5. Good going.

Back in zf1 land I've been working on my stream wrapper for
Zend_Service_Rackspace_Files. The code is at:
https://github.com/kynx/Kynx

The key thing it does is let you use cloud files with regular
filesystem functions, like:
copy('/path/to/backup.tgz', 'rscf://container/backup.tgz');

It's also handy when there's no way to tell the size of the file
you're sending, like when you're piping the output from mysqldump or
gzip. There's an example 'cfpipe' command-line script that does just
that at:
https://gist.github.com/3068629

I've kept it in my own namespace for now. But if there's interest I'd
like to contribute it to zf1. Let me know. I'll do zf2 version
eventually - if no one gets there first ;)

And if there are any proc_open() / stream_select() whizzes out there,
I'd be extremely grateful for some eyes on:
https://github.com/kynx/Kynx/blob/master/Service/Rackspace/Files/Checksum/Proc.php
The calculate() method was giving me blocking headaches until
recently, and I'm still not sure I've got it right.

Next up is support for >50G files. Not that I've got much need, but it
shouldn't be hard. Then maybe TempURL and Object Versioning.

Cheers,

Matt
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Rackspace Files stream wrapper

Marco Pivetta
Hey matt!
I see such a feature as a nice addition if you provide it as a ZF2 module :) After all, what you need to do to ship is is a Module.php :)
Marco Pivetta

http://twitter.com/Ocramius     

http://marco-pivetta.com    



On 8 July 2012 14:00, Matt Kynx <[hidden email]> wrote:
Hi,

First off, great to see all the work on zf2 beta5. Good going.

Back in zf1 land I've been working on my stream wrapper for
Zend_Service_Rackspace_Files. The code is at:
https://github.com/kynx/Kynx

The key thing it does is let you use cloud files with regular
filesystem functions, like:
copy('/path/to/backup.tgz', 'rscf://container/backup.tgz');

It's also handy when there's no way to tell the size of the file
you're sending, like when you're piping the output from mysqldump or
gzip. There's an example 'cfpipe' command-line script that does just
that at:
https://gist.github.com/3068629

I've kept it in my own namespace for now. But if there's interest I'd
like to contribute it to zf1. Let me know. I'll do zf2 version
eventually - if no one gets there first ;)

And if there are any proc_open() / stream_select() whizzes out there,
I'd be extremely grateful for some eyes on:
https://github.com/kynx/Kynx/blob/master/Service/Rackspace/Files/Checksum/Proc.php
The calculate() method was giving me blocking headaches until
recently, and I'm still not sure I've got it right.

Next up is support for >50G files. Not that I've got much need, but it
shouldn't be hard. Then maybe TempURL and Object Versioning.

Cheers,

Matt

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Rackspace Files stream wrapper

Matt Kynx
On Mon, Jul 9, 2012 at 2:16 AM, Marco Pivetta <[hidden email]> wrote:
> Hey matt!
> I see such a feature as a nice addition if you provide it as a ZF2 module :)
> After all, what you need to do to ship is is a Module.php :)

Most certainly! It's just a question of time :| I've got an immediate
use for the zf1 stuff right now with work, but they're not moving to
ZF2 until, well, I haven't a clue.

BTW, I put a post on the rackspace's api forum flagging up the stuff
coming in 1.12. Not sure anyone reads them though (I don't ;)

Matt


> Marco Pivetta
>
> http://twitter.com/Ocramius
>
> http://marco-pivetta.com
>
>
>
> On 8 July 2012 14:00, Matt Kynx <[hidden email]> wrote:
>>
>> Hi,
>>
>> First off, great to see all the work on zf2 beta5. Good going.
>>
>> Back in zf1 land I've been working on my stream wrapper for
>> Zend_Service_Rackspace_Files. The code is at:
>> https://github.com/kynx/Kynx
>>
>> The key thing it does is let you use cloud files with regular
>> filesystem functions, like:
>> copy('/path/to/backup.tgz', 'rscf://container/backup.tgz');
>>
>> It's also handy when there's no way to tell the size of the file
>> you're sending, like when you're piping the output from mysqldump or
>> gzip. There's an example 'cfpipe' command-line script that does just
>> that at:
>> https://gist.github.com/3068629
>>
>> I've kept it in my own namespace for now. But if there's interest I'd
>> like to contribute it to zf1. Let me know. I'll do zf2 version
>> eventually - if no one gets there first ;)
>>
>> And if there are any proc_open() / stream_select() whizzes out there,
>> I'd be extremely grateful for some eyes on:
>>
>> https://github.com/kynx/Kynx/blob/master/Service/Rackspace/Files/Checksum/Proc.php
>> The calculate() method was giving me blocking headaches until
>> recently, and I'm still not sure I've got it right.
>>
>> Next up is support for >50G files. Not that I've got much need, but it
>> shouldn't be hard. Then maybe TempURL and Object Versioning.
>>
>> Cheers,
>>
>> Matt
>
>
Loading...