{"id":19485218,"url":"https://github.com/erigones/godanube","last_synced_at":"2025-10-04T10:54:03.753Z","repository":{"id":57521991,"uuid":"249255929","full_name":"erigones/godanube","owner":"erigones","description":"Go client for Danube Cloud","archived":false,"fork":false,"pushed_at":"2020-09-30T15:19:03.000Z","size":124,"stargazers_count":0,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-04T10:54:03.473Z","etag":null,"topics":["api-client","danube","danubecloud","go","hacktoberfest"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/erigones.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-22T19:22:14.000Z","updated_at":"2023-07-27T05:48:45.000Z","dependencies_parsed_at":"2022-08-26T23:40:59.742Z","dependency_job_id":null,"html_url":"https://github.com/erigones/godanube","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/erigones/godanube","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erigones%2Fgodanube","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erigones%2Fgodanube/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erigones%2Fgodanube/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erigones%2Fgodanube/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/erigones","download_url":"https://codeload.github.com/erigones/godanube/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erigones%2Fgodanube/sbom","scorecard":{"id":380854,"data":{"date":"2025-08-11","repo":{"name":"github.com/erigones/godanube","commit":"2be7981280257bd470c2251135b3b550e0e94c8e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/21 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Mozilla Public License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-18T15:24:24.303Z","repository_id":57521991,"created_at":"2025-08-18T15:24:24.304Z","updated_at":"2025-08-18T15:24:24.304Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278302561,"owners_count":25964520,"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-10-04T02:00:05.491Z","response_time":63,"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":["api-client","danube","danubecloud","go","hacktoberfest"],"created_at":"2024-11-10T20:26:17.433Z","updated_at":"2025-10-04T10:54:03.724Z","avatar_url":"https://github.com/erigones.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# godanube\n\n`godanube` is a Go client for Danube Cloud\n\n\u003c!-- markdown-toc start - Don't edit this section. Run M-x markdown-toc-generate-toc again --\u003e\n**Table of Contents**\n\n- [godanube](#godanube)\n    - [Usage](#usage)\n    - [Developing](#developing)\n    - [License](#license)\n\n\u003c!-- markdown-toc end --\u003e\n\n## Usage\n\nTo create a client `*cloudapi.Client` you'll need:\n\n- API key for Danube Cloud account (GUI: Profile -\u003e API Keys)\n- URL for the Danube Cloud installation (e.g. `https://1.2.3.4/api/` or `https://console.danube.cloud/api/`)\n- Name of the [virtual datacenter](https://docs.danubecloud.org/user-guide/gui/datacenters/datacenters.html) (default is `main`). You can switch the virtual datacenter also later on.\n\nNow you can initialize a client with the following:\n\n```go\npackage main\n\nimport (\n\t\"io/ioutil\"\n\t\"log\"\n\t\"os\"\n\n\t\"github.com/erigones/gocommon/client\"\n\t\"github.com/erigones/godanube/cloudapi\"\n\t\"github.com/erigones/gosign/auth\"\n)\n\nfunc getclient(apiKey string, virtDc string, endpointUrl string) (*cloudapi.Client, error) {\n\tuserAuth, err := auth.NewAuth(\"\", \"\", apiKey)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tcreds := \u0026auth.Credentials{\n\t\tUserAuthentication: userAuth,\n\t\tApiEndpoint:        auth.Endpoint{URL: endpointUrl},\n\t\tVirtDatacenter:\t\tvdc,\n\t}\n\n\treturn cloudapi.New(client.NewClient(\n\t\tcreds,\n\t\tcloudapi.DefaultAPIVersion,\n\t\tlog.New(os.Stderr, \"\", log.LstdFlags),\n\t)), nil\n}\n\nfunc main() {\n\tvar c *cloudapi.Client\n\tbaseUrl := \"https://10.100.10.162:443/api/\"\n\tc, _ = myclient(\"5996d65ce6963eb722ae667647517613\", \"main\", baseUrl)\n\n\tresp, err := c.ListMachines()\n\n\tif(err != nil) {\n\t\tfmt.Println(\"error:\" + err.Error())\n\t\treturn\n\t}\n\tif len(resp) \u003e 0 {\n\t\tfmt.Printf(\"The first machine is %s', resp[0])\n\t}\n}\n\n```\n\n## Contributing\n\nReport bugs and request features using [GitHub Issues](https://github.com/erigones/godanube/issues), or contribute code via a [GitHub Pull Request](https://github.com/erigones/godanube/pulls). Changes will be code reviewed before merging.\n\n\n## Developing\n\nThis library assumes a Go development environment setup based on [How to Write Go Code](https://golang.org/doc/code.html). Your GOPATH environment variable should be pointed at your workspace directory.\n\nYou can now use `go get github.com/erigones/godanube` to install the repository to the correct location, but if you are intending on contributing back a change you may want to consider cloning the repository via git yourself. \n\nYou can have create a `go.mod` file inside your project that will redirect the github repositories to your local filesytem. You don't need to have your project inside a `GOPATH`.\n\nFor example your directory tree might look like:\n\n```\n~/devel/\n|_ godanube/\t\t// cloned godanube repo\n|_ myproject/\t\t// your project\n   |_ main.go\n   |_ go.mod\n```\n\nAnd this is an example of `go.mod` file for this layout:\n```\nmodule main\nrequire github.com/erigones/godanube v0.0.0\nrequire github.com/erigones/godanube/client v0.0.0\nrequire github.com/erigones/godanube/errors v0.0.0\nrequire github.com/erigones/godanube/testing v0.0.0\nrequire github.com/erigones/godanube/cloudapi v0.0.0\nrequire github.com/erigones/godanube/localservices v0.0.0\nrequire github.com/erigones/godanube/localservices/hook v0.0.0\nrequire github.com/erigones/godanube/auth v0.0.0\nreplace github.com/erigones/godanube/client =\u003e ../godanube/client\nreplace github.com/erigones/godanube/errors =\u003e ../godanube/errors\nreplace github.com/erigones/godanube/testing =\u003e ../godanube/testing\nreplace github.com/erigones/godanube/cloudapi =\u003e ../godanube/cloudapi\nreplace github.com/erigones/godanube/localservices =\u003e ../godanube/localservices\nreplace github.com/erigones/godanube/localservices/hook =\u003e ../godanube/localservices/hook\nreplace github.com/erigones/godanube =\u003e ../godanube\nreplace github.com/erigones/godanube/auth =\u003e ../godanube/auth\n```\n\n### Build the Library\n\n```\ncd ${GOPATH}/src/github.com/erigones/godanube\ngo build ./...\n```\n\n## License\n\ngodanube is licensed under the Mozilla Public License Version 2.0, a copy of which\nis available at [LICENSE](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferigones%2Fgodanube","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferigones%2Fgodanube","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferigones%2Fgodanube/lists"}