Documentation ¶
Index ¶
- func PipelineRun(prefix, namespace string, ops ...PipelineRunOp) *api.PipelineRun
- func SecretBasicAuth(name, namespace, user, pwd string, ops ...SecretOp) *v1.Secret
- func Tenant(namespace string) *api.Tenant
- func TenantFixName(name, namespace string) *api.Tenant
- type JenkinsFileOp
- type PipelineRunOp
- type PipelineRunSpecOp
- func Abort() PipelineRunSpecOp
- func ArgSpec(key, value string) PipelineRunSpecOp
- func ImagePullSecret(name string) PipelineRunSpecOp
- func JenkinsFileSpec(url, path, revision string, ops ...JenkinsFileOp) PipelineRunSpecOp
- func LoggingWithIndexURL(indexURL string) PipelineRunSpecOp
- func LoggingWithRunID(runID *api.CustomJSON) PipelineRunSpecOp
- func RunDetails(jobName, cause string, sequenceNumber int32) PipelineRunSpecOp
- func Secret(name string) PipelineRunSpecOp
- type SecretOp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PipelineRun ¶
func PipelineRun(prefix, namespace string, ops ...PipelineRunOp) *api.PipelineRun
PipelineRun creates a PipelineRun Any number of PipelineRunOps can be passed
func SecretBasicAuth ¶
SecretBasicAuth creates a basic auth secret with jenkins.io credentilas-type annotation usernamePassword
func TenantFixName ¶
TenantFixName creates a Tenant with a fixed name
Types ¶
type JenkinsFileOp ¶
type JenkinsFileOp func(api.JenkinsFile) api.JenkinsFile
JenkinsFileOp is an operation returning a modified JenkinsFile
func RepoAuthSecret ¶
func RepoAuthSecret(name string) JenkinsFileOp
RepoAuthSecret creates a JenkinsFileOp setting the repo auth secret
func Revision ¶
func Revision(r string) JenkinsFileOp
Revision creates a JeninsFileOp setting the revision of the jenkins file
type PipelineRunOp ¶
type PipelineRunOp func(*api.PipelineRun)
PipelineRunOp is an operation which modifies a PipelineRun.
func PipelineRunSpec ¶
func PipelineRunSpec(ops ...PipelineRunSpecOp) PipelineRunOp
PipelineRunSpec creates a PipelineRunSpec Any number of PipelineRunSpecOps can be passed
type PipelineRunSpecOp ¶
type PipelineRunSpecOp func(api.PipelineSpec) api.PipelineSpec
PipelineRunSpecOp is an operation returning a modified PipelineSpec
func Abort ¶
func Abort() PipelineRunSpecOp
Abort creates a PipelineRunSpecOp which adds Intent abort to the PipelineRun
func ArgSpec ¶
func ArgSpec(key, value string) PipelineRunSpecOp
ArgSpec creates a PipelineRunSpecOp which adds an ArgSpec
func ImagePullSecret ¶
func ImagePullSecret(name string) PipelineRunSpecOp
ImagePullSecret creates a PipelineRUnSpecOp which adds an Image Pull Secret
func JenkinsFileSpec ¶
func JenkinsFileSpec(url, path, revision string, ops ...JenkinsFileOp) PipelineRunSpecOp
JenkinsFileSpec creates a JenkinsFileSpec
func LoggingWithIndexURL ¶ added in v0.6.2
func LoggingWithIndexURL(indexURL string) PipelineRunSpecOp
LoggingWithIndexURL creates a PipelineRunSpecOp which adds Logging to the PipelineRun with specific indexURL
func LoggingWithRunID ¶ added in v0.6.2
func LoggingWithRunID(runID *api.CustomJSON) PipelineRunSpecOp
LoggingWithRunID creates a PipelineRunSpecOp which adds Logging to the PipelineRun
func RunDetails ¶
func RunDetails(jobName, cause string, sequenceNumber int32) PipelineRunSpecOp
RunDetails creates a PipelineRunSpecOp which adds RunDetails
func Secret ¶
func Secret(name string) PipelineRunSpecOp
Secret creates a PipelineRunSpecOp which adds a Secret