GithubHelp home page GithubHelp logo

isabella232 / hpcsmist Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hpcloud/hpcsmist

0.0 0.0 0.0 2.36 MB

IOS bindings for HP Cloud

License: Other

Shell 0.78% Ruby 5.92% C++ 0.75% C 2.51% Objective-C 87.66% D 0.61% CSS 1.31% TeX 0.46%

hpcsmist's Introduction

HPCSMist

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?)

hpcsmist's People

Contributors

mwhagedorn avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.