Documentation ¶
Index ¶
- Constants
- type GitHub
- func (g *GitHub) Authcallback(code, state string) (string, error)
- func (g *GitHub) CreateHook(service *api.Service) error
- func (g *GitHub) DeleteHook(service *api.Service) error
- func (g *GitHub) GetRepos(userID string) (Repos []api.Repo, username, avatarURL string, err error)
- func (g *GitHub) GetTokenQuestURL(userID string) (string, error)
- func (g *GitHub) LogOut(userID string) error
- func (g *GitHub) PostCommitStatus(service *api.Service, version *api.Version) error
- type GitLab
- func (g *GitLab) Authcallback(code, state string) (string, error)
- func (g *GitLab) CreateHook(service *api.Service) error
- func (g *GitLab) DeleteHook(service *api.Service) error
- func (g *GitLab) GetRepos(userID string) (repos []api.Repo, username string, avatarURL string, err error)
- func (g *GitLab) GetTokenQuestURL(userID string) (string, error)
- func (g *GitLab) LogOut(userID string) error
- func (g *GitLab) PostCommitStatus(service *api.Service, version *api.Version) error
Constants ¶
View Source
const CYCLONE_SERVER_HOST = "CYCLONE_SERVER_HOST"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitHub ¶
type GitHub struct { }
GitHub is the type for Github remote provider.
func (*GitHub) Authcallback ¶
Authcallback is the callback handler.
func (*GitHub) CreateHook ¶
CreateHook is a helper to register webhook.
func (*GitHub) DeleteHook ¶
DeleteHook is a helper to unregister webhook.
func (*GitHub) GetTokenQuestURL ¶
GetTokenQuestURL gets the URL for token request.
type GitLab ¶
type GitLab struct { }
GitLab if the type for GitLab remote provider.
func (*GitLab) Authcallback ¶
Authcallback is the callback handler.
func (*GitLab) CreateHook ¶
CreateHook is a helper to register webhook.
func (*GitLab) DeleteHook ¶
DeleteHook is a helper to unregister webhook.
func (*GitLab) GetRepos ¶
func (g *GitLab) GetRepos(userID string) (repos []api.Repo, username string, avatarURL string, err error)
GetRepos gets token by using code from gitlab.
func (*GitLab) GetTokenQuestURL ¶
GetTokenQuestURL gets the URL for token request.
Click to show internal directories.
Click to hide internal directories.