{"id":28578233,"url":"https://github.com/digitalocean/go-metadata","last_synced_at":"2026-03-16T19:02:59.063Z","repository":{"id":1552900,"uuid":"42664559","full_name":"digitalocean/go-metadata","owner":"digitalocean","description":"Go client for the metadata API.","archived":false,"fork":false,"pushed_at":"2025-01-29T10:03:19.000Z","size":19,"stargazers_count":27,"open_issues_count":0,"forks_count":6,"subscribers_count":175,"default_branch":"master","last_synced_at":"2025-01-29T11:20:03.011Z","etag":null,"topics":[],"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/digitalocean.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-09-17T15:30:08.000Z","updated_at":"2025-01-29T10:03:24.000Z","dependencies_parsed_at":"2025-01-29T11:20:19.519Z","dependency_job_id":"bbca83cd-56ca-4374-a370-658b0d416b99","html_url":"https://github.com/digitalocean/go-metadata","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalocean%2Fgo-metadata","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalocean%2Fgo-metadata/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalocean%2Fgo-metadata/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalocean%2Fgo-metadata/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/digitalocean","download_url":"https://codeload.github.com/digitalocean/go-metadata/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalocean%2Fgo-metadata/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259178543,"owners_count":22817388,"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":[],"created_at":"2025-06-11T01:09:17.910Z","updated_at":"2026-03-16T19:02:59.050Z","avatar_url":"https://github.com/digitalocean.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# metadata [![Documentation](https://godoc.org/github.com/digitalocean/go-metadata?status.svg)](https://godoc.org/github.com/digitalocean/go-metadata)\n\nA Go client to interact with the [DigitalOcean Metadata API](https://developers.digitalocean.com/documentation/metadata/).\n\n# Usage\n\n```go\n// Create a client\nclient := metadata.NewClient(opts)\n\n// Request all the metadata about the current droplet\nall, err := client.Metadata()\nif err != nil {\n    log.Fatal(err)\n}\n\n// Lookup what our IPv4 address is on our first public\n// network interface.\npublicIPv4Addr := all.Interfaces[\"public\"][0].IPv4.IPAddress\n\nfmt.Println(publicIPv4Addr)\n```\n\n# License\n\nMIT license\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigitalocean%2Fgo-metadata","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdigitalocean%2Fgo-metadata","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigitalocean%2Fgo-metadata/lists"}