{"id":22735781,"url":"https://github.com/pivotal-cf/go-pivnet","last_synced_at":"2025-03-22T01:06:08.248Z","repository":{"id":50022806,"uuid":"56250080","full_name":"pivotal-cf/go-pivnet","owner":"pivotal-cf","description":"A golang library for interacting with the Tanzu Network API V2 interface.","archived":false,"fork":false,"pushed_at":"2024-09-17T15:40:02.000Z","size":5393,"stargazers_count":11,"open_issues_count":5,"forks_count":17,"subscribers_count":25,"default_branch":"master","last_synced_at":"2025-03-14T02:05:38.857Z","etag":null,"topics":["internal-tool","library","tanzu-network"],"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/pivotal-cf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.adoc","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":"2016-04-14T15:45:23.000Z","updated_at":"2023-06-15T01:38:21.000Z","dependencies_parsed_at":"2024-06-18T16:53:57.944Z","dependency_job_id":"7ede5916-beae-4a25-8a60-8c2525aa2000","html_url":"https://github.com/pivotal-cf/go-pivnet","commit_stats":null,"previous_names":["pivotal-cf-experimental/go-pivnet"],"tags_count":83,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pivotal-cf%2Fgo-pivnet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pivotal-cf%2Fgo-pivnet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pivotal-cf%2Fgo-pivnet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pivotal-cf%2Fgo-pivnet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pivotal-cf","download_url":"https://codeload.github.com/pivotal-cf/go-pivnet/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244890092,"owners_count":20527033,"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":["internal-tool","library","tanzu-network"],"created_at":"2024-12-10T21:15:05.181Z","updated_at":"2025-03-22T01:06:08.222Z","avatar_url":"https://github.com/pivotal-cf.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![GoDoc](https://godoc.org/github.com/pivotal-cf/go-pivnet?status.svg)](https://godoc.org/github.com/pivotal-cf/go-pivnet)\n\n\n# go-pivnet API library\n\nA golang library for [Pivotal Network](https://network.tanzu.vmware.com).\n\n**NOTE**\nThis library is intended to be used by pivnet-cli and pivnet-resource. If you are using this library on its own, be aware of possible breaking changes following new releases of pivnet-cli/resource.\n\nSee also: [pivnet-cli](https://github.com/pivotal-cf/pivnet-cli)\nand [pivnet-resource](https://github.com/pivotal-cf/pivnet-resource).\n\n## Usage\n\nSee [example](https://github.com/pivotal-cf/go-pivnet/blob/master/example/main.go)\nfor an executable example.\n\n```go\nimport pivnet github.com/pivotal-cf/go-pivnet/v7\n\n[...]\n\nconfig := pivnet.ClientConfig{\n  Host:      pivnet.DefaultHost,\n  Token:     \"token-from-pivnet\",\n  UserAgent: \"user-agent\",\n}\n\nstdoutLogger := log.New(os.Stdout, \"\", log.LstdFlags)\nstderrLogger := log.New(os.Stderr, \"\", log.LstdFlags)\n\nverbose := false\nlogger := logshim.NewLogShim(stdoutLogger, stderrLogger, verbose)\n\nclient := pivnet.NewClient(config, logger)\n\nproducts, _ := client.Products.List()\n\nfmt.Printf(\"products: %v\", products)\n```\n\n### Running the tests\n\nInstall the ginkgo executable with:\n\n```\ngo get -u github.com/onsi/ginkgo/ginkgo\n```\n\nThe tests require a valid Pivotal Network API token and host.\n\nRefer to the\n[official docs](https://network.tanzu.vmware.com/docs/api#how-to-authenticate)\nfor more details on obtaining a Pivotal Network API token.\n\nIt is advised to run the acceptance tests against the Pivotal Network integration\nenvironment endpoint i.e. `HOST='https://pivnet-integration.cfapps.io'`.\n\nRun the tests with the following command:\n\n```\nAPI_TOKEN=my-token \\\nHOST='https://pivnet-integration.cfapps.io' \\\n./bin/test_all\n```\n\n**NOTE**\n - If dependencies are not correct, the tests may not run correctly. You will have to run `GO111MODULE=on go mod vendor` first in this case.\n\n### Contributing\n\nPlease make all pull requests to the `develop` branch, and\n[ensure the tests pass locally](https://github.com/pivotal-cf/go-pivnet#running-the-tests).\n\n### Project management\n\nThe CI for this project can be found\n[here](https://p-concourse.wings.cf-app.com/teams/system-team-pivnet-resource-pivnet-resource-657d)\nand the scripts can be found in the\n[pivnet-resource-ci repo](https://github.com/pivotal-cf/pivnet-resource-ci).\n\nThe roadmap is captured in [Pivotal Tracker](https://www.pivotaltracker.com/projects/1474244).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpivotal-cf%2Fgo-pivnet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpivotal-cf%2Fgo-pivnet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpivotal-cf%2Fgo-pivnet/lists"}