{"id":15877103,"url":"https://github.com/nlewo/consul-template-mock","last_synced_at":"2025-08-17T10:08:52.454Z","repository":{"id":55853432,"uuid":"138150740","full_name":"nlewo/consul-template-mock","owner":"nlewo","description":"Render `consul-template` templates without Consul  ","archived":false,"fork":false,"pushed_at":"2020-12-11T07:25:00.000Z","size":33,"stargazers_count":5,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-29T20:23:51.425Z","etag":null,"topics":["consul","consul-template","mock","testing","vault"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nlewo.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-06-21T09:41:24.000Z","updated_at":"2024-04-19T17:30:57.000Z","dependencies_parsed_at":"2022-08-15T07:50:58.974Z","dependency_job_id":null,"html_url":"https://github.com/nlewo/consul-template-mock","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nlewo/consul-template-mock","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nlewo%2Fconsul-template-mock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nlewo%2Fconsul-template-mock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nlewo%2Fconsul-template-mock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nlewo%2Fconsul-template-mock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nlewo","download_url":"https://codeload.github.com/nlewo/consul-template-mock/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nlewo%2Fconsul-template-mock/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270832735,"owners_count":24653607,"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","status":"online","status_checked_at":"2025-08-17T02:00:09.016Z","response_time":129,"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":["consul","consul-template","mock","testing","vault"],"created_at":"2024-10-06T02:01:23.483Z","updated_at":"2025-08-17T10:08:52.398Z","avatar_url":"https://github.com/nlewo.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/nlewo/consul-template-mock.svg?branch=master)](https://travis-ci.org/nlewo/consul-template-mock)\n\n`consul-template-mock` eats a JSON file to render a [`consul-template`](https://github.com/hashicorp/consul-template) template\nfor testing and development purposes.\n\n\n### Usage\n\n```\n$ consul-template-mock examples/trivial.tmpl examples/trivial.json\nRendered without Consul :/\n```\n\nwhere [examples/trivial.tmpl](examples/trivial.tmpl) is a\n`consul-template` template file and\n[examples/trivial.json](examples/trivial.json) is a JSON file\ndescribing input mock datas (see below for its format).\n\n\n### Installation\n\n`go get github.com/nlewo/consul-template-mock`\n\n\n### Mock JSON file format\n\n```json\n{ \"service\": {\n    \"a_service\": [{\"Name\":\"with_its_name\"}]},\n  \"key\": {\n      \"a_key\": \"with_its_value\"\n  },\n  \"env\": {\"a_environment_variable\": \"with_its_value\"},\n  \"secret\": {\"a_secret_path\":\n             {\"a_secret\": \"****\"}},\n  \"file\": {\"a_filepath\": \"with_its_content\"}\n}\n```\n\nSee the `./examples` directory for more examples!\n\n\n### Limitations\n\nOnly `consul-template` functions that I use are mocked, so just a\nsubpart of `consul-template` language is currently\nsupported. Contributions are welcome!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnlewo%2Fconsul-template-mock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnlewo%2Fconsul-template-mock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnlewo%2Fconsul-template-mock/lists"}