Skip to content

Commit

Permalink
APPS-9365: Add bitbucket source to app spec (#764)
Browse files Browse the repository at this point in the history
  • Loading branch information
greeshmapill authored Dec 17, 2024
1 parent f3bfff0 commit 10951f0
Show file tree
Hide file tree
Showing 5 changed files with 214 additions and 41 deletions.
78 changes: 46 additions & 32 deletions apps.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 11 additions & 4 deletions apps.go
Original file line number Diff line number Diff line change
Expand Up @@ -689,6 +689,7 @@ type AppBuildableComponentSpec interface {
GetGit() *GitSourceSpec
GetGitHub() *GitHubSourceSpec
GetGitLab() *GitLabSourceSpec
GetBitbucket() *BitbucketSourceSpec

GetSourceDir() string

Expand Down Expand Up @@ -731,17 +732,23 @@ type AppRoutableComponentSpec interface {
type AppSourceType string

const (
AppSourceTypeGitHub AppSourceType = "github"
AppSourceTypeGitLab AppSourceType = "gitlab"
AppSourceTypeGit AppSourceType = "git"
AppSourceTypeImage AppSourceType = "image"
AppSourceTypeBitbucket AppSourceType = "bitbucket"
AppSourceTypeGitHub AppSourceType = "github"
AppSourceTypeGitLab AppSourceType = "gitlab"
AppSourceTypeGit AppSourceType = "git"
AppSourceTypeImage AppSourceType = "image"
)

// SourceSpec represents a source.
type SourceSpec interface {
GetType() AppSourceType
}

// GetType returns the Bitbucket source type.
func (s *BitbucketSourceSpec) GetType() AppSourceType {
return AppSourceTypeBitbucket
}

// GetType returns the GitHub source type.
func (s *GitHubSourceSpec) GetType() AppSourceType {
return AppSourceTypeGitHub
Expand Down
80 changes: 80 additions & 0 deletions apps_accessors.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 10951f0

Please sign in to comment.