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
b6cccb45
Commit
b6cccb45
authored
Nov 07, 2015
by
vaikas-google
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Address code review comments
parent
2f82ab49
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
github_registry.go
client/registry/github_registry.go
+2
-1
registry.go
client/registry/registry.go
+1
-1
No files found.
client/registry/github_registry.go
View file @
b6cccb45
...
@@ -20,6 +20,7 @@ import (
...
@@ -20,6 +20,7 @@ import (
"log"
"log"
)
)
// GithubRegistry implements the Registry interface that talks to github.
type
GithubRegistry
struct
{
type
GithubRegistry
struct
{
owner
string
owner
string
repository
string
repository
string
...
@@ -57,7 +58,7 @@ func (g *GithubRegistry) List() ([]Type, error) {
...
@@ -57,7 +58,7 @@ func (g *GithubRegistry) List() ([]Type, error) {
return
retTypes
,
nil
return
retTypes
,
nil
}
}
// Get
the URL for a given type
// Get
URL fetches the download URL for a given Type.
func
(
g
*
GithubRegistry
)
GetURL
(
t
Type
)
(
string
,
error
)
{
func
(
g
*
GithubRegistry
)
GetURL
(
t
Type
)
(
string
,
error
)
{
_
,
dc
,
_
,
err
:=
g
.
client
.
Repositories
.
GetContents
(
g
.
owner
,
g
.
repository
,
TypesDir
+
"/"
+
t
.
Name
+
"/"
+
t
.
Version
,
nil
)
_
,
dc
,
_
,
err
:=
g
.
client
.
Repositories
.
GetContents
(
g
.
owner
,
g
.
repository
,
TypesDir
+
"/"
+
t
.
Name
+
"/"
+
t
.
Version
,
nil
)
if
err
!=
nil
{
if
err
!=
nil
{
...
...
client/registry/registry.go
View file @
b6cccb45
...
@@ -17,7 +17,7 @@ package registry
...
@@ -17,7 +17,7 @@ package registry
// used in a Deployment Manager configurations. A registry root must have
// used in a Deployment Manager configurations. A registry root must have
// a 'types' directory which contains all the available types. Each type
// a 'types' directory which contains all the available types. Each type
// then contains version directories which in turn contains all the files
// then contains version directories which in turn contains all the files
// necessary for that type.
// necessary for that
version of the
type.
// For example a type registry holding two types:
// For example a type registry holding two types:
// redis v1 (implemented in jinja)
// redis v1 (implemented in jinja)
// replicatedservice v2 (implemented in python)
// replicatedservice v2 (implemented in python)
...
...
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