Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
helm3
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
helm3
Commits
9702dffc
Commit
9702dffc
authored
Mar 21, 2016
by
Michelle Noorali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ref(repo): change RepoService -> Service
* fixes style errors in #401
parent
28d46246
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
inmem_repo_service.go
pkg/repo/inmem_repo_service.go
+1
-1
repoprovider.go
pkg/repo/repoprovider.go
+4
-4
types.go
pkg/repo/types.go
+2
-2
No files found.
pkg/repo/inmem_repo_service.go
View file @
9702dffc
...
...
@@ -26,7 +26,7 @@ type inmemRepoService struct {
}
// NewInmemRepoService returns a new memory based repository service.
func
NewInmemRepoService
()
Repo
Service
{
func
NewInmemRepoService
()
Service
{
rs
:=
&
inmemRepoService
{
repositories
:
make
(
map
[
string
]
Repo
),
}
...
...
pkg/repo/repoprovider.go
View file @
9702dffc
...
...
@@ -38,19 +38,19 @@ type RepoProvider interface {
type
repoProvider
struct
{
sync
.
RWMutex
rs
Repo
Service
rs
Service
cp
CredentialProvider
gcsrp
GCSRepoProvider
repos
map
[
string
]
ChartRepo
}
// NewRepoProvider creates a new repository provider.
func
NewRepoProvider
(
rs
Repo
Service
,
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
Repo
Service
,
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
()
Repo
Service
{
func
(
rp
*
repoProvider
)
GetRepoService
()
Service
{
return
rp
.
rs
}
...
...
pkg/repo/types.go
View file @
9702dffc
...
...
@@ -105,9 +105,9 @@ type ObjectStorageRepo interface {
GetBucket
()
string
}
//
Repo
Service 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
Repo
Service
interface
{
type
Service
interface
{
// List returns the list of all known chart repositories
List
()
([]
Repo
,
error
)
// Create adds a known repository to the list
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment