orchestrator

package
v1.187.0 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2021 License: Apache-2.0 Imports: 10 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 {
	// contains filtered or unexported fields
}

func (*AzureDevOpsConfigProvider) GetBranch added in v1.149.0

func (a *AzureDevOpsConfigProvider) GetBranch() string

func (*AzureDevOpsConfigProvider) GetBuildId added in v1.180.0

func (a *AzureDevOpsConfigProvider) GetBuildId() string

func (*AzureDevOpsConfigProvider) GetBuildStatus added in v1.180.0

func (a *AzureDevOpsConfigProvider) GetBuildStatus() 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) GetJobName added in v1.180.0

func (a *AzureDevOpsConfigProvider) GetJobName() string

GetJobName returns the pipeline job name

func (*AzureDevOpsConfigProvider) GetJobUrl added in v1.180.0

func (a *AzureDevOpsConfigProvider) GetJobUrl() string

func (*AzureDevOpsConfigProvider) GetLog added in v1.180.0

func (a *AzureDevOpsConfigProvider) GetLog() ([]byte, error)

GetLog returns the logfile of the pipeline run so far

func (*AzureDevOpsConfigProvider) GetPipelineStartTime added in v1.180.0

func (a *AzureDevOpsConfigProvider) GetPipelineStartTime() time.Time

GetPipelineStartTime returns the pipeline start time

func (*AzureDevOpsConfigProvider) GetPullRequestConfig

func (a *AzureDevOpsConfigProvider) GetPullRequestConfig() PullRequestConfig

func (*AzureDevOpsConfigProvider) GetRepoUrl added in v1.149.0

func (a *AzureDevOpsConfigProvider) GetRepoUrl() string

func (*AzureDevOpsConfigProvider) GetStageName added in v1.169.0

func (a *AzureDevOpsConfigProvider) GetStageName() string

func (*AzureDevOpsConfigProvider) GetSystemCollectionURI added in v1.180.0

func (a *AzureDevOpsConfigProvider) GetSystemCollectionURI() string

func (*AzureDevOpsConfigProvider) GetTeamProjectId added in v1.180.0

func (a *AzureDevOpsConfigProvider) GetTeamProjectId() string

func (*AzureDevOpsConfigProvider) InitOrchestratorProvider added in v1.180.0

func (a *AzureDevOpsConfigProvider) InitOrchestratorProvider(settings *OrchestratorSettings)

InitOrchestratorProvider initializes http client for AzureDevopsConfigProvider

func (*AzureDevOpsConfigProvider) IsPullRequest

func (a *AzureDevOpsConfigProvider) IsPullRequest() bool

func (*AzureDevOpsConfigProvider) OrchestratorType added in v1.180.0

func (a *AzureDevOpsConfigProvider) OrchestratorType() string

OrchestratorType returns the orchestrator name e.g. Azure/GitHubActions/Jenkins

func (*AzureDevOpsConfigProvider) OrchestratorVersion added in v1.180.0

func (a *AzureDevOpsConfigProvider) OrchestratorVersion() string

OrchestratorVersion returns the agent version on ADO

type GitHubActionsConfigProvider

type GitHubActionsConfigProvider struct{}

func (*GitHubActionsConfigProvider) GetBranch added in v1.149.0

func (g *GitHubActionsConfigProvider) GetBranch() string

func (*GitHubActionsConfigProvider) GetBuildId added in v1.180.0

func (g *GitHubActionsConfigProvider) GetBuildId() string

func (*GitHubActionsConfigProvider) GetBuildStatus added in v1.180.0

func (g *GitHubActionsConfigProvider) GetBuildStatus() 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) GetJobName added in v1.180.0

func (g *GitHubActionsConfigProvider) GetJobName() string

func (*GitHubActionsConfigProvider) GetJobUrl added in v1.180.0

func (g *GitHubActionsConfigProvider) GetJobUrl() string

func (*GitHubActionsConfigProvider) GetLog added in v1.180.0

func (g *GitHubActionsConfigProvider) GetLog() ([]byte, error)

func (*GitHubActionsConfigProvider) GetPipelineStartTime added in v1.180.0

func (g *GitHubActionsConfigProvider) GetPipelineStartTime() time.Time

func (*GitHubActionsConfigProvider) GetPullRequestConfig

func (g *GitHubActionsConfigProvider) GetPullRequestConfig() PullRequestConfig

func (*GitHubActionsConfigProvider) GetRepoUrl added in v1.149.0

func (g *GitHubActionsConfigProvider) GetRepoUrl() string

func (*GitHubActionsConfigProvider) GetStageName added in v1.169.0

func (g *GitHubActionsConfigProvider) GetStageName() string

func (*GitHubActionsConfigProvider) InitOrchestratorProvider added in v1.180.0

func (g *GitHubActionsConfigProvider) InitOrchestratorProvider(settings *OrchestratorSettings)

func (*GitHubActionsConfigProvider) IsPullRequest

func (g *GitHubActionsConfigProvider) IsPullRequest() bool

func (*GitHubActionsConfigProvider) OrchestratorType added in v1.180.0

func (g *GitHubActionsConfigProvider) OrchestratorType() string

func (*GitHubActionsConfigProvider) OrchestratorVersion added in v1.180.0

func (g *GitHubActionsConfigProvider) OrchestratorVersion() string

type JenkinsConfigProvider

type JenkinsConfigProvider struct {
	// contains filtered or unexported fields
}

func (*JenkinsConfigProvider) GetBranch added in v1.149.0

func (j *JenkinsConfigProvider) GetBranch() string

func (*JenkinsConfigProvider) GetBuildId added in v1.180.0

func (j *JenkinsConfigProvider) GetBuildId() string

func (*JenkinsConfigProvider) GetBuildStatus added in v1.180.0

func (j *JenkinsConfigProvider) GetBuildStatus() string

GetBuildInformation

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) GetJobName added in v1.180.0

func (j *JenkinsConfigProvider) GetJobName() string

func (*JenkinsConfigProvider) GetJobUrl added in v1.180.0

func (j *JenkinsConfigProvider) GetJobUrl() string

func (*JenkinsConfigProvider) GetLog added in v1.180.0

func (j *JenkinsConfigProvider) GetLog() ([]byte, error)

func (*JenkinsConfigProvider) GetPipelineStartTime added in v1.180.0

func (j *JenkinsConfigProvider) GetPipelineStartTime() time.Time

func (*JenkinsConfigProvider) GetPullRequestConfig

func (j *JenkinsConfigProvider) GetPullRequestConfig() PullRequestConfig

func (*JenkinsConfigProvider) GetRepoUrl added in v1.149.0

func (j *JenkinsConfigProvider) GetRepoUrl() string

func (*JenkinsConfigProvider) GetStageName added in v1.169.0

func (a *JenkinsConfigProvider) GetStageName() string

func (*JenkinsConfigProvider) InitOrchestratorProvider added in v1.180.0

func (j *JenkinsConfigProvider) InitOrchestratorProvider(settings *OrchestratorSettings)

func (*JenkinsConfigProvider) IsPullRequest

func (j *JenkinsConfigProvider) IsPullRequest() bool

func (*JenkinsConfigProvider) OrchestratorType added in v1.180.0

func (j *JenkinsConfigProvider) OrchestratorType() string

func (*JenkinsConfigProvider) OrchestratorVersion added in v1.180.0

func (j *JenkinsConfigProvider) OrchestratorVersion() string

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 OrchestratorSettings added in v1.180.0

type OrchestratorSettings struct {
	JenkinsUser  string
	JenkinsToken string
	AzureToken   string
}

type OrchestratorSpecificConfigProviding

type OrchestratorSpecificConfigProviding interface {
	InitOrchestratorProvider(settings *OrchestratorSettings)
	OrchestratorType() string
	OrchestratorVersion() string
	GetStageName() string
	GetBranch() string
	GetBuildUrl() string
	GetBuildId() string
	GetJobUrl() string
	GetJobName() string
	GetCommit() string
	GetPullRequestConfig() PullRequestConfig
	GetRepoUrl() string
	IsPullRequest() bool
	GetLog() ([]byte, error)
	GetPipelineStartTime() time.Time
	GetBuildStatus() string
}

func NewOrchestratorSpecificConfigProvider

func NewOrchestratorSpecificConfigProvider() (OrchestratorSpecificConfigProviding, error)

type PullRequestConfig

type PullRequestConfig struct {
	Branch string
	Base   string
	Key    string
}

type UnknownOrchestratorConfigProvider added in v1.180.0

type UnknownOrchestratorConfigProvider struct{}

func (*UnknownOrchestratorConfigProvider) GetBranch added in v1.180.0

func (*UnknownOrchestratorConfigProvider) GetBuildId added in v1.180.0

func (u *UnknownOrchestratorConfigProvider) GetBuildId() string

func (*UnknownOrchestratorConfigProvider) GetBuildStatus added in v1.180.0

func (u *UnknownOrchestratorConfigProvider) GetBuildStatus() string

func (*UnknownOrchestratorConfigProvider) GetBuildUrl added in v1.180.0

func (u *UnknownOrchestratorConfigProvider) GetBuildUrl() string

func (*UnknownOrchestratorConfigProvider) GetCommit added in v1.180.0

func (*UnknownOrchestratorConfigProvider) GetJobName added in v1.180.0

func (u *UnknownOrchestratorConfigProvider) GetJobName() string

func (*UnknownOrchestratorConfigProvider) GetJobUrl added in v1.180.0

func (*UnknownOrchestratorConfigProvider) GetLog added in v1.180.0

func (u *UnknownOrchestratorConfigProvider) GetLog() ([]byte, error)

func (*UnknownOrchestratorConfigProvider) GetPipelineStartTime added in v1.180.0

func (u *UnknownOrchestratorConfigProvider) GetPipelineStartTime() time.Time

func (*UnknownOrchestratorConfigProvider) GetPullRequestConfig added in v1.180.0

func (u *UnknownOrchestratorConfigProvider) GetPullRequestConfig() PullRequestConfig

func (*UnknownOrchestratorConfigProvider) GetRepoUrl added in v1.180.0

func (u *UnknownOrchestratorConfigProvider) GetRepoUrl() string

func (*UnknownOrchestratorConfigProvider) GetStageName added in v1.180.0

func (u *UnknownOrchestratorConfigProvider) GetStageName() string

func (*UnknownOrchestratorConfigProvider) InitOrchestratorProvider added in v1.180.0

func (u *UnknownOrchestratorConfigProvider) InitOrchestratorProvider(settings *OrchestratorSettings)

func (*UnknownOrchestratorConfigProvider) IsPullRequest added in v1.180.0

func (u *UnknownOrchestratorConfigProvider) IsPullRequest() bool

func (*UnknownOrchestratorConfigProvider) OrchestratorType added in v1.180.0

func (u *UnknownOrchestratorConfigProvider) OrchestratorType() string

func (*UnknownOrchestratorConfigProvider) OrchestratorVersion added in v1.180.0

func (u *UnknownOrchestratorConfigProvider) OrchestratorVersion() string

Jump to

Keyboard shortcuts

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