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

Initial services refactoring of database.Datastore #198

Closed
wants to merge 1 commit into from

Conversation

mattmoor
Copy link
Contributor

@mattmoor mattmoor commented Jun 8, 2016

This breaks out the following service interfaces:

  • locks.Service
  • keyvalue.Service
  • notifications.Service
  • vulnerabilities.Service

Make Travis work on my fork by rsyncing the build dir as coreos/clair

This replaces: #194

@mattmoor
Copy link
Contributor Author

mattmoor commented Jun 8, 2016

@Quentin-M @jzelinskie FYI

import (
"github.com/coreos/clair/services"
"time"
)

// MockDatastore implements Datastore and enables overriding each available method.
// The default behavior of each method is to simply panic.
type MockDatastore struct {
Copy link
Contributor

Choose a reason for hiding this comment

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

We should probably break this down into a few different MockXxxService types to parallel the refactor.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will do, I'll post to the main comment thread once updated.

This breaks out the following service interfaces:
 - locks.Service
 - keyvalue.Service
 - notifications.Service
 - vulnerabilities.Service

This also updates the Mock implementations along similar lines.

Make Travis work on my fork by rsyncing the build dir as coreos/clair
@mattmoor
Copy link
Contributor Author

mattmoor commented Jun 8, 2016

Ok, this is RFAL.

@jzelinskie jzelinskie added kind/design relates to the fundamental design of a component component/database labels Jun 8, 2016
@@ -24,7 +24,10 @@ import (
"github.com/prometheus/client_golang/prometheus"

"github.com/coreos/clair/config"
"github.com/coreos/clair/database"
"github.com/coreos/clair/services/keyvalue"
Copy link
Contributor

Choose a reason for hiding this comment

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

All other services use the plural form

@Quentin-M
Copy link
Contributor

I don't really like reading services.Vulnerability, services.Layer, etc, I find it quite confusing. Should we put the models in a separate package?

@Quentin-M
Copy link
Contributor

Is there a reason that we have one package per service interface? Wouldn't be nice to have: services.Lock instead of locks.Service? I don't have any strong opinion.

@Quentin-M
Copy link
Contributor

Configuration hasn't been updated (yet?), therefore, we can't specify configuration on a service basis.
Also, I am afraid configuration will become pretty complicated.

@jzelinskie
Copy link
Contributor

@mattmoor is there still interest in getting this cleaned up and merged?

@mattmoor
Copy link
Contributor Author

Sorry for the delayed response. Unless you guys really want some aspect of this change, I'm happy to abandon this PR. I unblocked myself by other means.

@mattmoor mattmoor closed this Sep 27, 2016
ldelossa pushed a commit to ldelossa/clair that referenced this pull request Sep 10, 2020
this commit changes the ClairV4 image to use ubi8 and rpm 4.14.2

fixes: quay#198

Jira: PROJQUAY-1015

Signed-off-by: ldelossa <ldelossa@redhat.com>
ldelossa pushed a commit to ldelossa/clair that referenced this pull request Sep 10, 2020
this commit changes the ClairV4 image to use ubi8 and rpm 4.14.2

fixes: quay#198

Jira: PROJQUAY-1015

Signed-off-by: ldelossa <ldelossa@redhat.com>
ldelossa pushed a commit that referenced this pull request Sep 10, 2020
this commit changes the ClairV4 image to use ubi8 and rpm 4.14.2

fixes: #198

Jira: PROJQUAY-1015

Signed-off-by: ldelossa <ldelossa@redhat.com>
ldelossa pushed a commit that referenced this pull request Sep 10, 2020
this commit changes the ClairV4 image to use ubi8 and rpm 4.14.2

fixes: #198

Jira: PROJQUAY-1015

Signed-off-by: ldelossa <ldelossa@redhat.com>
ldelossa pushed a commit to ldelossa/clair that referenced this pull request Sep 24, 2020
this commit changes the ClairV4 image to use ubi8 and rpm 4.14.2

fixes: quay#198

Jira: PROJQUAY-1015

Signed-off-by: ldelossa <ldelossa@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/design relates to the fundamental design of a component
Development

Successfully merging this pull request may close these issues.

3 participants