mirror of
https://github.com/fsouza/fake-gcs-server.git
synced 2026-04-25 13:45:52 +03:00
[PR #1608] [CLOSED] WIP: read config from environment variables #1653
Labels
No labels
bug
compatibility-issue
docker
documentation
enhancement
help wanted
needs information
pull-request
question
stale
unfortunate
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/fake-gcs-server#1653
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/fsouza/fake-gcs-server/pull/1608
Author: @vichle
Created: 5/13/2024
Status: ❌ Closed
Base:
main← Head:main📝 Commits (1)
d0a7434WIP: read config from environment variables📊 Changes
2 files changed (+80 additions, -6 deletions)
View changed files
📝
internal/config/config.go(+9 -1)📝
internal/config/config_test.go(+71 -5)📄 Description
This is a first draft of reading configuration from environment variables (#561) . I chose a different approach than #1041, let me know what you think! I've only added support for a single arg for now:
backendusing theFAKE_GCS_BACKENDenvironment variable. I'll update the PR with the rest of the arguments if you think this is a good way of doing it.I don't usually write golang, so please be thorough in your feedback :)
Open questions:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.