Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
Add authentication field to repository list
Browse files Browse the repository at this point in the history
Signed-off-by: Edward Buckle <[email protected]>
  • Loading branch information
ebuckle committed Jun 10, 2020
1 parent c5a6baf commit a973488
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions pkg/utils/templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,18 @@ import "fmt"
type (
// TemplateRepo represents a template repository.
TemplateRepo struct {
Description string `json:"description"`
URL string `json:"url"`
Name string `json:"name"`
ID string `json:"id"`
Enabled bool `json:"enabled"`
Protected bool `json:"protected"`
ProjectStyles []string `json:"projectStyles"`
Description string `json:"description"`
URL string `json:"url"`
Name string `json:"name"`
ID string `json:"id"`
Enabled bool `json:"enabled"`
Protected bool `json:"protected"`
ProjectStyles []string `json:"projectStyles"`
Authentication Authentication `json:"authentication,omitempty"`
}
// Authentication represents a template respository's authentication.
Authentication struct {
Username string `json:"username,omitempty"`
}
)

Expand Down

0 comments on commit a973488

Please sign in to comment.