oneviewgolang

package module
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

README

HPE OneView golang bindings

Build Status

HPE OneView allows you to treat your physical infrastructure as code, and now you can integrate your favorite tools based in golang with HPE OneView.

Build requirements

We use docker to build and test, run this project on a system that has docker. If you don't use docker, you will need to install and setup go-lang locally as well as any other make requirements. You can use USE_CONTAINER=false environment setting for make to avoid using docker. Otherwise make sure to have these tools:

  • docker client and daemon
  • gnu make tools
Docker Container Setup

We also provide a lightweight and easy way to test and run oneview-golang. The hewlettpackardenterprise/hpe-oneview-sdk-for-golang:<tag> docker image contains an installation of oneview-golang installation you can use by just pulling down the Docker Image:

The Docker Store image tag consist of two sections: <sdk_version-OV_version>

# Download and store a local copy of hpe-oneview-sdk-for-golang and
# use it as a Docker image.
$ docker pull hewlettpackardenterprise/hpe-oneview-sdk-for-golang:v1.5.0-OV5.3
#Run docker commands and this will in turn create
# a sh session where you can create files, issue commands and execute the tests
$ docker run -it hewlettpackardenterprise/hpe-oneview-sdk-for-golang:v1.5.0-OV5.3 /bin/sh
Environment Variables

Following environment variables can be set for testing:

# Required
export ONEVIEW_OV_ENDPOINT=<ov_endpoint>

export ONEVIEW_OV_USER=<ov_username>
export ONEVIEW_OV_PASSWORD=<ov_password>
export ONEVIEW_OV_DOMAIN=LOCAL
export ONEVIEW_SSLVERIFY=false
export ONEVIEW_APIVERSION=<ov_apiversion>

Note: Currently this SDK supports OneView API 1800 minimally where we can test OneView API 1800 version with this SDK. No new fields have been added/deleted to support API 1800 version. Complete support will be done in next releases.

Testing your changes

From a container
make test
Without docker
  • Install golang 1.5 or higher(We recommend using Go 1.11)
  • Install go packages listed in .travis.yml
USE_CONTAINER=false make test

Contributing

We welcome your contributions to the HPE OneView golang SDK. See CONTRIBUTING.md for more details.

Hacking Guide

Use the hacking guide to run local acceptance testing and debugging local contributions. Currently test cases are not supported portion of our CI/CD approval process but might be made available from this test suite in the future. Contributions to the test suite is appreciated.

License

This project is licensed under the Apache License, Version 2.0. See LICENSE for full license text.

Documentation

Overview

Package oneviewgolang This package should be used when working with api's for HP OneView and HP ICsp Stub package for version

Index

Constants

This section is empty.

Variables

View Source
var (
	// ConfigVersion dictates which version of the config.json format is
	// used. It needs to be bumped if there is a breaking change, and
	// therefore migration, introduced to the config file format.
	ConfigVersion = 1

	// Version should be updated by hand at each release
	Version = "1.0.0"

	// GitCommit will be overwritten automatically by the build system
	GitCommit = "HEAD"
)

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
Package I3S for working with HPE ImageStreamer Package i3s - Image Streamer 3.0 -
Package I3S for working with HPE ImageStreamer Package i3s - Image Streamer 3.0 -
Package icsp - Package icsp - Package icsp - Package icsp - Package icsp - Package icsp Package icsp - Package icsp -
Package icsp - Package icsp - Package icsp - Package icsp - Package icsp - Package icsp Package icsp - Package icsp -
Package liboneview - Package liboneview -
Package liboneview - Package liboneview -
Package ov - Package ov for working with HP OneView Package ov - Package ov - Package ov - Package ov - Package ov - Package ov - Package ov Package ov - Package ov - Package ov - Package ov - Package ov - Package ov - Package ov -
Package ov - Package ov for working with HP OneView Package ov - Package ov - Package ov - Package ov - Package ov - Package ov - Package ov Package ov - Package ov - Package ov - Package ov - Package ov - Package ov - Package ov -

Jump to

Keyboard shortcuts

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