Skip to content
Golang bindings for HPE SimpliVity REST APIs
Go Makefile
Branch: master
Clone or download

Latest commit

Latest commit bd16e37 Feb 20, 2020

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples Initial commit Feb 18, 2020
ovc Updated code comments Feb 18, 2020
.gitignore Initial commit Feb 18, 2020
.travis.yml Update travis Feb 20, 2020
CHANGELOG.md Initial commit Feb 18, 2020
CONTRIBUTING.md Initial commit Feb 18, 2020
LICENSE Create LICENSE Feb 17, 2020
Makefile Update Makefile Feb 20, 2020
README.md Update README.md Feb 20, 2020
endpoints-support.md Initial commit Feb 18, 2020

README.md

Documentation Build Status Coverage Status

HPE SimpliVity SDK for Go

This library provides a Go interface to the HPE SimpliVity REST APIs.

HPE SimpliVity is an intelligent hyperconverged platform that speeds application performance, improves efficiency and resiliency, and backs up and restores VMs in seconds.

Usage

import "github.com/HewlettPackard/simplivity-go/ovc"

Construct a new OVC client, then use the various resource clients available on the OVC client to access the resource specific features. For example:

//Create an OVC client
client, _ := ovc.NewClient("username", "password", "ovc_ip", "certificate_path") // with certificate
client, _ := ovc.NewClient("username", "password", "ovc_ip", "") // without certificate

//Get all the VMs without Filters
vmList, _ := client.VirtualMachines.GetAll(ovc.GetAllParams{})

//Get a VM resource by its name
vmByName, _ = client.VirtualMachines.GetByName(vmName)

//Clone the above VM
vm, err = vmByName.Clone("new_vm_name", false)

For more examples, head over to the example directory.

API Implementation

Status of the HPE SimpliVity REST interfaces that have been implemented in this Go library can be found in the endpoints-support file.

Contributing and feature requests

Contributing: We welcome your contributions to the Go SDK for HPE SimpliVity. See CONTRIBUTING.md for more details.

Feature Requests: If you have a need that is not met by the current implementation, please let us know (via a new issue). This feedback is crucial for us to deliver a useful product. Do not assume that we have already thought of everything, because we assure you that is not the case.

Testing

When contributing code to this project, we require tests to accompany the code being delivered. That ensures a higher standing of quality, and also helps to avoid minor mistakes and future regressions.

License

This project is licensed under the Apache license. Please see LICENSE for more information.

Version and changes

To view history and notes for this version, view the CHANGELOG.

You can’t perform that action at this time.