ref(repo): add NewRepo comment

pull/417/head
Michelle Noorali 10 years ago
parent e07fd606f4
commit 88ca3b649a

@ -30,6 +30,7 @@ type repo struct {
Type RepoType `json:"type"` // Technology implementing this repository Type RepoType `json:"type"` // Technology implementing this repository
} }
// NewRepo takes params and returns a Repo
func NewRepo(name, URL, credentialName, repoFormat, repoType string) (Repo, error) { func NewRepo(name, URL, credentialName, repoFormat, repoType string) (Repo, error) {
return newRepo(name, URL, credentialName, RepoFormat(repoFormat), RepoType(repoType)) return newRepo(name, URL, credentialName, RepoFormat(repoFormat), RepoType(repoType))
} }

Loading…
Cancel
Save