Latest | 0.3.2 |
---|---|
Homepage | https://github.com/hpcloud/HPCSMist |
License | MIT |
Platforms | ios 6.0, osx 10.7, requires ARC |
Dependencies | AFNetworking |
Frameworks | Security |
Authors |
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’.
- Check out the complete documentation for a
comprehensive look at the APIs available in HPCSMist
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
}
}
Sun, 06 Mar 2016 09:00:05 +0000