HPCSMist 0.3.2

HPCSMist 0.3.2

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Dec 2014

Maintained by .



HPCSMist 0.3.2

  • By
  • Mike Hagedorn

a delightful interface to HP Cloud Services for IOS and OSX. It's built on top of AFNetworking and other familiar Foundation technologies.

How To Get Started

Get The Source

Add HPCSMist To Your Project

Instead of adding the source files directly to your project, you may want to consider using CocoaPods to manage your dependencies. Follow the instructions on the CocoaPods site to install the gem, and specify HPCSMist as a dependency in your Podfile with pod 'HPCSMist', '0.0.6'.

Overview

Authentication To Control Services

  HPCSIdentityClient identity = [HPCSIdentityClient sharedClient];
  [identity setUsername:@"myuser"];
  [identity setPassword:@"mypassword"];
  [identity setTenantId:@"12345"];

  //on success caches the auth token, assuming success, ignoring failures
  [identity authenticate:nil failure:nil];

Get A Compute Instance

  HPCSComputeClient *nova = [identity computeClient];

  //list active servers
  [nova servers:^(NSArray * records){
    NSLog(@"got an array of servers");
  }
  failure:^(NSHTTPURLResponse * response, NSError * error){
    NSLog(@"couldnt get server list");
  }

Get An Object Storage Instance

  HPCSSwiftClient *swift = [identity swiftClient];

  //list containers
  [swift containers:^(NSArray * records){
    NSLog(@"got an array of containers");
  }
  failure:^(NSHTTPURLResponse * response, NSError * error){
    NSLog(@"couldnt get container list");
  }

TODO

  • server side copy
  • ACL
  • File Compression (should this be done at a higher level?)