{"id":16370816,"url":"https://github.com/integralist/go-fastly-flagswitch","last_synced_at":"2026-03-08T22:30:17.117Z","repository":{"id":140160719,"uuid":"148792407","full_name":"Integralist/go-fastly-flagswitch","owner":"Integralist","description":"Update values in Fastly Edge Dictionary","archived":false,"fork":false,"pushed_at":"2018-09-15T09:08:01.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-31T13:43:36.559Z","etag":null,"topics":["cdn","cli","dictionary","edge","fastly","go","golang"],"latest_commit_sha":null,"homepage":null,"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/Integralist.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":"2018-09-14T13:28:07.000Z","updated_at":"2023-02-16T00:29:41.000Z","dependencies_parsed_at":"2023-04-07T13:03:09.496Z","dependency_job_id":null,"html_url":"https://github.com/Integralist/go-fastly-flagswitch","commit_stats":{"total_commits":8,"total_committers":2,"mean_commits":4.0,"dds":0.125,"last_synced_commit":"96bd3ebf7abc38a022c3c7a7510425ec8e9093ee"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Integralist%2Fgo-fastly-flagswitch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Integralist%2Fgo-fastly-flagswitch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Integralist%2Fgo-fastly-flagswitch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Integralist%2Fgo-fastly-flagswitch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Integralist","download_url":"https://codeload.github.com/Integralist/go-fastly-flagswitch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239906772,"owners_count":19716581,"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":["cdn","cli","dictionary","edge","fastly","go","golang"],"created_at":"2024-10-11T03:06:11.637Z","updated_at":"2026-03-08T22:30:17.070Z","avatar_url":"https://github.com/Integralist.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-fastly-flagswitch\n\nCompile a binary and move it to `/usr/local/bin`:\n\n```bash\nmake build\n```\n\nExecute the binary:\n\n```bash\nfastly-switch --west true\n```\n\n\u003e Note: omit `--west` flag if you want to switch to 'east'\n\nThe binary will look for a `config.json` file in the current directory it is running in:\n\n```json\n{\n  \"services\": [\n    {\n      \"name\": \"your_service_name\",\n      \"id\": \"your_service_id\",\n      \"dictionary\": \"your_service_edge_dictionary_id\"\n    }\n  ]\n}\n```\n\nThis will result in the relevant edge dictionary's `west` key to have the value `true` or `false`, depending on whether the flag `--west true` was provided.\n\nIf no `dictionary` key is provided in the `config.json`, then the binary will attempt to create one for you first.\n\nIn order to create a new edge dictionary, the binary will first need to locate a non-active service version.\n\nFailing that it'll clone from the latest service version available.\n\nThis is because an edge dictionary can only be created when it's associated into a non-active service version.\n\nIf this is the case you'll have to manually 'activate' the service yourself (because otherwise fastly will complain that your service includes an edge dictionary that isn't being used -- meaning you'll need to add VCL code to your service in order to _use_ the new edge dictionary).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fintegralist%2Fgo-fastly-flagswitch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fintegralist%2Fgo-fastly-flagswitch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fintegralist%2Fgo-fastly-flagswitch/lists"}