2017 © Pedro Peláez
 

silverstripe-module silverstripe-cloudassets-rackspace

Rackspace CloudFiles bucket driver for markguinn/silverstripe-cloudassets

image

markguinn/silverstripe-cloudassets-rackspace

Rackspace CloudFiles bucket driver for markguinn/silverstripe-cloudassets

  • Thursday, February 18, 2016
  • by markguinn
  • Repository
  • 4 Watchers
  • 9 Stars
  • 207 Installations
  • PHP
  • 0 Dependents
  • 1 Suggesters
  • 3 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Cloud Assets Module

Rackspace CloudFiles Driver

CloudAssets module allows you to host all or part of the assets folder on a cloud storage container (CDN). You can find more details about how it works here: https://github.com/markguinn/silverstripe-cloudassets, (*1)

This driver gives you the bucket type RackspaceBucket for connecting to CloudFiles., (*2)

This module can happily co-exist with other bucket driver modules (which don't exist at the time of this writing)., (*3)

Requirements

  • Silverstripe 3.1+
  • Cloud Assets module
  • Rackspace php-opencloud

Best way to install by far is composer require markguinn/silverstripe-cloudassets-rackspace., (*4)

Example

Assuming you have a CloudFiles container called site-uploads:, (*5)

mysite/_config/cloudassets.yml:, (*6)

---
name: assetsconfig
---
CloudAssets:
  map:
    'assets/Uploads':
      Type: RackspaceBucket
      BaseURL: 'http://yourcdnbaseurl.com/'
      Container: site-uploads
      Region: ORD
      Username: yourlogin
      ApiKey: yourkey
      LocalCopy: false
      ServiceNet: false         # use the rackspace servicenet
      ForceDownload: false       # add Content-disposition headers to uplaoded files

Developer(s)

Contributions welcome by pull request and/or bug report. Please follow Silverstripe code standards (tests would be nice)., (*7)

I would love for someone to implement some other drivers - S3, Swift, Google, etc. It's very easy to implement drivers - just extend CloudBucket and implement a few methods., (*8)

License (MIT)

Copyright (c) 2014 Mark Guinn, (*9)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:, (*10)

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software., (*11)

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE., (*12)

The Versions

18/02 2016

dev-master

9999999-dev

Rackspace CloudFiles bucket driver for markguinn/silverstripe-cloudassets

  Sources   Download

MIT

The Requires

 

cdn assets silverstripe rackspace cloudfiles cloud storage cloudassets

08/02 2014

1.0.0

1.0.0.0

Rackspace CloudFiles bucket driver for markguinn/silverstripe-cloudassets

  Sources   Download

MIT

The Requires

 

cdn assets silverstripe rackspace cloudfiles cloud storage cloudassets