[go: nahoru, domu]

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

pluggable keystores #6069

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft

pluggable keystores #6069

wants to merge 2 commits into from

Conversation

Stebalien
Copy link
Member

This patch allows keystores to be configured via the config and plugins.

It's completely untested for now, but I started this so I figured I'd get it to a point where we could consider finishing it.

Depends on: ...

CC @postables

@bonedaddy
Copy link
Contributor

Oh snap this is awesome! 🎆 Let me try and integrate the keystore I wrote today and see if I come across any unexpected issues.

spec = map[string]interface{}{"type": "files", "path": "keystore"}
}

ksType, ok := spec["type"]
Copy link
Contributor

Choose a reason for hiding this comment

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

Experimenting with this locally gives me:

../../../../pkg/mod/github.com/ipfs/go-ipfs@v0.0.0-20190309025046-b72a340c987a/repo/fsrepo/fsrepo.go:397:25: cannot use ksType (type interface {}) as type string in map index: need type assertion

Might need to do ?

Suggested change
ksType, ok := spec["type"]
ksType, ok := spec["type"].(string)

Stebalien and others added 2 commits March 11, 2019 15:30
This patch allows keystores to be configured via the config and plugins.

It's completely untested for now, but I started this so I figured I'd get it to
a point where we could consider finishing it.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
@aschmahmann
Copy link
Contributor

ping @Stebalien what's the status of this and is this something we still want?

@Stebalien Stebalien added status/inactive No significant work in the previous month and removed status/in-progress In progress labels Jun 5, 2020
@Stebalien Stebalien removed their assignment Apr 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/inactive No significant work in the previous month
Projects
No open projects
ipfs/go-ipfs
In Progress
Development

Successfully merging this pull request may close these issues.

None yet

4 participants