{"id":22736604,"url":"https://github.com/fredwangwang/bosh-plugin","last_synced_at":"2025-03-30T02:44:14.984Z","repository":{"id":129385001,"uuid":"202750422","full_name":"fredwangwang/bosh-plugin","owner":"fredwangwang","description":"Plugin Manager Bosh release enables hosting simple tasks outside of cloud foundry","archived":false,"fork":false,"pushed_at":"2019-08-19T00:31:32.000Z","size":3677,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-05T05:22:55.467Z","etag":null,"topics":["bosh","plugin-manager"],"latest_commit_sha":null,"homepage":"","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/fredwangwang.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":"2019-08-16T15:14:52.000Z","updated_at":"2019-09-30T20:04:55.000Z","dependencies_parsed_at":"2023-04-04T04:47:25.428Z","dependency_job_id":null,"html_url":"https://github.com/fredwangwang/bosh-plugin","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/fredwangwang%2Fbosh-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fredwangwang%2Fbosh-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fredwangwang%2Fbosh-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fredwangwang%2Fbosh-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fredwangwang","download_url":"https://codeload.github.com/fredwangwang/bosh-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246269911,"owners_count":20750319,"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":["bosh","plugin-manager"],"created_at":"2024-12-10T21:27:56.615Z","updated_at":"2025-03-30T02:44:14.963Z","avatar_url":"https://github.com/fredwangwang.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## What\nPlugin manager is a lightweight application (plugin) hosting platform enables running small workload\noutside of cloud foundry without creating dedicated vms for each workload.\n\n## API\nNote: all the api endpoints under `/api/v1` require authentication\n\n- GET `/health` health check endpoint for plugin manager, returns HTTP 200\n\n- GET `/api/v1/plugins` list all plugins currently installed  \n  ```\n  $ curl -H \"Authorization: $(cf oauth-token) https://host:port/api/v1/plugins\"\n  [\n    {\n      \"Name\": \"sample-plugin\",\n      \"Description\": \"description for sample plugin!\",\n      \"Location\": \"sample-plugin\",\n      \"Enabled\": true,\n      \"Env\": {\n        \"PORT\": \"4321\"\n      },\n      \"Arg\": [\n        \"thisisanexample\"\n      ],\n      \"AdditionalEnv\": {\n        \"METRON_CA_CERT_PATH\": \"/var/vcap/jobs/sample-plugin/config/metron_ca_cert.pem\",\n        \"METRON_CERT_PATH\": \"/var/vcap/jobs/sample-plugin/config/metron_cert.pem\",\n        \"METRON_KEY_PATH\": \"/var/vcap/jobs/sample-plugin/config/metron_cert.key\"\n      },\n      \"PendingEnv\": {}\n    }\n  ]\n  ```\n\n- POST `/api/v1/plugins` upload the plugin to plugin manager and enable the plugin \n  ```\n  $ curl -H \"Authorization: $(cf oauth-token)\" -F 'file=@example/sample-plugin.zip' https://host:port/api/v1/plugins\n  {\"message\":\"plugin uploaded successfully\"}\n  ```\n\n- GET `/api/v1/plugins/:name` get the details of a plugin\n\n- PATCH `/api/v1/plugins/:name` update configuration (environment variable) for the plugin\n  ```\n  curl -H \"Authorization: $(cf oauth-token)\" -X PATCH https://host:port/api/v1/plugins/sample-plugin?GREETING=hi\n  \"config applied, need to disable/enable the plugin to see the effect\"\n  ```\n\n- DELETE `/api/v1/plugins/:name` delete the plugin from plugin-manager\n\n- POST `/api/v1/plugins/:name/enable` enable the plugin\n\n- POST `/api/v1/plugins/:name/disable` disable the plugin\n\n\n## Reference:\nBOSH VM: https://bosh.io/docs/vm-config/\nBPM: https://github.com/cloudfoundry/bpm-release/blob/master/docs/config.md\nMonit: https://mmonit.com/monit/documentation/monit.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffredwangwang%2Fbosh-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffredwangwang%2Fbosh-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffredwangwang%2Fbosh-plugin/lists"}