{"id":22725415,"url":"https://github.com/ovotech/go-sync","last_synced_at":"2026-03-01T05:35:30.432Z","repository":{"id":60720259,"uuid":"534580973","full_name":"ovotech/go-sync","owner":"ovotech","description":"Go library for synchronising all the things","archived":false,"fork":false,"pushed_at":"2025-07-14T14:34:25.000Z","size":1285,"stargazers_count":12,"open_issues_count":7,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-03T00:08:45.752Z","etag":null,"topics":["company-ovo"],"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/ovotech.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-09-09T09:31:57.000Z","updated_at":"2025-06-17T09:46:50.000Z","dependencies_parsed_at":"2024-04-23T12:46:51.340Z","dependency_job_id":"b0bcfb37-5e08-4673-8b6e-4746356ab76f","html_url":"https://github.com/ovotech/go-sync","commit_stats":{"total_commits":291,"total_committers":8,"mean_commits":36.375,"dds":"0.38144329896907214","last_synced_commit":"2280c262f55701f6b65c9b1338ebe790780efbe8"},"previous_names":[],"tags_count":108,"template":false,"template_full_name":null,"purl":"pkg:github/ovotech/go-sync","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ovotech%2Fgo-sync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ovotech%2Fgo-sync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ovotech%2Fgo-sync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ovotech%2Fgo-sync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ovotech","download_url":"https://codeload.github.com/ovotech/go-sync/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ovotech%2Fgo-sync/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29960444,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T01:47:18.291Z","status":"online","status_checked_at":"2026-03-01T02:00:07.437Z","response_time":124,"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":["company-ovo"],"created_at":"2024-12-10T16:10:21.824Z","updated_at":"2026-03-01T05:35:30.391Z","avatar_url":"https://github.com/ovotech.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"| **⚠️ Go Sync is under active development and subject to breaking changes.** |\n|-----------------------------------------------------------------------------|\n\n# Go Sync (all the things)\n\n\u003cdiv align=\"center\"\u003e\n\n[![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/ovotech/go-sync?label=go\u0026logo=go)](go.mod)\n[![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/ovotech/go-sync)](https://github.com/ovotech/go-sync/releases)\n[![Go Report Card](https://goreportcard.com/badge/github.com/ovotech/go-sync?style=flat)](https://goreportcard.com/report/github.com/ovotech/go-sync)\n[![Go Reference](https://pkg.go.dev/badge/github.com/ovotech/go-sync.svg)](https://pkg.go.dev/github.com/ovotech/go-sync)\n[![Test Status](https://github.com/ovotech/go-sync/actions/workflows/test.yml/badge.svg)](https://github.com/ovotech/go-sync/actions/workflows/test.yml)\n[![GitHub issues](https://img.shields.io/github/issues/ovotech/go-sync?style=flat)](https://github.com/ovotech/go-sync/issues)\n[![GitHub pull requests](https://img.shields.io/github/issues-pr/ovotech/go-sync?label=pull+requests\u0026style=flat)](https://github.com/ovotech/go-sync/pull-requests)\n[![License](https://img.shields.io/github/license/ovotech/go-sync?style=flat)](/LICENSE)\n\n\u003c/div\u003e\n\n![Summary of Go-Sync](assets/sync-architecture.png)\n\nYou have people*. You have places you want them to be. Go Sync makes it happen.\n\n_* Doesn't have to be people._\n\n## Installation\n\n```shell\ngo get github.com/ovotech/go-sync@latest\n\n# Then get the adapters you need.\ngo get github.com/ovotech/go-sync/adapters/slack@latest\n```\n\nYou're ready to Go Sync! 🎉\n\n## Usage\n\nRead the [documentation on `pkg.go.dev`](https://pkg.go.dev/github.com/ovotech/go-sync).\n\nGo Sync consists of two fundamental parts:\n\n1. [Sync](#sync-)\n2. [Adapters](#adapters-)\n\nAs long as your adapters are compatible, you can synchronise anything.\n\n```go\n// Create an adapter using the recommended method.\nclient := service.New(\"some-token\")\nsource := myAdapter.New(client, \"some-value\")\n\n// Initialise an adapter using an Init function.\ndestination, err := myAdapter.Init(map[gosync.ConfigKey]string{\n\tmyAdapter.Token:     \"some-token\",\n\tmyAdapter.Something: \"some-value\",\n})\nif err != nil {\n\tlog.Fatal(err)\n}\n\nsync := gosync.New(source)\n\nerr := sync.SyncWith(context.Background(), destination)\nif err != nil {\n\tlog.Fatal(err)\n}\n```\n\n### Init\n\nWhile we recommend using `New` to create an adapter in most cases, some plugins may provide an `Init` function for\ninstantiating them too. Init functions are intended for programmatically creating adapters either via environment\nvariables or some other dynamic configuration.\n\n## Sync 🔄\n\nSync is the logic that powers the automation. It accepts a source adapter, and synchronises it with destination\nadapters.\n\nSync is only uni-directional by design. You know where your things are, and where you want them to be. It works by:\n\n1. Get a list of things in your source service.\n   1. Cache it, so you're not calling your source service more than you have to.\n2. Get a list of things in your destination service.\n3. Add the things that are missing.\n4. Remove the things that shouldn't be there.\n5. Repeat from 2 for further adapters.\n\n## [Adapters](./adapters) 🔌\n\nAdapters provide a common interface to services.\nAdapters must implement our [Adapter interface](https://pkg.go.dev/github.com/ovotech/go-sync#Adapter) and functionally\nperform 3 things:\n\n1. Get the things.\n2. Add some things.\n3. Remove some things.\n\nThese things can be anything, but we recommend email addresses. There's no point trying to sync a Slack User ID with a\nGitHub user! 🙅\n\nCan't find an adapter you're looking for? [Why not write your own! ✨](/CONTRIBUTING.md)\n\n### Made with 💚 by OVO Energy's DevEx team\n\n\u003cdiv\u003e\n\n![DevEx](./assets/devex.png)\n![Platforms](./assets/platforms.png)\n![Tools](./assets/tools.png)\n![Golden Paths](./assets/golden-paths.png)\n![Guard Rails](./assets/guard-rails.png)\n![For You](./assets/for-you.png)\n\n\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fovotech%2Fgo-sync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fovotech%2Fgo-sync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fovotech%2Fgo-sync/lists"}