Documentation ¶
Index ¶
Constants ¶
View Source
const AzurePipelineID = "azure-pipeline"
View Source
const GenericID = "generic"
View Source
const GitHubActionID = "github-action"
View Source
const GitlabPipelineID = "gitlab-pipeline"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AzurePipeline ¶ added in v0.15.0
type AzurePipeline struct{}
func NewAzurePipeline ¶ added in v0.15.0
func NewAzurePipeline() *AzurePipeline
func (*AzurePipeline) CheckEnv ¶ added in v0.15.0
func (r *AzurePipeline) CheckEnv() bool
Figure out if we are in a Azure Pipeline job or not
func (*AzurePipeline) ListEnvVars ¶ added in v0.15.0
func (r *AzurePipeline) ListEnvVars() []string
func (*AzurePipeline) ResolveEnvVars ¶ added in v0.15.0
func (r *AzurePipeline) ResolveEnvVars() map[string]string
func (*AzurePipeline) RunURI ¶ added in v0.15.0
func (r *AzurePipeline) RunURI() (url string)
func (*AzurePipeline) String ¶ added in v0.15.0
func (r *AzurePipeline) String() string
type GitHubAction ¶
type GitHubAction struct{}
func NewGithubAction ¶
func NewGithubAction() *GitHubAction
func (*GitHubAction) CheckEnv ¶
func (r *GitHubAction) CheckEnv() bool
Figure out if we are in a Github Action job or not
func (*GitHubAction) ListEnvVars ¶
func (r *GitHubAction) ListEnvVars() []string
func (*GitHubAction) ResolveEnvVars ¶
func (r *GitHubAction) ResolveEnvVars() map[string]string
func (*GitHubAction) RunURI ¶
func (r *GitHubAction) RunURI() (url string)
func (*GitHubAction) String ¶
func (r *GitHubAction) String() string
type GitlabPipeline ¶
type GitlabPipeline struct{}
func NewGitlabPipeline ¶
func NewGitlabPipeline() *GitlabPipeline
func (*GitlabPipeline) CheckEnv ¶
func (r *GitlabPipeline) CheckEnv() bool
Figure out if we are in a Github Action job or not
func (*GitlabPipeline) ListEnvVars ¶
func (r *GitlabPipeline) ListEnvVars() []string
func (*GitlabPipeline) ResolveEnvVars ¶
func (r *GitlabPipeline) ResolveEnvVars() map[string]string
func (*GitlabPipeline) RunURI ¶
func (r *GitlabPipeline) RunURI() (url string)
func (*GitlabPipeline) String ¶
func (r *GitlabPipeline) String() string
Click to show internal directories.
Click to hide internal directories.