Documentation ¶
Index ¶
- type AzureDevOpsConfigProvider
- func (a *AzureDevOpsConfigProvider) GetBranch() string
- func (a *AzureDevOpsConfigProvider) GetBuildId() string
- func (a *AzureDevOpsConfigProvider) GetBuildStatus() string
- func (a *AzureDevOpsConfigProvider) GetBuildUrl() string
- func (a *AzureDevOpsConfigProvider) GetCommit() string
- func (a *AzureDevOpsConfigProvider) GetJobName() string
- func (a *AzureDevOpsConfigProvider) GetJobUrl() string
- func (a *AzureDevOpsConfigProvider) GetLog() ([]byte, error)
- func (a *AzureDevOpsConfigProvider) GetPipelineStartTime() time.Time
- func (a *AzureDevOpsConfigProvider) GetPullRequestConfig() PullRequestConfig
- func (a *AzureDevOpsConfigProvider) GetRepoUrl() string
- func (a *AzureDevOpsConfigProvider) GetStageName() string
- func (a *AzureDevOpsConfigProvider) GetSystemCollectionURI() string
- func (a *AzureDevOpsConfigProvider) GetTeamProjectId() string
- func (a *AzureDevOpsConfigProvider) InitOrchestratorProvider(settings *OrchestratorSettings)
- func (a *AzureDevOpsConfigProvider) IsPullRequest() bool
- func (a *AzureDevOpsConfigProvider) OrchestratorType() string
- func (a *AzureDevOpsConfigProvider) OrchestratorVersion() string
- type GitHubActionsConfigProvider
- func (g *GitHubActionsConfigProvider) GetBranch() string
- func (g *GitHubActionsConfigProvider) GetBuildId() string
- func (g *GitHubActionsConfigProvider) GetBuildStatus() string
- func (g *GitHubActionsConfigProvider) GetBuildUrl() string
- func (g *GitHubActionsConfigProvider) GetCommit() string
- func (g *GitHubActionsConfigProvider) GetJobName() string
- func (g *GitHubActionsConfigProvider) GetJobUrl() string
- func (g *GitHubActionsConfigProvider) GetLog() ([]byte, error)
- func (g *GitHubActionsConfigProvider) GetPipelineStartTime() time.Time
- func (g *GitHubActionsConfigProvider) GetPullRequestConfig() PullRequestConfig
- func (g *GitHubActionsConfigProvider) GetRepoUrl() string
- func (g *GitHubActionsConfigProvider) GetStageName() string
- func (g *GitHubActionsConfigProvider) InitOrchestratorProvider(settings *OrchestratorSettings)
- func (g *GitHubActionsConfigProvider) IsPullRequest() bool
- func (g *GitHubActionsConfigProvider) OrchestratorType() string
- func (g *GitHubActionsConfigProvider) OrchestratorVersion() string
- type JenkinsConfigProvider
- func (j *JenkinsConfigProvider) GetBranch() string
- func (j *JenkinsConfigProvider) GetBuildId() string
- func (j *JenkinsConfigProvider) GetBuildStatus() string
- func (j *JenkinsConfigProvider) GetBuildUrl() string
- func (j *JenkinsConfigProvider) GetCommit() string
- func (j *JenkinsConfigProvider) GetJobName() string
- func (j *JenkinsConfigProvider) GetJobUrl() string
- func (j *JenkinsConfigProvider) GetLog() ([]byte, error)
- func (j *JenkinsConfigProvider) GetPipelineStartTime() time.Time
- func (j *JenkinsConfigProvider) GetPullRequestConfig() PullRequestConfig
- func (j *JenkinsConfigProvider) GetRepoUrl() string
- func (a *JenkinsConfigProvider) GetStageName() string
- func (j *JenkinsConfigProvider) InitOrchestratorProvider(settings *OrchestratorSettings)
- func (j *JenkinsConfigProvider) IsPullRequest() bool
- func (j *JenkinsConfigProvider) OrchestratorType() string
- func (j *JenkinsConfigProvider) OrchestratorVersion() string
- type Orchestrator
- type OrchestratorSettings
- type OrchestratorSpecificConfigProviding
- type PullRequestConfig
- type UnknownOrchestratorConfigProvider
- func (u *UnknownOrchestratorConfigProvider) GetBranch() string
- func (u *UnknownOrchestratorConfigProvider) GetBuildId() string
- func (u *UnknownOrchestratorConfigProvider) GetBuildStatus() string
- func (u *UnknownOrchestratorConfigProvider) GetBuildUrl() string
- func (u *UnknownOrchestratorConfigProvider) GetCommit() string
- func (u *UnknownOrchestratorConfigProvider) GetJobName() string
- func (u *UnknownOrchestratorConfigProvider) GetJobUrl() string
- func (u *UnknownOrchestratorConfigProvider) GetLog() ([]byte, error)
- func (u *UnknownOrchestratorConfigProvider) GetPipelineStartTime() time.Time
- func (u *UnknownOrchestratorConfigProvider) GetPullRequestConfig() PullRequestConfig
- func (u *UnknownOrchestratorConfigProvider) GetRepoUrl() string
- func (u *UnknownOrchestratorConfigProvider) GetStageName() string
- func (u *UnknownOrchestratorConfigProvider) InitOrchestratorProvider(settings *OrchestratorSettings)
- func (u *UnknownOrchestratorConfigProvider) IsPullRequest() bool
- func (u *UnknownOrchestratorConfigProvider) OrchestratorType() string
- func (u *UnknownOrchestratorConfigProvider) OrchestratorVersion() string
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 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 UnknownOrchestratorConfigProvider ¶ added in v1.180.0
type UnknownOrchestratorConfigProvider struct{}
func (*UnknownOrchestratorConfigProvider) GetBranch ¶ added in v1.180.0
func (u *UnknownOrchestratorConfigProvider) GetBranch() string
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 (u *UnknownOrchestratorConfigProvider) GetCommit() string
func (*UnknownOrchestratorConfigProvider) GetJobName ¶ added in v1.180.0
func (u *UnknownOrchestratorConfigProvider) GetJobName() string
func (*UnknownOrchestratorConfigProvider) GetJobUrl ¶ added in v1.180.0
func (u *UnknownOrchestratorConfigProvider) GetJobUrl() string
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
Click to show internal directories.
Click to hide internal directories.