jclient

package
v0.0.0-...-36df0cc Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JenkinsClient

type JenkinsClient struct {
	Core core.JenkinsCore
	// contains filtered or unexported fields
}

JenkinsClient represents a client of Jenkins

func NewJenkinsClient

func NewJenkinsClient(options *jenkins.Options) (*JenkinsClient, error)

NewJenkinsClient creates a Jenkins client

func (*JenkinsClient) ApplyNewSource

func (j *JenkinsClient) ApplyNewSource(s string) (err error)

ApplyNewSource apply a new source

func (*JenkinsClient) CheckCron

func (j *JenkinsClient) CheckCron(projectName string, httpParameters *devops.HttpParameters) (*devops.CheckCronRes, error)

CheckCron does the cron check

func (*JenkinsClient) CheckPipelineName

func (j *JenkinsClient) CheckPipelineName(projectName, pipelineName string, httpParameters *devops.HttpParameters) (map[string]interface{}, error)

func (*JenkinsClient) CheckScriptCompile

func (j *JenkinsClient) CheckScriptCompile(projectName, pipelineName string, httpParameters *devops.HttpParameters) (*devops.CheckScript, error)

CheckScriptCompile checks the script compile

func (*JenkinsClient) CreateCredentialInProject

func (j *JenkinsClient) CreateCredentialInProject(projectID string, credential *v1.Secret) (id string, err error)

CreateCredentialInProject creates a credential, then returns the ID

func (*JenkinsClient) CreateDevOpsProject

func (j *JenkinsClient) CreateDevOpsProject(projectID string) (string, error)

CreateDevOpsProject creates a devops project

func (*JenkinsClient) CreateProjectPipeline

func (j *JenkinsClient) CreateProjectPipeline(projectID string, pipeline *v1alpha3.Pipeline) (string, error)

CreateProjectPipeline creates the pipeline

func (*JenkinsClient) CreateSCMServers

func (j *JenkinsClient) CreateSCMServers(scmID string, httpParameters *devops.HttpParameters) (*devops.SCMServer, error)

CreateSCMServers creates a scm server

func (*JenkinsClient) DeleteCredentialInProject

func (j *JenkinsClient) DeleteCredentialInProject(projectID, id string) (string, error)

DeleteCredentialInProject deletes a credential

func (*JenkinsClient) DeleteDevOpsProject

func (j *JenkinsClient) DeleteDevOpsProject(projectID string) error

DeleteDevOpsProject deletes a devops project

func (*JenkinsClient) DeleteProjectPipeline

func (j *JenkinsClient) DeleteProjectPipeline(projectID string, pipelineID string) (string, error)

DeleteProjectPipeline deletes pipeline

func (*JenkinsClient) DownloadArtifact

func (j *JenkinsClient) DownloadArtifact(projectName, pipelineName, runID, filename string, isMultiBranch bool, branchName string) (io.ReadCloser, error)

DownloadArtifact download an artifact

func (*JenkinsClient) GenericWebhook

func (j *JenkinsClient) GenericWebhook(httpParameters *devops.HttpParameters) ([]byte, error)

GenericWebhook triggers a generic webhook

func (*JenkinsClient) GetArtifacts

func (j *JenkinsClient) GetArtifacts(projectName, pipelineName, runID string, httpParameters *devops.HttpParameters) ([]devops.Artifacts, error)

GetArtifacts returns the artifacts of a pipeline run

func (*JenkinsClient) GetBranchArtifacts

func (j *JenkinsClient) GetBranchArtifacts(projectName, pipelineName, branchName, runID string, httpParameters *devops.HttpParameters) ([]devops.Artifacts, error)

GetBranchArtifacts returns the artifacts of a pipeline run

func (*JenkinsClient) GetBranchNodeSteps

func (j *JenkinsClient) GetBranchNodeSteps(projectName, pipelineName, branchName, runID, nodeID string, httpParameters *devops.HttpParameters) ([]devops.NodeSteps, error)

GetBranchNodeSteps returns the node steps

func (*JenkinsClient) GetBranchPipeline

func (j *JenkinsClient) GetBranchPipeline(projectName, pipelineName, branchName string, httpParameters *devops.HttpParameters) (*devops.BranchPipeline, error)

GetBranchPipeline returns the branch pipeline

func (*JenkinsClient) GetBranchPipelineRun

func (j *JenkinsClient) GetBranchPipelineRun(projectName, pipelineName, branchName, runID string, httpParameters *devops.HttpParameters) (*devops.PipelineRun, error)

GetBranchPipelineRun returns the pipeline run

func (*JenkinsClient) GetBranchPipelineRunNodes

func (j *JenkinsClient) GetBranchPipelineRunNodes(projectName, pipelineName, branchName, runID string, httpParameters *devops.HttpParameters) ([]devops.BranchPipelineRunNodes, error)

GetBranchPipelineRunNodes returns the pipeline run nodes

func (*JenkinsClient) GetBranchRunLog

func (j *JenkinsClient) GetBranchRunLog(projectName, pipelineName, branchName, runID string, httpParameters *devops.HttpParameters) ([]byte, error)

GetBranchRunLog returns the pipeline run log

func (*JenkinsClient) GetBranchStepLog

func (j *JenkinsClient) GetBranchStepLog(projectName, pipelineName, branchName, runID, nodeID, stepID string, httpParameters *devops.HttpParameters) ([]byte, http.Header, error)

GetBranchStepLog returns the log output of a pipeline step

func (*JenkinsClient) GetConsoleLog

func (j *JenkinsClient) GetConsoleLog(projectName, pipelineName string, httpParameters *devops.HttpParameters) ([]byte, error)

GetConsoleLog returns the log output

func (*JenkinsClient) GetCredentialInProject

func (j *JenkinsClient) GetCredentialInProject(projectID, id string) (*devops.Credential, error)

GetCredentialInProject returns a credential

func (*JenkinsClient) GetCrumb

func (j *JenkinsClient) GetCrumb(httpParameters *devops.HttpParameters) (*devops.Crumb, error)

GetCrumb returns the crumb

func (*JenkinsClient) GetDevOpsProject

func (j *JenkinsClient) GetDevOpsProject(projectID string) (string, error)

GetDevOpsProject returns the devops project

func (*JenkinsClient) GetMultiBranchPipelineBuildByType

func (j *JenkinsClient) GetMultiBranchPipelineBuildByType(projectID, pipelineID, branch string, status string) (*devops.Build, error)

GetMultiBranchPipelineBuildByType returns a build

func (*JenkinsClient) GetNodeSteps

func (j *JenkinsClient) GetNodeSteps(projectName, pipelineName, runID, nodeID string, httpParameters *devops.HttpParameters) ([]devops.NodeSteps, error)

GetNodeSteps returns the node steps

func (*JenkinsClient) GetNotifyCommit

func (j *JenkinsClient) GetNotifyCommit(httpParameters *devops.HttpParameters) ([]byte, error)

GetNotifyCommit returns notify commit

func (*JenkinsClient) GetOrgRepo

func (j *JenkinsClient) GetOrgRepo(scmID, organizationID string, httpParameters *devops.HttpParameters) (devops.OrgRepo, error)

GetOrgRepo returns the org and repo

func (*JenkinsClient) GetPipeline

func (j *JenkinsClient) GetPipeline(projectName, pipelineName string, httpParameters *devops.HttpParameters) (*devops.Pipeline, error)

GetPipeline returns a pipeline

func (*JenkinsClient) GetPipelineBranch

func (j *JenkinsClient) GetPipelineBranch(projectName, pipelineName string, httpParameters *devops.HttpParameters) (*devops.PipelineBranch, error)

GetPipelineBranch returns PipelineBranch

func (*JenkinsClient) GetPipelineRun

func (j *JenkinsClient) GetPipelineRun(projectName, pipelineName, runID string, httpParameters *devops.HttpParameters) (*devops.PipelineRun, error)

GetPipelineRun returns a pipeline run

func (*JenkinsClient) GetPipelineRunNodes

func (j *JenkinsClient) GetPipelineRunNodes(projectName, pipelineName, runID string, httpParameters *devops.HttpParameters) ([]devops.PipelineRunNodes, error)

GetPipelineRunNodes returns the nodes of a pipeline run

func (*JenkinsClient) GetProjectPipelineBuildByType

func (j *JenkinsClient) GetProjectPipelineBuildByType(projectID, pipelineID string, status string) (*devops.Build, error)

GetProjectPipelineBuildByType returns a build

func (*JenkinsClient) GetProjectPipelineConfig

func (j *JenkinsClient) GetProjectPipelineConfig(projectID, pipelineID string) (*devopsv1alpha3.Pipeline, error)

GetProjectPipelineConfig returns the pipeline config

func (*JenkinsClient) GetRunLog

func (j *JenkinsClient) GetRunLog(projectName, pipelineName, runID string, httpParameters *devops.HttpParameters) ([]byte, http.Header, error)

GetRunLog returns the log output of a pipeline run

func (*JenkinsClient) GetSCMOrg

func (j *JenkinsClient) GetSCMOrg(scmID string, httpParameters *devops.HttpParameters) ([]devops.SCMOrg, error)

GetSCMOrg returns the scm org

func (*JenkinsClient) GetSCMServers

func (j *JenkinsClient) GetSCMServers(scmID string, httpParameters *devops.HttpParameters) ([]devops.SCMServer, error)

GetSCMServers returns the scm servers

func (*JenkinsClient) GetStepLog

func (j *JenkinsClient) GetStepLog(projectName, pipelineName, runID, nodeID, stepID string, httpParameters *devops.HttpParameters) ([]byte, http.Header, error)

GetStepLog returns the log output of a step

func (*JenkinsClient) GithubWebhook

func (j *JenkinsClient) GithubWebhook(httpParameters *devops.HttpParameters) ([]byte, error)

GithubWebhook trigger a github webhook

func (*JenkinsClient) ListPipelineRuns

func (j *JenkinsClient) ListPipelineRuns(projectName, pipelineName string, httpParameters *devops.HttpParameters) (*devops.PipelineRunList, error)

ListPipelineRuns returns the pipeline runs

func (*JenkinsClient) ListPipelines

func (j *JenkinsClient) ListPipelines(httpParameters *devops.HttpParameters) (*devops.PipelineList, error)

ListPipelines lists the pipelines

func (*JenkinsClient) ReloadConfiguration

func (j *JenkinsClient) ReloadConfiguration() error

ReloadConfiguration reloads the Jenkins configuration

func (*JenkinsClient) ReplayBranchPipeline

func (j *JenkinsClient) ReplayBranchPipeline(projectName, pipelineName, branchName, runID string, httpParameters *devops.HttpParameters) (*devops.ReplayPipeline, error)

ReplayBranchPipeline replays a pipeline

func (*JenkinsClient) ReplayPipeline

func (j *JenkinsClient) ReplayPipeline(projectName, pipelineName, runID string, httpParameters *devops.HttpParameters) (*devops.ReplayPipeline, error)

ReplayPipeline replays a pipeline

func (*JenkinsClient) RunBranchPipeline

func (j *JenkinsClient) RunBranchPipeline(projectName, pipelineName, branchName string, httpParameters *devops.HttpParameters) (*devops.RunPipeline, error)

RunBranchPipeline triggers a pipeline

func (*JenkinsClient) RunPipeline

func (j *JenkinsClient) RunPipeline(projectName, pipelineName string, httpParameters *devops.HttpParameters) (*devops.RunPipeline, error)

RunPipeline triggers a pipeline

func (*JenkinsClient) ScanBranch

func (j *JenkinsClient) ScanBranch(projectName, pipelineName string, httpParameters *devops.HttpParameters) ([]byte, error)

ScanBranch scans a pipeline

func (*JenkinsClient) StopBranchPipeline

func (j *JenkinsClient) StopBranchPipeline(projectName, pipelineName, branchName, runID string, httpParameters *devops.HttpParameters) (*devops.StopPipeline, error)

StopBranchPipeline stops a pipeline run

func (*JenkinsClient) StopPipeline

func (j *JenkinsClient) StopPipeline(projectName, pipelineName, runID string, httpParameters *devops.HttpParameters) (*devops.StopPipeline, error)

StopPipeline stops a pipeline run

func (*JenkinsClient) SubmitBranchInputStep

func (j *JenkinsClient) SubmitBranchInputStep(projectName, pipelineName, branchName, runID, nodeID, stepID string, httpParameters *devops.HttpParameters) ([]byte, error)

SubmitBranchInputStep submits a pipeline input step

func (*JenkinsClient) SubmitInputStep

func (j *JenkinsClient) SubmitInputStep(projectName, pipelineName, runID, nodeID, stepID string, httpParameters *devops.HttpParameters) ([]byte, error)

SubmitInputStep submits a pipeline input step

func (*JenkinsClient) UpdateCredentialInProject

func (j *JenkinsClient) UpdateCredentialInProject(projectID string, credential *v1.Secret) (id string, err error)

UpdateCredentialInProject updates a credential

func (*JenkinsClient) UpdateProjectPipeline

func (j *JenkinsClient) UpdateProjectPipeline(projectID string, pipeline *devopsv1alpha3.Pipeline) (string, error)

UpdateProjectPipeline updates pipeline

func (*JenkinsClient) Validate

func (j *JenkinsClient) Validate(scmID string, httpParameters *devops.HttpParameters) (*devops.Validates, error)

Validate does the validation check

Jump to

Keyboard shortcuts

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