Skip to content

Go client interfacing with the oracle IAAS cloud API.

License

Notifications You must be signed in to change notification settings

juju/go-oracle-cloud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-oracle-cloud

Client library providing a simple interface with the oracle cloud IAAS rest api.

Build Status GoDoc Go Report Card

Example client authentication

package main

import (
	"fmt"
	oracle "github.com/juju/go-oracle-cloud/api"
)

func main() {
	// create the configuration for the client
	cfg := oracle.Config{
		Username: "[email protected]",
		Password: "oraclepassword",
		Identify: "qbitq",
		Endpoint: "https://api-z52.compute.us2.oraclecloud.com",
	}

	// create a new client based on the configuration
	cli, err := oracle.NewClient(cfg)
	if err != nil {
		fmt.Println(err)
		return
	}

	// authenticate with the client
	err = cli.Authenticate()
	if err != nil {
		fmt.Println(err)
		return
	}


	// code
}

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages