builder

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2021 License: Apache-2.0 Imports: 3 Imported by: 3

Documentation

Index

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

func SecretBasicAuth(name, namespace, user, pwd string, ops ...SecretOp) *v1.Secret

SecretBasicAuth creates a basic auth secret with jenkins.io credentilas-type annotation usernamePassword

func Tenant

func Tenant(namespace string) *api.Tenant

Tenant creates a Tenant

func TenantFixName

func TenantFixName(name, namespace string) *api.Tenant

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 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

type SecretOp added in v0.6.3

type SecretOp func(*v1.Secret)

SecretOp is an operation which modifies a Secret.

func SecretRename added in v0.6.3

func SecretRename(newName string) SecretOp

SecretRename returns a SecretOp function which is adding a renaming annotation to a secret

Jump to

Keyboard shortcuts

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