Documentation ¶
Index ¶
- type GoScmHelper
- func (helper *GoScmHelper) Organizations(accessToken string, refreshToken string) ([]*scm.Organization, error)
- func (helper *GoScmHelper) Parse(req *http.Request, fn scm.SecretFunc) (scm.Webhook, error)
- func (helper *GoScmHelper) RegisterWebhook(host string, token string, webhookSecret string, owner string, repo string) error
- func (helper *GoScmHelper) User(accessToken string, refreshToken string) (*scm.User, error)
- func (helper *GoScmHelper) UserRepos(accessToken string, refreshToken string) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoScmHelper ¶
type GoScmHelper struct {
// contains filtered or unexported fields
}
func NewGoScmHelper ¶
func NewGoScmHelper(config *config.Config) *GoScmHelper
func (*GoScmHelper) Organizations ¶
func (helper *GoScmHelper) Organizations(accessToken string, refreshToken string) ([]*scm.Organization, error)
func (*GoScmHelper) Parse ¶
func (helper *GoScmHelper) Parse(req *http.Request, fn scm.SecretFunc) (scm.Webhook, error)
func (*GoScmHelper) RegisterWebhook ¶
Click to show internal directories.
Click to hide internal directories.