#api #cloud #openstack

osauth

Asynchronous OpenStack session and authentication

9 releases

✓ Uses Rust 2018 edition

0.2.4 Jun 17, 2019
0.2.3 Jun 9, 2019
0.2.2 May 6, 2019
0.2.1 Apr 19, 2019
0.0.0 Feb 20, 2019

#6 in #cloud

Download history 20/week @ 2019-04-07 69/week @ 2019-04-14 9/week @ 2019-04-21 11/week @ 2019-04-28 24/week @ 2019-05-05 10/week @ 2019-05-12 26/week @ 2019-05-19 50/week @ 2019-05-26 55/week @ 2019-06-02 51/week @ 2019-06-09 84/week @ 2019-06-16 109/week @ 2019-06-23 115/week @ 2019-06-30 45/week @ 2019-07-07 23/week @ 2019-07-14

158 downloads per month
Used in 2 crates

Apache-2.0

143KB
3K SLoC

Asynchronous OpenStack session and authentication

Build Status License Latest Version Documentation

The goal of this project is to provide a asynchronous API for HTTP requests against OpenStack clouds. For a more high-level API see rust-openstack.


lib.rs:

Asynchronous OpenStack session and authentication.

Introduction

This crate provides low-level asynchronous access to OpenStack API. It features:

  1. Authentication and token caching.
  2. Major and microversion handling.
  3. Service catalog integration.
  4. JSON API error handling.
  5. Service types for supported services.

It does NOT provide:

  1. Protocol structures for any services.
  2. Automatic microversion negotiation.

See openstack crate for these features.

Requirements

This crate requires Rust 2018 edition and relies heavily on futures 0.1. It has not yet been updated for the new async/await syntax and may not be compatible with it out-of-box.

Usage

Your entry point to the API is the Session structure. To create it you need an authentication type object first. It can be obtained by:

  • Using Password authentication against the Identity service.
  • Using NoAuth authentication type, allowing access to standalone services without authentication.

A Session can be created directly by loading it:

  • From the clouds.yaml configuration file using from_config.
  • From environment variables using from_env.

See Session documentation for the details on using a Session for making OpenStack calls.

If you need to work with a small number of servics, Adapter provides a more convenient interface. An adapter can be created directly using Adapter::new or from an existing Session using Session::adapter or Session::into_adapter.

Dependencies

~18MB
~410K SLoC