Skip to content

Commit

Permalink
add authenticationRequired to repository and add GITHUB repo type
Browse files Browse the repository at this point in the history
Signed-off-by: Marc Brugger <[email protected]>
  • Loading branch information
bakito committed Dec 12, 2023
1 parent 2570042 commit 2f12529
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const (
RepositoryTypeComposer = "COMPOSER"
RepositoryTypeCpan = "CPAN"
RepositoryTypeGem = "GEM"
RepositoryTypeGithub = "GITHUB"
RepositoryTypeGoModules = "GO_MODULES"
RepositoryTypeHex = "HEX"
RepositoryTypeMaven = "MAVEN"
Expand All @@ -25,15 +26,16 @@ const (
type RepositoryType string

type Repository struct {
Type RepositoryType `json:"type"`
Identifier string `json:"identifier"`
Url string `json:"url"`
ResolutionOrder int `json:"resolutionOrder"`
Enabled bool `json:"enabled"`
Internal bool `json:"internal"`
Username string `json:"username,omitempty"`
Password string `json:"password,omitempty"`
UUID uuid.UUID `json:"uuid,omitempty"`
Type RepositoryType `json:"type"`
Identifier string `json:"identifier"`
Url string `json:"url"`
ResolutionOrder int `json:"resolutionOrder"`
Enabled bool `json:"enabled"`
Internal bool `json:"internal"`
AuthenticationRequired bool `json:"authenticationRequired"`
Username string `json:"username,omitempty"`
Password string `json:"password,omitempty"`
UUID uuid.UUID `json:"uuid,omitempty"`
}

type RepositoryMetaComponent struct {
Expand Down

0 comments on commit 2f12529

Please sign in to comment.