{"repo":"ovh/go-ovh","free":true,"listed":false,"github":"https://github.com/ovh/go-ovh","clone":"git clone https://github.com/ovh/go-ovh.git","description":"Simple go wrapper for the OVH API","language":"Go","stars":151,"topics":["api-wrapper"],"license":"BSD-3-Clause","category":"api-integrations-sdks","readme_excerpt":"go-ovh ====== Lightweight Go wrapper around OVHcloud's APIs. Handles all the hard work including credential creation and requests signing. Installation The Golang wrapper has been tested with Golang 1.18+. It may worker with older versions although it has not been tested. To use it, just include it to your import and run go get : Configuration The straightforward way to use OVHcloud's API keys is to embed them directly in the application code. While this is very convenient, it lacks of elegance and flexibility. Alternatively it is suggested to use configuration files or environment variables so that the same code may run seamlessly in multiple environments. Production and development for instance. go-ovh supports two forms of authentication: - OAuth2, using scopped service accounts, and compatible with OVHcloud IAM - application key & application secret & consumer key OAuth2 First, you need to generate a pair of valid client id and client secret : you can proceed by following this documentation Once you have retrieved your client id and client secret , you can create and edit a configuration file that will be used by go-ovh . The client will successively attempt to locate this configuration file in 1. Current working directory: ./ovh.conf 2. Current user's home directory: /.ovh.conf 3. System wide configuration: /etc/ovh.conf Depending on the API you want to use, you may set the endpoint to: ovh-eu for OVHcloud Europe API ovh-us for OVHcloud US API ovh-ca for OVHcloud Canada ","default_branch":null,"files":null,"tree":[],"storefront":"/r/ovh","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ovh/go-ovh/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}