Versions in this module Expand all Collapse all v3 v3.1.1 Dec 30, 2020 Changes in this version + const DevOpsProjectCreateTimeColumn + const DevOpsProjectDescriptionColumn + const DevOpsProjectExtraColumn + const DevOpsProjectIdColumn + const DevOpsProjectNameColumn + const DevOpsProjectPrefix + const DevOpsProjectTableName + const DevOpsProjectWorkSpaceColumn + const GetS2iBinaryURL + const JenkinsAdminRoleName + const JenkinsAllUserRoleName + const KS_ADMIN + const ProjectDeveloper + const ProjectMaintainer + const ProjectOwner + const ProjectReporter + const StatusActive + const StatusColumn + const StatusDeleted + const StatusDeleting + const StatusFailed + const StatusPending + const StatusSuccessful + const StatusTimeColumn + const StatusWorking + const VisibilityPrivate + const VisibilityPublic + var AllRoleSlice = []string + var DefaultRoles = []*Role + var DevOpsProjectColumns = GetColumnsFromStruct(&v1alpha2.DevOpsProject{}) + var JenkinsOwnerProjectPermissionIds = &devops.ProjectPermissionIds + var JenkinsPipelinePermissionMap = map[string]devops.ProjectPermissionIds + var JenkinsProjectPermissionMap = map[string]devops.ProjectPermissionIds + func GetColumnsFromStruct(s interface{}) []string + func GetColumnsFromStructWithPrefix(prefix string, s interface{}) []string + func GetPipelineRoleName(projectId, role string) string + func GetPipelineRolePattern(projectId string) string + func GetProjectRoleName(projectId, role string) string + func GetProjectRolePattern(projectId string) string + func GetSyncNowTime() string + func NewDevOpsProject(name, description, creator, extra, workspace string) *v1alpha2.DevOpsProject + func WithPrefix(prefix, str string) string + type DevopsOperator interface + CheckCron func(projectName string, req *http.Request) (*devops.CheckCronRes, error) + CheckScriptCompile func(projectName, pipelineName string, req *http.Request) (*devops.CheckScript, error) + CreateCredentialObj func(projectName string, s *v1.Secret) (*v1.Secret, error) + CreateDevOpsProject func(workspace string, project *v1alpha3.DevOpsProject) (*v1alpha3.DevOpsProject, error) + CreatePipelineObj func(projectName string, pipeline *v1alpha3.Pipeline) (*v1alpha3.Pipeline, error) + CreateSCMServers func(scmId string, req *http.Request) (*devops.SCMServer, error) + DeleteCredentialObj func(projectName string, secretName string) error + DeleteDevOpsProject func(workspace string, projectName string) error + DeletePipelineObj func(projectName string, pipelineName string) error + GetArtifacts func(projectName, pipelineName, runId string, req *http.Request) ([]devops.Artifacts, error) + GetBranchArtifacts func(projectName, pipelineName, branchName, runId string, req *http.Request) ([]devops.Artifacts, error) + GetBranchNodeSteps func(projectName, pipelineName, branchName, runId, nodeId string, req *http.Request) ([]devops.NodeSteps, error) + GetBranchNodesDetail func(projectName, pipelineName, branchName, runId string, req *http.Request) ([]devops.NodesDetail, error) + GetBranchPipeline func(projectName, pipelineName, branchName string, req *http.Request) (*devops.BranchPipeline, error) + GetBranchPipelineRun func(projectName, pipelineName, branchName, runId string, req *http.Request) (*devops.PipelineRun, error) + GetBranchPipelineRunNodes func(projectName, pipelineName, branchName, runId string, req *http.Request) ([]devops.BranchPipelineRunNodes, error) + GetBranchRunLog func(projectName, pipelineName, branchName, runId string, req *http.Request) ([]byte, error) + GetBranchStepLog func(projectName, pipelineName, branchName, runId, nodeId, stepId string, ...) ([]byte, http.Header, error) + GetConsoleLog func(projectName, pipelineName string, req *http.Request) ([]byte, error) + GetCredentialObj func(projectName string, secretName string) (*v1.Secret, error) + GetCrumb func(req *http.Request) (*devops.Crumb, error) + GetDevOpsProject func(workspace string, projectName string) (*v1alpha3.DevOpsProject, error) + GetNodeSteps func(projectName, pipelineName, runId, nodeId string, req *http.Request) ([]devops.NodeSteps, error) + GetNodesDetail func(projectName, pipelineName, runId string, req *http.Request) ([]devops.NodesDetail, error) + GetNotifyCommit func(req *http.Request) ([]byte, error) + GetOrgRepo func(scmId, organizationId string, req *http.Request) (devops.OrgRepo, error) + GetPipeline func(projectName, pipelineName string, req *http.Request) (*devops.Pipeline, error) + GetPipelineBranch func(projectName, pipelineName string, req *http.Request) (*devops.PipelineBranch, error) + GetPipelineObj func(projectName string, pipelineName string) (*v1alpha3.Pipeline, error) + GetPipelineRun func(projectName, pipelineName, runId string, req *http.Request) (*devops.PipelineRun, error) + GetPipelineRunNodes func(projectName, pipelineName, runId string, req *http.Request) ([]devops.PipelineRunNodes, error) + GetRunLog func(projectName, pipelineName, runId string, req *http.Request) ([]byte, error) + GetSCMOrg func(scmId string, req *http.Request) ([]devops.SCMOrg, error) + GetSCMServers func(scmId string, req *http.Request) ([]devops.SCMServer, error) + GetStepLog func(projectName, pipelineName, runId, nodeId, stepId string, req *http.Request) ([]byte, http.Header, error) + GithubWebhook func(req *http.Request) ([]byte, error) + ListCredentialObj func(projectName string, query *query.Query) (api.ListResult, error) + ListDevOpsProject func(workspace string, limit, offset int) (api.ListResult, error) + ListPipelineObj func(projectName string, limit, offset int) (api.ListResult, error) + ListPipelineRuns func(projectName, pipelineName string, req *http.Request) (*devops.PipelineRunList, error) + ListPipelines func(req *http.Request) (*devops.PipelineList, error) + ReplayBranchPipeline func(projectName, pipelineName, branchName, runId string, req *http.Request) (*devops.ReplayPipeline, error) + ReplayPipeline func(projectName, pipelineName, runId string, req *http.Request) (*devops.ReplayPipeline, error) + RunBranchPipeline func(projectName, pipelineName, branchName string, req *http.Request) (*devops.RunPipeline, error) + RunPipeline func(projectName, pipelineName string, req *http.Request) (*devops.RunPipeline, error) + ScanBranch func(projectName, pipelineName string, req *http.Request) ([]byte, error) + StopBranchPipeline func(projectName, pipelineName, branchName, runId string, req *http.Request) (*devops.StopPipeline, error) + StopPipeline func(projectName, pipelineName, runId string, req *http.Request) (*devops.StopPipeline, error) + SubmitBranchInputStep func(projectName, pipelineName, branchName, runId, nodeId, stepId string, ...) ([]byte, error) + SubmitInputStep func(projectName, pipelineName, runId, nodeId, stepId string, req *http.Request) ([]byte, error) + ToJenkinsfile func(req *http.Request) (*devops.ResJenkinsfile, error) + ToJson func(req *http.Request) (*devops.ResJson, error) + UpdateCredentialObj func(projectName string, secret *v1.Secret) (*v1.Secret, error) + UpdateDevOpsProject func(workspace string, project *v1alpha3.DevOpsProject) (*v1alpha3.DevOpsProject, error) + UpdatePipelineObj func(projectName string, pipeline *v1alpha3.Pipeline) (*v1alpha3.Pipeline, error) + Validate func(scmId string, req *http.Request) (*devops.Validates, error) + func NewDevopsOperator(client devops.Interface, k8sclient kubernetes.Interface, ...) DevopsOperator + type JkError struct + Code int + Message string + func (err *JkError) Error() string + type PipelineSonarGetter interface + GetMultiBranchPipelineSonar func(projectId, pipelineId, branchId string) ([]*sonarqube.SonarStatus, error) + GetPipelineSonar func(projectId, pipelineId string) ([]*sonarqube.SonarStatus, error) + func NewPipelineSonarGetter(devopClient devops.BuildGetter, sonarClient sonarqube.SonarInterface) PipelineSonarGetter + type ProjectCredentialGetter interface + GetProjectCredentialUsage func(projectId, credentialId string) (*devops.Credential, error) + func NewProjectCredentialOperator(devopsClient devops.Interface) ProjectCredentialGetter + type Role struct + Description string + Name string + type S2iBinaryUploader interface + DownloadS2iBinary func(namespace, name, fileName string) (string, error) + UploadS2iBinary func(namespace, name, md5 string, header *multipart.FileHeader) (*v1alpha1.S2iBinary, error) + func NewS2iBinaryUploader(client versioned.Interface, informers externalversions.SharedInformerFactory, ...) S2iBinaryUploader Other modules containing this package github.com/fearlesschenc/kubesphere