https://github.com/ovirt/ovirt-engine-sdk-go
The generator of Go SDK for oVirt v4.0+
https://github.com/ovirt/ovirt-engine-sdk-go
go java ovirt ovirt-engine ovirt-management
Last synced: about 1 year ago
JSON representation
The generator of Go SDK for oVirt v4.0+
- Host: GitHub
- URL: https://github.com/ovirt/ovirt-engine-sdk-go
- Owner: oVirt
- License: apache-2.0
- Created: 2017-05-27T01:47:22.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2023-08-08T09:21:12.000Z (almost 3 years ago)
- Last Synced: 2024-06-20T09:25:23.253Z (about 2 years ago)
- Topics: go, java, ovirt, ovirt-engine, ovirt-management
- Language: Go
- Homepage:
- Size: 1.69 MB
- Stars: 19
- Watchers: 43
- Forks: 23
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# oVirt Go SDK
[](https://travis-ci.org/oVirt/ovirt-engine-sdk-go)
[](https://goreportcard.com/report/github.com/oVirt/ovirt-engine-sdk-go)
## Introduction
The oVirt Go SDK is a Go package that simplifies access to the
oVirt Engine API.
> IMPORTANT: This document describes how to generate, build and test the
SDK. If you are interested in how to use it read the `README.md` file
in the [oVirt/go-ovirt](https://github.com/oVirt/go-ovirt) repository instead.
## Building
You must install the Go binary and setup the Go environments, including
`GOROOT` and `GOPATH`.
Most of the source code of the Go SDK is automatically generated
from the API model (Java).
The code generator is a Java program that resides in the `generator`
directory. This Java program will get the API model and the metamodel
artifacts (offered by oVirt team) from the available Maven repositories.
To build and run it use the following commands:
```bash
$ git clone git@github.com:oVirt/ovirt-engine-sdk-go.git
$ cd ovirt-engine-sdk-go
$ mvn package
```
This will build the code generator, run it to generate the SDK for the
version of the API that corresponds to the branch of the SDK that you
are using.
If you need to generate it for a different version of the API then you
can use the `model.version` property. For example, if you need to
generate the SDK for version `4.1.0` of the SDK you can use this
command:
```bash
$ mvn package -Dmodel.version=4.1.0
```
By default the build and the tests are executed using the `go` command.
If you wish to use a different version of Go you can use the
`go.command` property:
```bash
$ mvn package -Dgo.command=go1.7
```