Versions in this module Expand all Collapse all v0 v0.1.3 Jan 11, 2021 v0.1.2 Jan 4, 2021 v0.1.1 Jan 4, 2021 v0.1.0 Dec 30, 2020 Changes in this version + const FirstBuild + const LastBuild + const LastCompletedBuild + const LastFailedBuild + const LastStableBuild + const LastSuccessfulBuild + const LastUnstableBuild + const LastUnsuccessfulBuild + func GetDevOpsStatusCode(devopsErr error) int + type Artifacts struct + Class string + Downloadable bool + ID string + Links struct{ ... } + Name string + Path string + Size int + URL string + type Branch struct + Name string + SHA1 string + type BranchPipeline struct + Actions []interface{} + Branch struct{ ... } + Class string + Disabled bool + DisplayName string + EstimatedDurationInMillis int + FullDisplayName string + FullName string + LatestRun struct{ ... } + Links struct{ ... } + Name string + Organization string + Parameters []struct{ ... } + Permissions struct{ ... } + WeatherScore int + type BranchPipelineRunNodes struct + Actions []interface{} + CauseOfBlockage interface{} + Class string + DisplayDescription interface{} + DisplayName string + DurationInMillis int + Edges []struct{ ... } + FirstParent interface{} + ID string + Input *Input + Links struct{ ... } + Restartable bool + Result string + StartTime string + State string + Steps []struct{ ... } + Type string + type Build struct + Actions []GeneralAction + Artifacts []struct{ ... } + Building bool + BuiltOn string + ChangeSet struct{ ... } + Culprits []Culprit + Description interface{} + Duration int64 + EstimatedDuration int64 + Executor interface{} + FullDisplayName string + ID string + KeepLog bool + Number int64 + QueueID int64 + Result string + Runs []struct{ ... } + Timestamp int64 + URL string + type BuildGetter interface + GetMultiBranchPipelineBuildByType func(projectId, pipelineId, branch string, status string) (*Build, error) + GetProjectPipelineBuildByType func(projectId, pipelineId string, status string) (*Build, error) + type BuildRevision struct + Branch []Branch + SHA1 string + type Builds struct + BuildNumber int64 + BuildResult interface{} + Marked BuildRevision + Revision BuildRevision + type CheckCronRes struct + LastTime string + Message string + NextTime string + Result string + type CheckPlayload struct + Abort bool + ID string + Parameters []CheckPlayloadParameters + type CheckPlayloadParameters struct + Name string + Value interface{} + type CheckScript struct + Column int + Line int + Message string + Status string + type CreateScmServerReq struct + ApiURL string + Name string + type Credential struct + Description string + DisplayName string + Domain string + Fingerprint ... + Id string + Type string + type CredentialOperator interface + CreateCredentialInProject func(projectId string, credential *v1.Secret) (string, error) + DeleteCredentialInProject func(projectId, id string) (string, error) + GetCredentialInProject func(projectId, id string) (*Credential, error) + UpdateCredentialInProject func(projectId string, credential *v1.Secret) (string, error) + type CronData struct + Cron string + PipelineName string + type Crumb struct + Class string + Crumb string + CrumbRequestField string + type Culprit struct + AbsoluteUrl string + FullName string + type ErrorResponse struct + Body []byte + Message string + Response *http.Response + func (e *ErrorResponse) Error() string + type GeneralAction struct + BuildsByBranchName map[string]Builds + Causes []map[string]interface{} + ClassName string + LastBuiltRevision *BuildRevision + Parameters []GeneralParameter + RemoteUrls []string + ScmName string + SonarDashboardUrl string + SonarServerUrl string + SonarTaskId string + Subdir interface{} + TotalCount int64 + UrlName string + type GeneralParameter struct + Name string + Value string + type GlobalPermissionIds struct + Administer bool + CredentialCreate bool + CredentialDelete bool + CredentialManageDomains bool + CredentialUpdate bool + CredentialView bool + GlobalRead bool + ItemBuild bool + ItemCancel bool + ItemConfigure bool + ItemCreate bool + ItemDelete bool + ItemDiscover bool + ItemMove bool + ItemRead bool + ItemWorkspace bool + RunDelete bool + RunUpdate bool + SCMTag bool + SlaveBuild bool + SlaveConfigure bool + SlaveConnect bool + SlaveCreate bool + SlaveDelete bool + SlaveDisconnect bool + ViewConfigure bool + ViewCreate bool + ViewDelete bool + ViewRead bool + type HttpParameters struct + Body io.ReadCloser + Form url.Values + Header http.Header + Method string + PostForm url.Values + Url *url.URL + type Input struct + Class string + ID string + Links ... + Message string + Ok string + Parameters []interface{} + Submitter interface{} + type Interface interface + type KubeconfigCredential struct + Content string + type NodeStatus struct + Actions []interface{} + CauseOfBlockage interface{} + Class string + DisplayDescription interface{} + DisplayName string + DurationInMillis int + Edges []struct{ ... } + FirstParent interface{} + ID string + Input *Input + Links struct{ ... } + Restartable bool + Result string + StartTime string + State string + Steps []struct{ ... } + Type string + type NodeSteps struct + Actions []struct{ ... } + Class string + DisplayDescription string + DisplayName string + DurationInMillis int + ID string + Input *Input + Links struct{ ... } + Result string + StartTime string + State string + Type string + type NodesDetail struct + Actions []interface{} + CauseOfBlockage interface{} + Class string + DisplayDescription interface{} + DisplayName string + DurationInMillis int + Edges []interface{} + FirstParent interface{} + ID string + Input *Input + Links struct{ ... } + Restartable bool + Result string + StartTime string + State string + Steps []NodeSteps + Type string + type NodesStepsIndex struct + Id int + Steps []NodeSteps + type OrgRepo struct + Class string + Links struct{ ... } + Repositories struct{ ... } + type Pipeline struct + Actions []interface{} + BranchNames []string + Class string + Disabled interface{} + DisplayName string + EstimatedDurationInMillis int + FullDisplayName string + FullName string + Links struct{ ... } + Name string + NumberOfFailingBranches int + NumberOfFailingPullRequests int + NumberOfFolders int + NumberOfPipelines int + NumberOfSuccessfulBranches int + NumberOfSuccessfulPullRequests int + Organization string + Parameters interface{} + Permissions struct{ ... } + PipelineFolderNames []interface{} + ScmSource struct{ ... } + TotalNumberOfBranches int + TotalNumberOfPullRequests int + WeatherScore int + type PipelineBranch []PipelineBranchItem + type PipelineBranchItem struct + Actions []interface{} + Branch struct{ ... } + Class string + Disabled bool + DisplayName string + EstimatedDurationInMillis int + FullDisplayName string + FullName string + LatestRun struct{ ... } + Links struct{ ... } + Name string + Organization string + Parameters []struct{ ... } + Permissions struct{ ... } + PullRequest struct{ ... } + WeatherScore int + type PipelineList struct + Items []Pipeline + Total int + type PipelineOperator interface + CheckCron func(projectName string, httpParameters *HttpParameters) (*CheckCronRes, error) + CheckScriptCompile func(projectName, pipelineName string, httpParameters *HttpParameters) (*CheckScript, error) + CreateSCMServers func(scmId string, httpParameters *HttpParameters) (*SCMServer, error) + GetArtifacts func(projectName, pipelineName, runId string, httpParameters *HttpParameters) ([]Artifacts, error) + GetBranchArtifacts func(projectName, pipelineName, branchName, runId string, ...) ([]Artifacts, error) + GetBranchNodeSteps func(projectName, pipelineName, branchName, runId, nodeId string, ...) ([]NodeSteps, error) + GetBranchPipeline func(projectName, pipelineName, branchName string, httpParameters *HttpParameters) (*BranchPipeline, error) + GetBranchPipelineRun func(projectName, pipelineName, branchName, runId string, ...) (*PipelineRun, error) + GetBranchPipelineRunNodes func(projectName, pipelineName, branchName, runId string, ...) ([]BranchPipelineRunNodes, error) + GetBranchRunLog func(projectName, pipelineName, branchName, runId string, ...) ([]byte, error) + GetBranchStepLog func(projectName, pipelineName, branchName, runId, nodeId, stepId string, ...) ([]byte, http.Header, error) + GetConsoleLog func(projectName, pipelineName string, httpParameters *HttpParameters) ([]byte, error) + GetCrumb func(httpParameters *HttpParameters) (*Crumb, error) + GetNodeSteps func(projectName, pipelineName, runId, nodeId string, ...) ([]NodeSteps, error) + GetNotifyCommit func(httpParameters *HttpParameters) ([]byte, error) + GetOrgRepo func(scmId, organizationId string, httpParameters *HttpParameters) (OrgRepo, error) + GetPipeline func(projectName, pipelineName string, httpParameters *HttpParameters) (*Pipeline, error) + GetPipelineBranch func(projectName, pipelineName string, httpParameters *HttpParameters) (*PipelineBranch, error) + GetPipelineRun func(projectName, pipelineName, runId string, httpParameters *HttpParameters) (*PipelineRun, error) + GetPipelineRunNodes func(projectName, pipelineName, runId string, httpParameters *HttpParameters) ([]PipelineRunNodes, error) + GetRunLog func(projectName, pipelineName, runId string, httpParameters *HttpParameters) ([]byte, error) + GetSCMOrg func(scmId string, httpParameters *HttpParameters) ([]SCMOrg, error) + GetSCMServers func(scmId string, httpParameters *HttpParameters) ([]SCMServer, error) + GetStepLog func(projectName, pipelineName, runId, nodeId, stepId string, ...) ([]byte, http.Header, error) + GithubWebhook func(httpParameters *HttpParameters) ([]byte, error) + ListPipelineRuns func(projectName, pipelineName string, httpParameters *HttpParameters) (*PipelineRunList, error) + ListPipelines func(httpParameters *HttpParameters) (*PipelineList, error) + ReplayBranchPipeline func(projectName, pipelineName, branchName, runId string, ...) (*ReplayPipeline, error) + ReplayPipeline func(projectName, pipelineName, runId string, httpParameters *HttpParameters) (*ReplayPipeline, error) + RunBranchPipeline func(projectName, pipelineName, branchName string, httpParameters *HttpParameters) (*RunPipeline, error) + RunPipeline func(projectName, pipelineName string, httpParameters *HttpParameters) (*RunPipeline, error) + ScanBranch func(projectName, pipelineName string, httpParameters *HttpParameters) ([]byte, error) + StopBranchPipeline func(projectName, pipelineName, branchName, runId string, ...) (*StopPipeline, error) + StopPipeline func(projectName, pipelineName, runId string, httpParameters *HttpParameters) (*StopPipeline, error) + SubmitBranchInputStep func(projectName, pipelineName, branchName, runId, nodeId, stepId string, ...) ([]byte, error) + SubmitInputStep func(projectName, pipelineName, runId, nodeId, stepId string, ...) ([]byte, error) + ToJenkinsfile func(httpParameters *HttpParameters) (*ResJenkinsfile, error) + ToJson func(httpParameters *HttpParameters) (*ResJson, error) + Validate func(scmId string, httpParameters *HttpParameters) (*Validates, error) + type PipelineRun struct + Actions []interface{} + ArtifactsZipFile interface{} + Branch interface{} + CauseOfBlockage interface{} + Causes []struct{ ... } + ChangeSet []interface{} + Class string + CommitID interface{} + CommitURL interface{} + Description interface{} + DurationInMillis int + EnQueueTime string + EndTime string + EstimatedDurationInMillis int + ID string + Links struct{ ... } + Name interface{} + Organization string + Pipeline string + PullRequest interface{} + Replayable bool + Result string + RunSummary string + StartTime string + State string + Type string + type PipelineRunList struct + Items []PipelineRun + Total int + type PipelineRunNodes struct + Actions []interface{} + CauseOfBlockage interface{} + Class string + DisplayDescription interface{} + DisplayName string + DurationInMillis int + Edges []interface{} + FirstParent interface{} + ID string + Input *Input + Links struct{ ... } + Restartable bool + Result string + StartTime string + State string + Type string + type ProjectOperator interface + CreateDevOpsProject func(projectId string) (string, error) + DeleteDevOpsProject func(projectId string) error + GetDevOpsProject func(projectId string) (string, error) + type ProjectPermissionIds struct + CredentialCreate bool + CredentialDelete bool + CredentialManageDomains bool + CredentialUpdate bool + CredentialView bool + ItemBuild bool + ItemCancel bool + ItemConfigure bool + ItemCreate bool + ItemDelete bool + ItemDiscover bool + ItemMove bool + ItemRead bool + ItemWorkspace bool + RunDelete bool + RunReplay bool + RunUpdate bool + SCMTag bool + type ProjectPipelineOperator interface + CreateProjectPipeline func(projectId string, pipeline *v1alpha3.Pipeline) (string, error) + DeleteProjectPipeline func(projectId string, pipelineId string) (string, error) + GetProjectPipelineConfig func(projectId, pipelineId string) (*v1alpha3.Pipeline, error) + UpdateProjectPipeline func(projectId string, pipeline *v1alpha3.Pipeline) (string, error) + type ReplayPipeline struct + Actions []interface{} + ArtifactsZipFile interface{} + CauseOfBlockage string + Causes []struct{ ... } + ChangeSet []interface{} + Class string + Description interface{} + DurationInMillis interface{} + EnQueueTime interface{} + EndTime interface{} + EstimatedDurationInMillis interface{} + ID string + Links struct{ ... } + Name interface{} + Organization string + Pipeline string + QueueID string + Replayable bool + Result string + RunSummary interface{} + StartTime interface{} + State string + Type string + type ReqJenkinsfile struct + Jenkinsfile string + type ReqJson struct + Json string + type ReqScript struct + Value string + type ResJenkinsfile struct + Data struct{ ... } + Status string + type ResJson struct + Data struct{ ... } + Status string + type RoleOperator interface + AddGlobalRole func(roleName string, ids GlobalPermissionIds, overwrite bool) error + AddProjectRole func(roleName string, pattern string, ids ProjectPermissionIds, overwrite bool) error + AssignGlobalRole func(roleName string, sid string) error + AssignProjectRole func(roleName string, sid string) error + DeleteProjectRoles func(roleName ...string) error + DeleteUserInProject func(sid string) error + GetGlobalRole func(roleName string) (string, error) + UnAssignGlobalRole func(roleName string, sid string) error + UnAssignProjectRole func(roleName string, sid string) error + type RunPayload struct + Parameters []struct{ ... } + type RunPipeline struct + Actions []interface{} + ArtifactsZipFile interface{} + CauseOfBlockage string + Causes []struct{ ... } + ChangeSet []interface{} + Class string + Description interface{} + DurationInMillis interface{} + EnQueueTime interface{} + EndTime interface{} + EstimatedDurationInMillis interface{} + ID string + Links struct{ ... } + Name interface{} + Organization string + Pipeline string + QueueID string + Replayable bool + Result string + RunSummary interface{} + StartTime interface{} + State string + Type string + type SCMOrg struct + Avatar string + Class string + JenkinsOrganizationPipeline bool + Links struct{ ... } + Name string + type SCMServer struct + ApiURL string + Class string + ID string + Links struct{ ... } + Name string + type SecretTextCredential struct + Secret string + type SshCredential struct + Passphrase string + PrivateKey string + Username string + type StopPipeline struct + Actions []interface{} + ArtifactsZipFile interface{} + Branch struct{ ... } + CauseOfBlockage interface{} + Causes []struct{ ... } + ChangeSet []interface{} + Class string + CommitID string + CommitURL interface{} + Description interface{} + DurationInMillis int + EnQueueTime string + EndTime string + EstimatedDurationInMillis int + ID string + Links struct{ ... } + Name interface{} + Organization string + Pipeline string + PullRequest interface{} + Replayable bool + Result string + RunSummary string + StartTime string + State string + Type string + type UsernamePasswordCredential struct + Password string + Username string + type Validates struct + CredentialID string Other modules containing this package github.com/fearlesschenc/kubesphere/v3