> +
> +### Basic usage of the BlobStore view and the provider context
> +{% highlight java %}
> +// get a context with amazon that offers the portable BlobStore API
> +BlobStoreContext context = ContextBuilder.newBuilder("glacier")
> + .credentials(accesskeyid, secretkey)
> + .buildView(BlobStoreContext.class);
> +
> +try {
> + // create a container in the default location
> + BlobStore blobstore = context.getBlobStore();
> + blobstore.createContainerInLocation(null, containerName);
> +
> + // add blob
> + ByteSource payload = ByteSource.wrap("data".getBytes(Charsets.UTF_8));
> + Blob blob = blobstore.blobBuilder("ignored") // The blob name is ignored
> in Glacier
Thanks for spotting that, @andrewgaul! +1 on perhaps having two examples: one
using the BlobStore interface only, one using the API directly. And perhaps
make a call with the API that you can't make using BlobStore, as an example of
a case where you'd really need the API?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-site/pull/121/files#r16019191