Commit 9702dffc authored by Michelle Noorali's avatar Michelle Noorali

ref(repo): change RepoService -> Service

* fixes style errors in #401
parent 28d46246
......@@ -26,7 +26,7 @@ type inmemRepoService struct {
}
// NewInmemRepoService returns a new memory based repository service.
func NewInmemRepoService() RepoService {
func NewInmemRepoService() Service {
rs := &inmemRepoService{
repositories: make(map[string]Repo),
}
......
......@@ -38,19 +38,19 @@ type RepoProvider interface {
type repoProvider struct {
sync.RWMutex
rs RepoService
rs Service
cp CredentialProvider
gcsrp GCSRepoProvider
repos map[string]ChartRepo
}
// NewRepoProvider creates a new repository provider.
func NewRepoProvider(rs RepoService, gcsrp GCSRepoProvider, cp CredentialProvider) RepoProvider {
func NewRepoProvider(rs Service, gcsrp GCSRepoProvider, cp CredentialProvider) RepoProvider {
return newRepoProvider(rs, gcsrp, cp)
}
// newRepoProvider creates a new repository provider.
func newRepoProvider(rs RepoService, gcsrp GCSRepoProvider, cp CredentialProvider) *repoProvider {
func newRepoProvider(rs Service, gcsrp GCSRepoProvider, cp CredentialProvider) *repoProvider {
if rs == nil {
rs = NewInmemRepoService()
}
......@@ -69,7 +69,7 @@ func newRepoProvider(rs RepoService, gcsrp GCSRepoProvider, cp CredentialProvide
}
// GetRepoService returns the repository service used by this repository provider.
func (rp *repoProvider) GetRepoService() RepoService {
func (rp *repoProvider) GetRepoService() Service {
return rp.rs
}
......
......@@ -105,9 +105,9 @@ type ObjectStorageRepo interface {
GetBucket() string
}
// RepoService maintains a list of chart repositories that defines the scope of all
// Service maintains a list of chart repositories that defines the scope of all
// repository based operations, such as search and chart reference resolution.
type RepoService interface {
type Service interface {
// List returns the list of all known chart repositories
List() ([]Repo, error)
// Create adds a known repository to the list
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment