Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding list support #14

Merged
merged 3 commits into from
Mar 27, 2015
Merged

Adding list support #14

merged 3 commits into from
Mar 27, 2015

Conversation

epipho
Copy link
Contributor

@epipho epipho commented Feb 4, 2015

Adds List support to all backends + crypt app. Nearly complete, needs more testing + unit test written for config.

return nil, err
}
for i, kv := range list {
retList[i].Key = kv.Key
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is to prevent leaking the backend.KVPairs type out of the library, is there a nicer way to do this?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not that I know

@epipho
Copy link
Contributor Author

epipho commented Feb 4, 2015

Is there a reason the crypt app uses the backend directly instead of creating and using a ConfigManager? Seems like it would make for nicer code and provide a better example app.

@epipho epipho changed the title [WIP] Adding list support Adding list support Feb 5, 2015
@epipho
Copy link
Contributor Author

epipho commented Feb 5, 2015

Tested with both etcd and consul backends.

@bketelsen
Copy link
Contributor

Thanks for the PR.

bketelsen added a commit that referenced this pull request Mar 27, 2015
@bketelsen bketelsen merged commit 93de656 into xordataexchange:master Mar 27, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants