Versions in this module Expand all Collapse all v0 v0.0.310 Jun 15, 2022 Changes in this version + type Devops struct + Credentials map[string]map[string]*v1.Secret + Data map[string]interface{} + Pipelines map[string]map[string]*devopsv1alpha3.Pipeline + Projects map[string]interface{} + func New(projects ...string) *Devops + func NewFakeDevops(data map[string]interface{}) *Devops + func NewWithCredentials(project string, credentials ...*v1.Secret) *Devops + func NewWithPipelines(project string, pipelines ...*devopsv1alpha3.Pipeline) *Devops + func (d *Devops) AddGlobalRole(roleName string, ids devops.GlobalPermissionIds, overwrite bool) error + func (d *Devops) AddProjectRole(roleName string, pattern string, ids devops.ProjectPermissionIds, ...) error + func (d *Devops) AssignGlobalRole(roleName string, sid string) error + func (d *Devops) AssignProjectRole(roleName string, sid string) error + func (d *Devops) CheckCron(projectName string, httpParameters *devops.HttpParameters) (*devops.CheckCronRes, error) + func (d *Devops) CheckScriptCompile(projectName, pipelineName string, httpParameters *devops.HttpParameters) (*devops.CheckScript, error) + func (d *Devops) CreateCredentialInProject(projectId string, credential *v1.Secret) (string, error) + func (d *Devops) CreateDevOpsProject(projectId string) (string, error) + func (d *Devops) CreateProjectPipeline(projectId string, pipeline *devopsv1alpha3.Pipeline) (string, error) + func (d *Devops) CreateSCMServers(scmId string, httpParameters *devops.HttpParameters) (*devops.SCMServer, error) + func (d *Devops) DeleteCredentialInProject(projectId, id string) (string, error) + func (d *Devops) DeleteDevOpsProject(projectId string) error + func (d *Devops) DeleteProjectPipeline(projectId string, pipelineId string) (string, error) + func (d *Devops) DeleteProjectRoles(roleName ...string) error + func (d *Devops) DeleteUserInProject(sid string) error + func (d *Devops) GetArtifacts(projectName, pipelineName, runId string, httpParameters *devops.HttpParameters) ([]devops.Artifacts, error) + func (d *Devops) GetBranchArtifacts(projectName, pipelineName, branchName, runId string, ...) ([]devops.Artifacts, error) + func (d *Devops) GetBranchNodeSteps(projectName, pipelineName, branchName, runId, nodeId string, ...) ([]devops.NodeSteps, error) + func (d *Devops) GetBranchPipeline(projectName, pipelineName, branchName string, ...) (*devops.BranchPipeline, error) + func (d *Devops) GetBranchPipelineRun(projectName, pipelineName, branchName, runId string, ...) (*devops.PipelineRun, error) + func (d *Devops) GetBranchPipelineRunNodes(projectName, pipelineName, branchName, runId string, ...) ([]devops.BranchPipelineRunNodes, error) + func (d *Devops) GetBranchRunLog(projectName, pipelineName, branchName, runId string, ...) ([]byte, error) + func (d *Devops) GetBranchStepLog(projectName, pipelineName, branchName, runId, nodeId, stepId string, ...) ([]byte, http.Header, error) + func (d *Devops) GetConsoleLog(projectName, pipelineName string, httpParameters *devops.HttpParameters) ([]byte, error) + func (d *Devops) GetCredentialInProject(projectId, id string) (*devops.Credential, error) + func (d *Devops) GetCredentialsInProject(projectId string) ([]*devops.Credential, error) + func (d *Devops) GetCrumb(httpParameters *devops.HttpParameters) (*devops.Crumb, error) + func (d *Devops) GetDevOpsProject(projectId string) (string, error) + func (d *Devops) GetGlobalRole(roleName string) (string, error) + func (d *Devops) GetMultiBranchPipelineBuildByType(projectId, pipelineId, branch string, status string) (*devops.Build, error) + func (d *Devops) GetNodeSteps(projectName, pipelineName, runId, nodeId string, ...) ([]devops.NodeSteps, error) + func (d *Devops) GetNotifyCommit(httpParameters *devops.HttpParameters) ([]byte, error) + func (d *Devops) GetOrgRepo(scmId, organizationId string, httpParameters *devops.HttpParameters) (devops.OrgRepo, error) + func (d *Devops) GetPipeline(projectName, pipelineName string, httpParameters *devops.HttpParameters) (*devops.Pipeline, error) + func (d *Devops) GetPipelineBranch(projectName, pipelineName string, httpParameters *devops.HttpParameters) (*devops.PipelineBranch, error) + func (d *Devops) GetPipelineRun(projectName, pipelineName, runId string, httpParameters *devops.HttpParameters) (*devops.PipelineRun, error) + func (d *Devops) GetPipelineRunNodes(projectName, pipelineName, runId string, httpParameters *devops.HttpParameters) ([]devops.PipelineRunNodes, error) + func (d *Devops) GetProjectPipelineBuildByType(projectId, pipelineId string, status string) (*devops.Build, error) + func (d *Devops) GetProjectPipelineConfig(projectId, pipelineId string) (*devopsv1alpha3.Pipeline, error) + func (d *Devops) GetRunLog(projectName, pipelineName, runId string, httpParameters *devops.HttpParameters) ([]byte, error) + func (d *Devops) GetSCMOrg(scmId string, httpParameters *devops.HttpParameters) ([]devops.SCMOrg, error) + func (d *Devops) GetSCMServers(scmId string, httpParameters *devops.HttpParameters) ([]devops.SCMServer, error) + func (d *Devops) GetStepLog(projectName, pipelineName, runId, nodeId, stepId string, ...) ([]byte, http.Header, error) + func (d *Devops) GithubWebhook(httpParameters *devops.HttpParameters) ([]byte, error) + func (d *Devops) ListPipelineRuns(projectName, pipelineName string, httpParameters *devops.HttpParameters) (*devops.PipelineRunList, error) + func (d *Devops) ListPipelines(httpParameters *devops.HttpParameters) (*devops.PipelineList, error) + func (d *Devops) ReplayBranchPipeline(projectName, pipelineName, branchName, runId string, ...) (*devops.ReplayPipeline, error) + func (d *Devops) ReplayPipeline(projectName, pipelineName, runId string, httpParameters *devops.HttpParameters) (*devops.ReplayPipeline, error) + func (d *Devops) RunBranchPipeline(projectName, pipelineName, branchName string, ...) (*devops.RunPipeline, error) + func (d *Devops) RunPipeline(projectName, pipelineName string, httpParameters *devops.HttpParameters) (*devops.RunPipeline, error) + func (d *Devops) ScanBranch(projectName, pipelineName string, httpParameters *devops.HttpParameters) ([]byte, error) + func (d *Devops) StopBranchPipeline(projectName, pipelineName, branchName, runId string, ...) (*devops.StopPipeline, error) + func (d *Devops) StopPipeline(projectName, pipelineName, runId string, httpParameters *devops.HttpParameters) (*devops.StopPipeline, error) + func (d *Devops) SubmitBranchInputStep(projectName, pipelineName, branchName, runId, nodeId, stepId string, ...) ([]byte, error) + func (d *Devops) SubmitInputStep(projectName, pipelineName, runId, nodeId, stepId string, ...) ([]byte, error) + func (d *Devops) ToJenkinsfile(httpParameters *devops.HttpParameters) (*devops.ResJenkinsfile, error) + func (d *Devops) ToJson(httpParameters *devops.HttpParameters) (map[string]interface{}, error) + func (d *Devops) UnAssignGlobalRole(roleName string, sid string) error + func (d *Devops) UnAssignProjectRole(roleName string, sid string) error + func (d *Devops) UpdateCredentialInProject(projectId string, credential *v1.Secret) (string, error) + func (d *Devops) UpdateProjectPipeline(projectId string, pipeline *devopsv1alpha3.Pipeline) (string, error) + func (d *Devops) Validate(scmId string, httpParameters *devops.HttpParameters) (*devops.Validates, error)