ability to store per-repository secrets & sign yaml

This commit is contained in:
Brad Rydzewski
2016-03-31 12:01:32 -07:00
parent 8251663686
commit 7ffa88cc09
11 changed files with 408 additions and 0 deletions

15
model/registry.go Normal file
View File

@@ -0,0 +1,15 @@
package model
type Registry struct {
ID int64 `json:"id" meddler:"registry_id,pk"`
RepoID int64 `json:"-" meddler:"registry_repo_id"`
Addr string `json:"addr" meddler:"registry_addr"`
Username string `json:"username" meddler:"registry_username"`
Password string `json:"password" meddler:"registry_password"`
Email string `json:"email" meddler:"registry_email"`
Token string `json:"token" meddler:"registry_token"`
}
func (r *Registry) Validate() error {
return nil
}