{"id":30298026,"url":"https://github.com/leopardslab/gocloud","last_synced_at":"2025-08-17T04:03:30.123Z","repository":{"id":93057675,"uuid":"108558363","full_name":"leopardslab/gocloud","owner":"leopardslab","description":"☁️ Go API for open cloud","archived":false,"fork":false,"pushed_at":"2020-01-13T13:22:57.000Z","size":1815,"stargazers_count":120,"open_issues_count":19,"forks_count":142,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-08-14T12:25:47.283Z","etag":null,"topics":["aws","azure","cloud","golang","google-cloud"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leopardslab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2017-10-27T14:46:59.000Z","updated_at":"2024-12-25T07:51:13.000Z","dependencies_parsed_at":"2023-06-18T12:32:07.285Z","dependency_job_id":null,"html_url":"https://github.com/leopardslab/gocloud","commit_stats":null,"previous_names":["cloudlibz/gocloud"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/leopardslab/gocloud","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leopardslab%2Fgocloud","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leopardslab%2Fgocloud/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leopardslab%2Fgocloud/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leopardslab%2Fgocloud/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leopardslab","download_url":"https://codeload.github.com/leopardslab/gocloud/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leopardslab%2Fgocloud/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270803621,"owners_count":24648707,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-17T02:00:09.016Z","response_time":129,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","azure","cloud","golang","google-cloud"],"created_at":"2025-08-17T04:01:28.726Z","updated_at":"2025-08-17T04:03:30.102Z","avatar_url":"https://github.com/leopardslab.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"![GoCloud Logo](assets/logo.png)\n\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/0fce581810a6420aaca4ba6757c54529)](https://www.codacy.com/app/cloudlibz/gocloud?utm_source=github.com\u0026utm_medium=referral\u0026utm_content=cloudlibz/gocloud\u0026utm_campaign=Badge_Grade)\n[![Build Status](https://travis-ci.org/cloudlibz/gocloud.svg?branch=master)](https://travis-ci.org/cloudlibz/gocloud)\n[![Gitter](https://img.shields.io/badge/chat-on%20gitter-ff006f.svg?style=flat-square)](https://gitter.im/cloudlibz/gocloud)\n[![docs](https://camo.githubusercontent.com/df8e028288079a740c10e6cfaad2fa0e0c96014d/687474703a2f2f696d672e736869656c64732e696f2f62616467652f446f63732d6c61746573742d677265656e2e737667)](docs)\n\n# gocloud\n\nGoCloud is a golang library which hides the difference between different APIs provided by varied cloud providers (AWS, GCP, OpenStack etc.) and allows you to manage different cloud resources through a unified and easy to use API.\n\n\n\n\n\n\n\u003cimg src=\"assets/gocloudarchitecture_new.jpg\" width=\"650\"\u003e\n\n\n## Service Types\n\n**Compute** -- Allows you to manage cloud and virtual servers.\n\n**Compute Storage** -- Allows you to manage Compute storage.\n\n**Container** -- Allows users to install and deploy containers onto container based virtualization platforms.\n\n**Load balancer** -- Allows you to manager Load Balancer service.\n\n**DNS** -- Allows you to manage DNS service.\n\n## Service Providers\n\n### AWS\n\n* EC2 Compute [Link to example](examples/compute/ec2/ec2.md)\n* EC2 Storage [Link to example](examples/storage/aws_storage/aws_storage.md)\n* Amazon Elastic Container Service (Container) [Link to example](examples/container/aws_container/aws_container.md)\n* Elastic Load Balancing [Link to example](examples/loadbalancer/aws_loadbalancer/aws_loadbalancer.md)\n* AWS Route53 (DNS) [Link to example](examples/dns/aws_route53/aws_route53.md)\n\n### Google\n\n* Google Compute [Link to example](examples/compute/gce/gce.md)\n* Google Compute Storage [Link to example](examples/storage/google_storage/google_storage.md)\n* Google Container Service (Container) [Link to example](examples/container/google_container/google_container.md)\n* Google Elastic Load Balancing [Link to example](examples/loadbalancer/google_loadbalancer/google_loadbalancer.md)\n* Google DNS [Link to example](examples/dns/google_dns/google_dns.md)\n\n### DigitalOcean\n\n* DigitalOcean Droplet [Link to example](examples/compute/droplet/droplet.md)\n* DigitalOcean LoadBalancer [Link to example](examples/loadbalancer/digiocean_loadbalancer/digiocean_loadbalancer.md)\n* DigitalOcean Storage [Link to example](examples/storage/digiocean_storage/digiocean_storage.md)\n* DigitalOcean DNS [Link to example](examples/dns/digioceandns/digioceandns.md)\n\n### Ali-cloud\n\n* ECS Compute [Link to example](examples/compute/ecs/ecs.md)\n* ECS Storage [Link to example](examples/storage/ali_storage/ali_storage.md)\n* Alibaba Cloud DNS [Link to example](examples/dns/ali_dns/ali_dns.md)\n* Server Load Balancer [Link to example](examples/loadbalancer/ali_loadbalancer/ali_loadbalancer.md)\n* Container Service [Link to example](examples/container/ali_container/ali_container.md)\n\n### Vultr\n\n* Server [Link to example](examples/compute/vultr_compute/vultr_compute.md)\n* Bare Metal [Link to example](examples/baremetal/vultr_baremetal/vultr_baremetal.md)\n* Block Storage [Link to example](examples/storage/vultr_storage/vultr_storage.md)\n* DNS [Link to example](examples/dns/vultr_dns/vultr_dns.md)\n\nCurrently, implementations for other cloud providers are being worked on.\n\n## Install\n\n### Linux (Ubuntu)\n\n1. Install golang.  \n   ```\n   $ sudo apt-get update -y\n   $ sudo apt-get install golang -y\n   ```\n\n2. Set GOPATH environment variable. Run `gedit ~/.bashrc`.  \n  Copy the following in your .bashrc file:\n  ```\n  export GOPATH=$HOME/gopath\n  export GOBIN=$HOME/gopath/bin\n  ```\n\n3. Test your installation by copying the following piece of code in a file. Save the file as *gotest.go*. Run the file using the command `go run gotest.go`. If that command returns “Hello World!”, then Go is successfully installed and functional.\n```golang\npackage main\nimport \"fmt\"\nfunc main() {\n    fmt.Printf(\"Hello World!\\n\")\n}\n```\n\n4. Now we need to fetch the gocloud repository and other necessary packages. Run the following commands in order:\n```\n$ go get github.com/cloudlibz/gocloud\n$ go get golang.org/x/oauth2\n$ go get cloud.google.com/go/compute/metadata\n```\n\n5. Create a directory called \u003cb\u003e.gocloud\u003c/b\u003e in your \u003cb\u003eHOME\u003c/b\u003e directory. Download your AWS, Google and DigitalOcean access credentials and store them in a file in your \u003cb\u003e.gocloud\u003c/b\u003e folder.\n\n   #### AWS:\n   Save your AWS credentials in a file named *amazoncloudconfig.json*.\n   ```js\n   {\n     \"AWSAccessKeyID\": \"xxxxxxxxxxxx\",\n     \"AWSSecretKey\": \"xxxxxxxxxxxx\"\n   }\n   ```\n   #### Google Cloud Services:\n   Save your Google Cloud credentials in a file named *googlecloudconfig.json*. The file is downloaded in the required format.\n   #### DigitalOcean:\n   Save your DigitalOcean credentials in a file named *digioceancloudconfig.json*.\n   ```js\n   {\n     \"DigiOceanAccessToken\": \"xxxxxxxxxxxx\"\n   }\n   ```\n   #### Ali-cloud:\n   Save your Ali-cloud credentials in a file named *alicloudconfig.json*.\n   ```js\n   {\n     \"AliAccessKeyID\":\"xxxxxxxxxxxx\",\n     \"AliAccessKeySecret\":\"xxxxxxxxxxxx\"\n   }\n   ```\n   #### Vultr:\n   Save your Vultr credentials in a file named *vultrconfig.json*.\n   ```\n   {\n     \"VultrAPIKey\":\"xxxxxxxxxxxx\"\n   }\n   ```\n\n   You can also set your credentials as environment variables.  \n   #### AWS:  \n   ```\n   export AWSAccessKeyID =  \"xxxxxxxxxxxx\"\n   export AWSSecretKey = \"xxxxxxxxxxxx\"\n   ```\n   #### Google Cloud Services:\n   ```\n   export PrivateKey =  \"xxxxxxxxxxxx\"\n   export Type =  \"xxxxxxxxxxxx\"\n   export ProjectID = \"xxxxxxxxxxxx\"\n   export PrivateKeyID = \"xxxxxxxxxxxx\"\n   export ClientEmail = \"xxxxxxxxxxxx\"\n   export ClientID = \"xxxxxxxxxxxx\"\n   export AuthURI = \"xxxxxxxxxxxx\"\n   export TokenURI = \"xxxxxxxxxxxx\"\n   export AuthProviderX509CertURL = \"xxxxxxxxxxxx\"\n   export ClientX509CertURL =  \"xxxxxxxxxxxx\"\n   ```\n   #### DigitalOcean:  \n   ```\n   export DigiOceanAccessToken =  \"xxxxxxxxxxxx\"\n   ```\n   #### Ali-cloud:\n   ```\n   export AliAccessKeyID =  \"xxxxxxxxxxxx\"\n   export AliAccessKeySecret =  \"xxxxxxxxxxxx\"\n   ```\n   #### Vultr:\n   ```\n   export VultrAPIKey =  \"xxxxxxxxxxxx\"\n   ```\n\n6. You are all set to use gocloud! Check out the following YouTube videos for more information and usage examples:\nhttps://youtu.be/4LxsAeoonlY?list=PLOdfztY25UNnxK_0KRRHSngJIyVLDKZxq\u0026t=3\n\n## Development setup\n\n```\n$ git clone https://github.com/cloudlibz/gocloud\n$ cd gocloud\n```\n\n## Unit tests\n\n```\n$ cd gocloud\n$ go test -v ./...\n```\n\n\u003cb\u003ePlease make sure to delete all your instances, storage blocks, load balancers, containers, and DNS settings once you run the tests by visiting the respective web portals of the cloud providers.\u003c/b\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleopardslab%2Fgocloud","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleopardslab%2Fgocloud","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleopardslab%2Fgocloud/lists"}