orchestrator

package
v1.147.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 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) GetBranchBuildConfig

func (a *AzureDevOpsConfigProvider) GetBranchBuildConfig() BranchBuildConfig

func (*AzureDevOpsConfigProvider) GetPullRequestConfig

func (a *AzureDevOpsConfigProvider) GetPullRequestConfig() PullRequestConfig

func (*AzureDevOpsConfigProvider) IsPullRequest

func (a *AzureDevOpsConfigProvider) IsPullRequest() bool

type BranchBuildConfig

type BranchBuildConfig struct {
	Branch string
}

type GitHubActionsConfigProvider

type GitHubActionsConfigProvider struct{}

func (*GitHubActionsConfigProvider) GetBranchBuildConfig

func (a *GitHubActionsConfigProvider) GetBranchBuildConfig() BranchBuildConfig

func (*GitHubActionsConfigProvider) GetPullRequestConfig

func (a *GitHubActionsConfigProvider) GetPullRequestConfig() PullRequestConfig

func (*GitHubActionsConfigProvider) IsPullRequest

func (a *GitHubActionsConfigProvider) IsPullRequest() bool

type JenkinsConfigProvider

type JenkinsConfigProvider struct{}

func (*JenkinsConfigProvider) GetBranchBuildConfig

func (a *JenkinsConfigProvider) GetBranchBuildConfig() BranchBuildConfig

func (*JenkinsConfigProvider) GetPullRequestConfig

func (a *JenkinsConfigProvider) GetPullRequestConfig() PullRequestConfig

func (*JenkinsConfigProvider) IsPullRequest

func (a *JenkinsConfigProvider) IsPullRequest() bool

type Orchestrator

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

func DetectOrchestrator

func DetectOrchestrator() Orchestrator

func (Orchestrator) String

func (o Orchestrator) String() string

type OrchestratorSpecificConfigProviding

type OrchestratorSpecificConfigProviding interface {
	GetBranchBuildConfig() BranchBuildConfig
	GetPullRequestConfig() PullRequestConfig
	IsPullRequest() bool
}

func NewOrchestratorSpecificConfigProvider

func NewOrchestratorSpecificConfigProvider() (OrchestratorSpecificConfigProviding, error)

type PullRequestConfig

type PullRequestConfig struct {
	Branch string
	Base   string
	Key    string
}

type TravisConfigProvider

type TravisConfigProvider struct{}

func (*TravisConfigProvider) GetBranchBuildConfig

func (a *TravisConfigProvider) GetBranchBuildConfig() BranchBuildConfig

func (*TravisConfigProvider) GetPullRequestConfig

func (a *TravisConfigProvider) GetPullRequestConfig() PullRequestConfig

func (*TravisConfigProvider) IsPullRequest

func (a *TravisConfigProvider) IsPullRequest() bool

Jump to

Keyboard shortcuts

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