Documentation
¶
Index ¶
- type DashboardChangelogCommits
- type DashboardProvider
- type DashboardRepo
- type DashboardRepoChangelog
- type DashboardRepoConfig
- type DashboardService
- func (d *DashboardService) GetDashboardChangelogs(ctx context.Context, dashboardRepos []DashboardRepo) []DashboardRepoChangelog
- func (d *DashboardService) GetDashboardRepoConfig(ctx context.Context, owner string, repo string, defaultBranch string) (*DashboardRepoConfig, error)
- func (d *DashboardService) GetDashboardRepos(ctx context.Context) ([]DashboardRepo, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DashboardProvider ¶
type DashboardProvider interface { GetDashboardChangelogs(ctx context.Context, dashboardRepos []DashboardRepo) []DashboardRepoChangelog GetDashboardRepos(ctx context.Context) ([]DashboardRepo, error) GetDashboardRepoConfig(ctx context.Context, owner string, repo string, defaultBranch string) (*DashboardRepoConfig, error) }
type DashboardRepo ¶
type DashboardRepo struct { Config *DashboardRepoConfig Repository scm.ScmRepository }
type DashboardRepoChangelog ¶
type DashboardRepoChangelog struct { ChangelogCommits []DashboardChangelogCommits Config *DashboardRepoConfig Repository scm.ScmRepository }
func (DashboardRepoChangelog) HasChangelogCommits ¶ added in v1.32.0
func (d DashboardRepoChangelog) HasChangelogCommits() bool
type DashboardRepoConfig ¶
type DashboardRepoConfig struct { EnvironmentBranches []string `yaml:"environment_branches"` EnvironmentTags []string `yaml:"environment_tags"` Name string `yaml:"name"` }
func NewDashboardRepoConfig ¶
func NewDashboardRepoConfig(content []byte) (*DashboardRepoConfig, error)
func (*DashboardRepoConfig) HasEnvironmentBranches ¶ added in v1.29.0
func (c *DashboardRepoConfig) HasEnvironmentBranches() bool
func (*DashboardRepoConfig) HasEnvironmentTags ¶ added in v1.29.0
func (c *DashboardRepoConfig) HasEnvironmentTags() bool
type DashboardService ¶
type DashboardService struct {
ScmService scm.ScmAdapter
}
func NewDashboardService ¶
func NewDashboardService(ctx context.Context, config config.Config, scmService scm.ScmAdapter) *DashboardService
func (*DashboardService) GetDashboardChangelogs ¶
func (d *DashboardService) GetDashboardChangelogs(ctx context.Context, dashboardRepos []DashboardRepo) []DashboardRepoChangelog
func (*DashboardService) GetDashboardRepoConfig ¶
func (d *DashboardService) GetDashboardRepoConfig(ctx context.Context, owner string, repo string, defaultBranch string) (*DashboardRepoConfig, error)
func (*DashboardService) GetDashboardRepos ¶
func (d *DashboardService) GetDashboardRepos(ctx context.Context) ([]DashboardRepo, error)
Click to show internal directories.
Click to hide internal directories.