Git Product home page Git Product logo

xen-api-sdk's Introduction

XenAPI Software Development Kit

This repository contains the generation code for the XenAPI Software Development Kit (SDK) and its associated documentation and examples.

The SDK consists of five components, one for each of C, C#, Java, PowerShell, and Python, exposing the individual XenAPI calls as first-class functions in the target language.

The generation code is mostly written in Ocaml 3.12.

Build

1. Environment setup

Install opam. It is also recommended to install one of the listed external solvers (e.g. aspcud).

Ensure you are using version 4.02.3 of the Ocaml compiler: opam switch 4.02.3

and you have the package depext: opam install depext

Note: if you want to avoid setting up the environment by yourself, you can use one of the ready containers from opam-dockerfiles, which come with a preinstalled OPAM environment and Ocaml compiler.

2. Install dependencies

Add xs-opam as a remote Opam repository (follow the instructions in that repo).

Then, to install the dependencies of the SDK, which include Xapi, run

   opam depext -y xen-api-sdk
   opam install -y --deps-only xen-api-sdk

This will install first the external dependencies of this package and of all its dependencies, and then all the OPAM packages required for building it.

Finally, copy this file into the root of the xen-api-sdk repo.

3. SDK generation

Run make <lang>, where <lang> one or more of c, java, csharp, powershell, to generate SDK source code for the specified programming language(s), or simply make to generate SDK source code for all the supported languages.

To compile the generated source code, follow the instructions in the corresponding README files.

Note: The Python module is not auto-generated. It can be found at XenAPI.py.

Contributions

The preferable way to contribute patches is to fork the repository on Github and then submit a pull request. If for some reason you can't use Github to submit a pull request, then you may send your patch for review to the [email protected] mailing list, with a link to a public git repository for review. Please see the CONTRIB.md file for some general guidelines on submitting changes.

Maintainers

License

This code is licensed under the BSD 2-Clause license. Please see the file LICENSE for more information.

xen-api-sdk's People

Contributors

cheng-z avatar chrish4rding avatar djs55 avatar euanh avatar frezzle avatar gaborapatinagy avatar gaborigloi avatar johnelse avatar jonludlam avatar kc284 avatar lindig avatar mihaelastoica avatar robhoes avatar stephen-turner avatar thomassa avatar

Watchers

 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.