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

API Refactor: Implement Entry.ListEntries RPC #1598 #1628

Merged

Conversation

kunzimariano
Copy link
Member

API Refactor: Implement Entry.ListEntries RPC

fixes #1598

Signed-off-by: Mariano Kunzi kunzi.mariano@gmail.com

pkg/server/api/entry/v1/service.go Outdated Show resolved Hide resolved
pkg/server/api/entry/v1/service.go Outdated Show resolved Hide resolved
pkg/server/api/entry/v1/service.go Outdated Show resolved Hide resolved
pkg/server/api/entry/v1/service.go Outdated Show resolved Hide resolved
pkg/server/api/entry/v1/service.go Outdated Show resolved Hide resolved
pkg/server/api/entry/v1/service.go Outdated Show resolved Hide resolved
pkg/server/api/entry/v1/service.go Outdated Show resolved Hide resolved
pkg/server/api/entry/v1/service_test.go Outdated Show resolved Hide resolved
pkg/server/api/entry/v1/service_test.go Show resolved Hide resolved
pkg/server/api/entry/v1/service_test.go Show resolved Hide resolved
pkg/server/api/entry/v1/service.go Outdated Show resolved Hide resolved
pkg/server/api/entry/v1/service.go Outdated Show resolved Hide resolved
pkg/server/api/entry/v1/service.go Outdated Show resolved Hide resolved
@kunzimariano kunzimariano force-pushed the api_refactor_entry_listentries_1598 branch 3 times, most recently from 05e0aa0 to b057c98 Compare June 11, 2020 12:33
pkg/server/api/api.go Outdated Show resolved Hide resolved
Comment on lines 312 to 315
var dsSelectors []*common.Selector
for _, reqSelector := range req.Filter.BySelectors.Selectors {
s := &common.Selector{
Type: reqSelector.Type,
Value: reqSelector.Value,
}
dsSelectors = append(dsSelectors, s)
}
Copy link
Member

Choose a reason for hiding this comment

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

Maybe this can go into an api.SelectorsFromProto that also does the selector type and value validation that we have done elsewhere?

Copy link
Member Author

Choose a reason for hiding this comment

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

Absolutely! Giving these are selectors, I suppose it should go under common and not server.

Copy link
Member

Choose a reason for hiding this comment

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

The api package is where we've been putting that stuff, since for now, these new types are only part of the server API.

Copy link
Member

Choose a reason for hiding this comment

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

i.e. pkg/server/api

Signed-off-by: Mariano Kunzi <kunzi.mariano@gmail.com>
Signed-off-by: Mariano Kunzi <kunzi.mariano@gmail.com>
@kunzimariano kunzimariano force-pushed the api_refactor_entry_listentries_1598 branch from b057c98 to 75d76ac Compare June 12, 2020 14:14
Signed-off-by: Mariano Kunzi <kunzi.mariano@gmail.com>
@kunzimariano kunzimariano force-pushed the api_refactor_entry_listentries_1598 branch from 75d76ac to 454d400 Compare June 12, 2020 14:44
Copy link
Member

@azdagron azdagron left a comment

Choose a reason for hiding this comment

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

\o/, thanks @kunzimariano!

@azdagron
Copy link
Member

DCO status is wedged. I've reviewed DCO on the commits though and I think we're good.

@azdagron azdagron merged commit 7853dbc into spiffe:master Jun 12, 2020
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.

API Refactor: Implement Entry.ListEntries RPC
3 participants