{"id":18589371,"url":"https://github.com/pmorie/osb-broker-lib","last_synced_at":"2025-04-10T15:31:03.712Z","repository":{"id":53455709,"uuid":"122767124","full_name":"pmorie/osb-broker-lib","owner":"pmorie","description":"A go library for developing an Open Service Broker","archived":false,"fork":false,"pushed_at":"2021-03-30T10:45:48.000Z","size":345,"stargazers_count":28,"open_issues_count":19,"forks_count":23,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-24T22:51:19.355Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pmorie.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":"2018-02-24T18:23:03.000Z","updated_at":"2024-07-13T12:42:28.000Z","dependencies_parsed_at":"2022-08-26T09:31:57.748Z","dependency_job_id":null,"html_url":"https://github.com/pmorie/osb-broker-lib","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmorie%2Fosb-broker-lib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmorie%2Fosb-broker-lib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmorie%2Fosb-broker-lib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmorie%2Fosb-broker-lib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pmorie","download_url":"https://codeload.github.com/pmorie/osb-broker-lib/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248243452,"owners_count":21071054,"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":"2024-11-07T00:51:52.045Z","updated_at":"2025-04-10T15:31:03.051Z","avatar_url":"https://github.com/pmorie.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `osb-broker-lib`\n\n[![Build Status](https://travis-ci.org/pmorie/osb-broker-lib.svg?branch=master)](https://travis-ci.org/pmorie/osb-broker-lib \"Travis\")\n[![Go Report Card](https://goreportcard.com/badge/github.com/pmorie/osb-broker-lib)](https://goreportcard.com/report/github.com/pmorie/osb-broker-lib)\n[![Godoc documentation](https://img.shields.io/badge/godoc-documentation-blue.svg)](https://godoc.org/github.com/pmorie/osb-broker-lib/pkg)\n\nA go library for developing an [Open Service\nBroker](https://github.com/openservicebrokerapi/servicebroker), using the\n[`pmorie/go-open-service-broker-client`](https://github.com/pmorie/go-open-service-broker-client)\nOSB client library types. This project was originally created as part of the\n[OSB Starter Pack](https://github.com/pmorie/osb-starter-pack) project.\n\n## Who should use this library?\n\nThis library is most useful if you want to build your own broker from scratch\nand use it in a project just the way you want. If you're looking for an\nopinionated quickstart to easily start iterating on a new broker you should\ninstead check out the [OSB Starter\nPack](https://github.com/pmorie/osb-starter-pack).\n\n## Example: serving broker catalog\n\n```go\nimport (\n    osb \"github.com/pmorie/go-open-service-broker-client/v2\"\n    broker \"github.com/pmorie/osb-broker-lib/pkg/\"\n\n    \"gopkg.in/yaml.v2\"\n)\n\ntype MyBroker struct {\n    // internal state goes here\n}\n\nfunc (b *MyBroker) GetCatalog(ctx *broker.RequestContext) (*osb.CatalogResponse, error) {\n    response := \u0026osb.CatalogResponse{}\n\n    data := `\n---\nservices:\n- name: example-service\n  id: 4f6e6cf6-ffdd-425f-a2c7-3c9258ad246e\n  description: The example service!\n  bindable: true\n  metadata:\n    displayName: \"Example service\"\n    imageUrl: https://avatars2.githubusercontent.com/u/19862012?s=200\u0026v=4\n  plans:\n  - name: default\n    id: 86064792-7ea2-467b-af93-ac9694d96d5c\n    description: The default plan for the service\n    free: true\n`\n\n    err := yaml.Unmarshal([]byte(data), \u0026response)\n    if err != nil {\n        return nil, err\n    }\n\n    return response, nil\n}\n```\n\n## Goals\n\n- Provide a simple, composable way to implement the OSB API\n\n## Current Status\n\nCurrently this library is used on the [OSB Starter\nPack](https://github.com/pmorie/osb-starter-pack) project.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpmorie%2Fosb-broker-lib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpmorie%2Fosb-broker-lib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpmorie%2Fosb-broker-lib/lists"}