{"id":21988149,"url":"https://github.com/transip/gotransip","last_synced_at":"2025-04-05T03:12:12.400Z","repository":{"id":46560476,"uuid":"149408903","full_name":"transip/gotransip","owner":"transip","description":"TransIP API client for Go","archived":false,"fork":false,"pushed_at":"2024-08-23T09:07:15.000Z","size":643,"stargazers_count":30,"open_issues_count":5,"forks_count":14,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-03-29T02:06:56.050Z","etag":null,"topics":["api","golang","transip","transip-api-v6"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/transip.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-09-19T07:19:35.000Z","updated_at":"2025-02-21T07:23:19.000Z","dependencies_parsed_at":"2022-09-12T02:20:38.625Z","dependency_job_id":"5be24cf9-670b-4b4a-91b0-7f919a9ceaf2","html_url":"https://github.com/transip/gotransip","commit_stats":{"total_commits":119,"total_committers":20,"mean_commits":5.95,"dds":0.6302521008403361,"last_synced_commit":"d4731544b6e063fa52c5f194ff2b81521cb4abea"},"previous_names":[],"tags_count":43,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/transip%2Fgotransip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/transip%2Fgotransip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/transip%2Fgotransip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/transip%2Fgotransip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/transip","download_url":"https://codeload.github.com/transip/gotransip/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247280272,"owners_count":20912967,"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","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","golang","transip","transip-api-v6"],"created_at":"2024-11-29T19:15:59.379Z","updated_at":"2025-04-05T03:12:12.378Z","avatar_url":"https://github.com/transip.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gotransip - TransIP API client for Go\n[![Go Report Card](https://goreportcard.com/badge/github.com/transip/gotransip)][goreport] [![Documentation](https://godoc.org/github.com/transip/gotransip?status.svg)][doc]\n\nThis is the Go client for the [TransIP API][api]. To use it you need an account with [TransIP][transip], enable API usage and setup a private API key.\n\n**NOTE**: We keep the PHP version and golang version close as possible, but if something is not working 100% like you'd expect, please open an issue and of course: you're welcome to [contribute](CONTRIBUTING.md)!\n\n## Example usage\nTo print a list of your account's VPSes:\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"github.com/transip/gotransip/v6\"\n\t\"github.com/transip/gotransip/v6/vps\"\n)\n\nfunc main() {\n\t// create a new TransIP API client\n\tclient, err := gotransip.NewClient(gotransip.ClientConfiguration{\n\t\tAccountName:    \"accountName\",\n\t\tPrivateKeyPath: \"/path/to/api/private.key\",\n\t})\n\tif err != nil {\n\t\tpanic(err.Error())\n\t}\n\tvpsRepo := vps.Repository{Client: client}\n\n\t// get a list of your VPSes\n\tvpss, err := vpsRepo.GetAll()\n\tif err != nil {\n\t\tpanic(err.Error())\n\t}\n\n\tpnRepo := vps.PrivateNetworkRepository{Client: client}\n\t// get a list of your private networks\n\tpns, err := pnRepo.GetAll()\n\tif err != nil {\n\t\tpanic(err.Error())\n\t}\n\n\t// print name and description for each VPS\n\tfor _, v := range vpss {\n\t\tfmt.Printf(\"vps: %s (%s)\\n\", v.Name, v.Description)\n\t}\n\n\t// print name and description for each private network\n\tfor _, pn := range pns {\n\t\tfmt.Printf(\"privatenetwork: %s (%s)\\n\", pn.Name, pn.Description)\n\t}\n\n\t// order a new ubuntu 18.04 x8 vps, specifying a custom description,\n\t// so we can find out when the vps is delivered\n\terr = vpsRepo.Order(vps.Order{\n\t\tProductName:       \"vps-bladevps-x8\",\n\t\tOperatingSystem:   \"ubuntu-18.04\",\n\t\tAvailabilityZone:  \"ams0\",\n\t\tHostname:          \"webserver01\",\n\t\tDescription:       \"my-unique-description\",\n\t})\n\tif err != nil {\n\t\tpanic(err.Error())\n\t}\n}\n```\n\n## Documentation\nFor detailed descriptions of all functions, check out the [TransIP API documentation][apidoc]. Details about the usage of the Go client can be found on [pkg.go.dev][doc].\n\n[transip]: https://transip.nl/\n[api]: https://api.transip.nl/\n[doc]: https://pkg.go.dev/github.com/transip/gotransip/v6?tab=doc\n[apidoc]: https://api.transip.nl/rest/docs.html\n[goreport]: https://goreportcard.com/report/github.com/transip/gotransip","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftransip%2Fgotransip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftransip%2Fgotransip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftransip%2Fgotransip/lists"}