{"id":22213949,"url":"https://github.com/xmlking/config-plane","last_synced_at":"2025-03-25T06:23:51.368Z","repository":{"id":142313621,"uuid":"371727416","full_name":"xmlking/config-plane","owner":"xmlking","description":"Push config changes to all subscribing clients","archived":false,"fork":false,"pushed_at":"2021-05-28T18:34:32.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-30T05:43:17.719Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xmlking.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2021-05-28T14:29:54.000Z","updated_at":"2021-05-28T18:34:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"02b082d2-7f41-48f9-b2a2-be3678e9b626","html_url":"https://github.com/xmlking/config-plane","commit_stats":{"total_commits":2,"total_committers":1,"mean_commits":2.0,"dds":0.0,"last_synced_commit":"2ad0a8df4dbc6f3a3a06a784df0dd6cc286bc1fa"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xmlking%2Fconfig-plane","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xmlking%2Fconfig-plane/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xmlking%2Fconfig-plane/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xmlking%2Fconfig-plane/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xmlking","download_url":"https://codeload.github.com/xmlking/config-plane/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245409522,"owners_count":20610542,"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-12-02T21:12:42.931Z","updated_at":"2025-03-25T06:23:51.343Z","avatar_url":"https://github.com/xmlking.png","language":"Go","readme":"# config-plane\n\nPush config changes to all subscribing clients\n\n## Requirements\n\n- [ ] Provider source plugins (GitHub, Filesystem, database)\n- [ ] Implement as Kubernetes Operator\n- [ ] Management Dashboard (view subscribers, providers, current config set)\n- [ ] Log config changes  to changelog file\n- [ ] expose gRPC API to pull/push/stream config changes\n\n## Client\n\n```go\nctx := context.Background()\nclient, err := config.NewClient(ctx, \"config-plane-url\")\nif err != nil {\n        return fmt.Errorf(\"config.NewClient: %v\", err)\n}\ndefer client.Close()\n\nvar mu sync.Mutex\nvar changelog []string\n\nsub := client.Subscription(\"/config/**/*\")\ncctx, cancel := context.WithCancel(ctx)\n\nerr = sub.Receive(cctx, func(ctx context.Context, cSet []string) {\n        mu.Lock()\n        defer mu.Unlock()\n        fmt.Fprintf(w, \"Got changeset: %v\\n\", cSet)\n\n        // do something with changes \n        changelog = append(changelog, cSet) \n        // cancel when don't needed\n        // cancel()\n    })\n\nif err != nil {\n    fmt.Errorf(\"Receive: %v\", err)\n}\n\nfmt.Fprintf(w, \"changelog: %v\\n\", changelog)\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxmlking%2Fconfig-plane","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxmlking%2Fconfig-plane","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxmlking%2Fconfig-plane/lists"}