Skip to main content

Lunr API client

Project description

## LunrClient

An HTTP Client for use with the Lunr Storage Backend for Cinder

## Installation

$ pip install python-lunrclient

## Usage

This package provides 2 command line tools lunr an inteface to the lunr API and storage an interface to the storage API.

#### Lunr API commandline usage

$ lunr -h Usage: lunr <command> [-h]

Command line interface to the lunr api

Available Commands:

node account volume export env backup

#### Storage API commandline usage

$ storage -h – Warning: Failed to load tools module, Missing dependency? Usage: storage <command> [-h]

Command line interface to the lunr storage api

Available Commands:

volume status export backup env

Both lunr and storage can use environment variables for convenience.

Use lunr env and storage env to list environment variables that are used.

Currently the following are supported:

export OS_TENANT_NAME=’thrawn’ export LUNR_ADMIN=’admin’ export LUNR_TENANT_ID=’admin’ export LUNR_STORAGE_URL=’http://localhost:8081’ export LUNR_API_URL=’http://localhost:8080

## Lunr API Examples

Create a 1 gig volume with a uuid for a name and use the default volume type:

$ lunr volume create 1

List the available volumes for OS_TENANT_NAME:

$ lunr volume list

Delete a volume:

$ lunr volume delete my-volume

## Storage API Examples

Create a 1 gig volume with a uuid for a name:

$ storage volume create 1

List the available volumes on the storage node:

$ storage volume list

Delete a volume:

$ storage volume delete my-volume

## Storage Tools

There are some additional storage server tools that are only available when run on the storage node:

$ storage tools -h Usage: storage tools <command> [-h]

A collection of misc Storage Node tools

Available Commands:

read randomize clone write backup

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python-lunrclient-1.3.0.tar.gz (24.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

python_lunrclient-1.3.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file python-lunrclient-1.3.0.tar.gz.

File metadata

File hashes

Hashes for python-lunrclient-1.3.0.tar.gz
Algorithm Hash digest
SHA256 ae7cf268b0bb2cd1e8197f97e3ced16f9933ec9eee3dbb2a981e3bfb3e68b29b
MD5 adc8c358050741c0cb7219f39e673e7c
BLAKE2b-256 a947e2befa40a6f1c2cfc2679f5c8fafa64a27f9b3ca1815e0a2e4fa2007e8a1

See more details on using hashes here.

File details

Details for the file python_lunrclient-1.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for python_lunrclient-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2c7b8b7a07622a385f1324afa16a7306487f326ea04094e02cd366de3fa0e04c
MD5 da326489e67a217ece68c73c200875bf
BLAKE2b-256 16b60f889e31142948a24702a656643dee2560148cc892e6e1d317215e744b1c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page