Address code review comments

pull/26/head
vaikas-google 9 years ago
parent 2f82ab49cc
commit b6cccb453f

@ -20,6 +20,7 @@ import (
"log"
)
// GithubRegistry implements the Registry interface that talks to github.
type GithubRegistry struct {
owner string
repository string
@ -57,7 +58,7 @@ func (g *GithubRegistry) List() ([]Type, error) {
return retTypes, nil
}
// Get the URL for a given type
// GetURL fetches the download URL for a given Type.
func (g *GithubRegistry) GetURL(t Type) (string, error) {
_, dc, _, err := g.client.Repositories.GetContents(g.owner, g.repository, TypesDir+"/"+t.Name+"/"+t.Version, nil)
if err != nil {

@ -17,7 +17,7 @@ package registry
// used in a Deployment Manager configurations. A registry root must have
// a 'types' directory which contains all the available types. Each type
// 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:
// redis v1 (implemented in jinja)
// replicatedservice v2 (implemented in python)

Loading…
Cancel
Save