Fetch the repository succeeded.
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)
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。