runners

package
v0.97.3 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AzurePipeline

type AzurePipeline struct{}

func NewAzurePipeline

func NewAzurePipeline() *AzurePipeline

func (*AzurePipeline) CheckEnv

func (r *AzurePipeline) CheckEnv() bool

Figure out if we are in a Azure Pipeline job or not

func (*AzurePipeline) ID

func (*AzurePipeline) ListEnvVars

func (r *AzurePipeline) ListEnvVars() []*EnvVarDefinition

func (*AzurePipeline) ResolveEnvVars

func (r *AzurePipeline) ResolveEnvVars() (map[string]string, []*error)

func (*AzurePipeline) RunURI

func (r *AzurePipeline) RunURI() (url string)

type CircleCIBuild

type CircleCIBuild struct{}

func NewCircleCIBuild

func NewCircleCIBuild() *CircleCIBuild

func (*CircleCIBuild) CheckEnv

func (r *CircleCIBuild) CheckEnv() bool

func (*CircleCIBuild) ID

func (*CircleCIBuild) ListEnvVars

func (r *CircleCIBuild) ListEnvVars() []*EnvVarDefinition

func (*CircleCIBuild) ResolveEnvVars

func (r *CircleCIBuild) ResolveEnvVars() (map[string]string, []*error)

func (*CircleCIBuild) RunURI

func (r *CircleCIBuild) RunURI() string

type DaggerPipeline

type DaggerPipeline struct{}

func NewDaggerPipeline

func NewDaggerPipeline() *DaggerPipeline

func (*DaggerPipeline) CheckEnv

func (r *DaggerPipeline) CheckEnv() bool

func (*DaggerPipeline) ID

func (*DaggerPipeline) ListEnvVars

func (r *DaggerPipeline) ListEnvVars() []*EnvVarDefinition

func (*DaggerPipeline) ResolveEnvVars

func (r *DaggerPipeline) ResolveEnvVars() (map[string]string, []*error)

func (*DaggerPipeline) RunURI

func (r *DaggerPipeline) RunURI() string

TODO: figure out an URL and or more useful information

type EnvVarDefinition

type EnvVarDefinition struct {
	Name     string
	Optional bool
}

type Generic

type Generic struct{}

func NewGeneric

func NewGeneric() *Generic

func (*Generic) CheckEnv

func (r *Generic) CheckEnv() bool

func (*Generic) ID

func (*Generic) ListEnvVars

func (r *Generic) ListEnvVars() []*EnvVarDefinition

Returns a list of environment variables names. This list is used to automatically inject environment variables into the attestation.

func (*Generic) ResolveEnvVars

func (r *Generic) ResolveEnvVars() (map[string]string, []*error)

func (*Generic) RunURI

func (r *Generic) RunURI() 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) ID

func (*GitHubAction) ListEnvVars

func (r *GitHubAction) ListEnvVars() []*EnvVarDefinition

func (*GitHubAction) ResolveEnvVars

func (r *GitHubAction) ResolveEnvVars() (map[string]string, []*error)

func (*GitHubAction) RunURI

func (r *GitHubAction) RunURI() (url 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) ID

func (*GitlabPipeline) ListEnvVars

func (r *GitlabPipeline) ListEnvVars() []*EnvVarDefinition

func (*GitlabPipeline) ResolveEnvVars

func (r *GitlabPipeline) ResolveEnvVars() (map[string]string, []*error)

func (*GitlabPipeline) RunURI

func (r *GitlabPipeline) RunURI() (url string)

type JenkinsJob

type JenkinsJob struct{}

func NewJenkinsJob

func NewJenkinsJob() *JenkinsJob

func (*JenkinsJob) CheckEnv

func (r *JenkinsJob) CheckEnv() bool

Checks whether we are within a Jenkins job

func (*JenkinsJob) ID

func (*JenkinsJob) ListEnvVars

func (r *JenkinsJob) ListEnvVars() []*EnvVarDefinition

func (*JenkinsJob) ResolveEnvVars

func (r *JenkinsJob) ResolveEnvVars() (map[string]string, []*error)

func (*JenkinsJob) RunURI

func (r *JenkinsJob) RunURI() string

Jump to

Keyboard shortcuts

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