37 Star 403 Fork 75

GVPrancher/rancher

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
remote.go 838 Bytes
Copy Edit Raw Blame History
Dan Ramich authored 2019-06-12 13:38 . goimport linting changes
package model
import (
v3 "github.com/rancher/types/apis/project.cattle.io/v3"
)
type Remote interface {
Type() string
//Login handle oauth login
Login(code string) (*v3.SourceCodeCredential, error)
Repos(account *v3.SourceCodeCredential) ([]v3.SourceCodeRepository, error)
CreateHook(pipeline *v3.Pipeline, accessToken string) (string, error)
DeleteHook(pipeline *v3.Pipeline, accessToken string) error
GetPipelineFileInRepo(repoURL string, ref string, accessToken string) ([]byte, error)
SetPipelineFileInRepo(repoURL string, ref string, accessToken string, content []byte) error
GetBranches(repoURL string, accessToken string) ([]string, error)
GetHeadInfo(repoURL string, branch string, accessToken string) (*BuildInfo, error)
}
type Refresher interface {
Refresh(cred *v3.SourceCodeCredential) (bool, error)
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/rancher/rancher.git
git@gitee.com:rancher/rancher.git
rancher
rancher
rancher
v2.2.13

Search