emile-bernard / Go_Govomi_Connect

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

go_govomi_connect

This project contains a basic Go program to connect Govomi client to vcenter.

Install Go

Download from: https://golang.org/dl/

$ tar -C /usr/local -xzf go1.11.2.linux-amd64.tar.gz
$ export PATH=$PATH:/usr/local/go/bin

Install govomi package

$ go get -u github.com/vmware/govmomi

List all environnement variables

$ printenv

Set environnement variables

$ export GOVOMIHOST=vcenter.ulaval.ca/sdk
$ export GOVOMIUID=userid
$ export GOVOMIPWD='password'

Build and run the program

$ go build
$ ./go_govomi_connect

Links

Govomi Library

Go Downloads

Getting started with Go

About

License:MIT License


Languages

Language:Go 100.0%