Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Remote ¶
type Remote interface { Type() string CanLogin() bool CanRepos() bool CanHook() bool //Login handle oauth login Login(redirectURL string, 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 ParseHook(r *http.Request) GetPipelineFileInRepo(repoURL string, ref string, accessToken string) ([]byte, error) GetDefaultBranch(repoURL string, accessToken string) (string, error) GetHeadCommit(repoURL string, branch string, credential *v3.SourceCodeCredential) (string, error) }
Click to show internal directories.
Click to hide internal directories.