rexray

package module
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 27, 2015 License: Apache-2.0 Imports: 5 Imported by: 0

README

REX-Ray GoDoc Build Status Go Report Card Coverage Status Download

REX-Ray provides visibility and management of external/underlying storage via guest storage introspection. Available as a Go package, CLI tool, and Linux service, and with built-in third-party support for tools such as Docker, REX-Ray is easily integrated into any workflow.

Documentation for REX-Ray Docs

You will find complete documentation for REX-Ray, including licensing and support information at rexray.readthedocs.org

Documentation

Overview

Package rexray provides visibility and management of external/underlying storage via guest storage introspection. Available as a Go package, CLI tool, and Linux service, and with built-in third-party support for tools such as Docker, REX-Ray is easily integrated into any workflow. For example, here's how to list storage for a guest hosted on Amazon Web Services (AWS) with REX-Ray:

[0]akutz@pax:~$ export REXRAY_STORAGEDRIVERS=ec2
[0]akutz@pax:~$ export AWS_ACCESS_KEY=access_key
[0]akutz@pax:~$ export AWS_SECRET_KEY=secret_key
[0]akutz@pax:~$ rexray volume get

- providername: ec2
  instanceid: i-695bb6ab
  volumeid: vol-dedbadc3
  devicename: /dev/sda1
  region: us-west-1
  status: attached
- providername: ec2
  instanceid: i-695bb6ab
  volumeid: vol-04c4b219
  devicename: /dev/xvdb
  region: us-west-1
  status: attached

[0]akutz@pax:~$

Using REX-Ray as a library is easy too. To perform the same volume listing as above, simply use the following snippet:

import "github.com/emccode/rexray"

r := rexray.NewWithEnv(map[string]string{
    "REXRAY_STORAGEDRIVERS": "ec2",
    "AWS_ACCESS_KEY": "access_key",
    "AWS_SECRET_KEY": "secret_key"})

r.InitDrivers()

volumes, err := r.Storage.GetVolumeMapping()

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New added in v0.2.1

func New() (*core.RexRay, error)

New creates a new REX-Ray instance and configures using the standard configuration workflow: environment variables followed by global and user configuration files.

func NewWithConfigFile added in v0.2.1

func NewWithConfigFile(path string) (*core.RexRay, error)

NewWithConfigFile creates a new REX-Ray instance and configures it with a custom configuration file.

func NewWithConfigReader added in v0.2.1

func NewWithConfigReader(in io.Reader) (*core.RexRay, error)

NewWithConfigReader creates a new REX-Ray instance and configures it with a custom configuration stream.

func NewWithEnv added in v0.2.1

func NewWithEnv(env map[string]string) (*core.RexRay, error)

NewWithEnv creates a new REX-Ray instance and configures it with a a custom environment.

Types

This section is empty.

Directories

Path Synopsis
os
cli
Package test is a package that exists purely to provide coverage for the following packages:
Package test is a package that exists purely to provide coverage for the following packages:

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL