dashboard

package
v1.41.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 12, 2021 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DashboardChangelogCommits

type DashboardChangelogCommits struct {
	Commits []scm.ScmCommit
	FromRef string
	ToRef   string
}

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL