Documentation ¶
Index ¶
Constants ¶
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 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.