orchestrator

package
v1.151.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2021 License: Apache-2.0 Imports: 3 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AzureDevOpsConfigProvider

type AzureDevOpsConfigProvider struct{}

func (*AzureDevOpsConfigProvider) GetBranch added in v1.149.0

func (a *AzureDevOpsConfigProvider) GetBranch() string

func (*AzureDevOpsConfigProvider) GetBuildUrl added in v1.149.0

func (a *AzureDevOpsConfigProvider) GetBuildUrl() string

func (*AzureDevOpsConfigProvider) GetCommit added in v1.149.0

func (a *AzureDevOpsConfigProvider) GetCommit() string

func (*AzureDevOpsConfigProvider) GetPullRequestConfig

func (a *AzureDevOpsConfigProvider) GetPullRequestConfig() PullRequestConfig

func (*AzureDevOpsConfigProvider) GetRepoUrl added in v1.149.0

func (a *AzureDevOpsConfigProvider) GetRepoUrl() string

func (*AzureDevOpsConfigProvider) IsPullRequest

func (a *AzureDevOpsConfigProvider) IsPullRequest() bool

type GitHubActionsConfigProvider

type GitHubActionsConfigProvider struct{}

func (*GitHubActionsConfigProvider) GetBranch added in v1.149.0

func (g *GitHubActionsConfigProvider) GetBranch() string

func (*GitHubActionsConfigProvider) GetBuildUrl added in v1.149.0

func (g *GitHubActionsConfigProvider) GetBuildUrl() string

func (*GitHubActionsConfigProvider) GetCommit added in v1.149.0

func (g *GitHubActionsConfigProvider) GetCommit() string

func (*GitHubActionsConfigProvider) GetPullRequestConfig

func (g *GitHubActionsConfigProvider) GetPullRequestConfig() PullRequestConfig

func (*GitHubActionsConfigProvider) GetRepoUrl added in v1.149.0

func (g *GitHubActionsConfigProvider) GetRepoUrl() string

func (*GitHubActionsConfigProvider) IsPullRequest

func (g *GitHubActionsConfigProvider) IsPullRequest() bool

type JenkinsConfigProvider

type JenkinsConfigProvider struct{}

func (*JenkinsConfigProvider) GetBranch added in v1.149.0

func (j *JenkinsConfigProvider) GetBranch() string

func (*JenkinsConfigProvider) GetBuildUrl added in v1.149.0

func (j *JenkinsConfigProvider) GetBuildUrl() string

func (*JenkinsConfigProvider) GetCommit added in v1.149.0

func (j *JenkinsConfigProvider) GetCommit() string

func (*JenkinsConfigProvider) GetPullRequestConfig

func (j *JenkinsConfigProvider) GetPullRequestConfig() PullRequestConfig

func (*JenkinsConfigProvider) GetRepoUrl added in v1.149.0

func (j *JenkinsConfigProvider) GetRepoUrl() string

func (*JenkinsConfigProvider) IsPullRequest

func (j *JenkinsConfigProvider) IsPullRequest() bool

type Orchestrator

type Orchestrator int
const (
	Unknown Orchestrator = iota
	AzureDevOps
	GitHubActions
	Jenkins
)

func DetectOrchestrator

func DetectOrchestrator() Orchestrator

func (Orchestrator) String

func (o Orchestrator) String() string

type OrchestratorSpecificConfigProviding

type OrchestratorSpecificConfigProviding interface {
	GetBranch() string
	GetBuildUrl() string
	GetCommit() string
	GetPullRequestConfig() PullRequestConfig
	GetRepoUrl() string
	IsPullRequest() bool
}

func NewOrchestratorSpecificConfigProvider

func NewOrchestratorSpecificConfigProvider() (OrchestratorSpecificConfigProviding, error)

type PullRequestConfig

type PullRequestConfig struct {
	Branch string
	Base   string
	Key    string
}

Jump to

Keyboard shortcuts

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