Openwhisk Rust Client

Description

This project Openwhisk-client-Rust is a Rust client library to access the Openwhisk API The Openwhisk Rust Client library requires Rust to be installed onto your local machine.

Setup

The openwhisk rust library can be accessed by the following way

Using openwhisk macro

Add openwhisk-rust = 0.1.1 in Cargo.toml file of your rust package. Then access it by importing use openwhisk-rust::*;

Configuration

Configure your Openwhisk client by setting the properties.

let wsk_properties = WskProperties::new( "<Openwhisk_Auth_Token>", "<Openwhisk_API_Hosy>", <Bool(true/false)>, "<Namespace>" );

Usage

Examples

```

``` let wskproperties = WskProperties::new( "", "", " ); let client = OpenwhiskClient::::new(Some(&wskproperties));

let triggers = client.triggers().list().unwrap();
```

``` let wskproperties = WskProperties::new( "", "", " ); let client = OpenwhiskClient::::new(Some(&wskproperties)); let properties = client.rules().list().unwrap();

```

## Contributions Contributions welcome particularly for enhancement of this library and also adding new functionality which helps in seamless interaction with Openwhisk Apis in rust applications.

Follow these steps for contributing

References

Special thanks to Openwhisk-go-client for inspiring us to develop Openwhisk Client in rust

License

Licensed under Apache-2.0