genericScm

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 10, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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

func (helper *GoScmHelper) RegisterWebhook(
	host string,
	token string,
	webhookSecret string,
	owner string,
	repo string,
) error

func (*GoScmHelper) User

func (helper *GoScmHelper) User(accessToken string, refreshToken string) (*scm.User, error)

func (*GoScmHelper) UserRepos

func (helper *GoScmHelper) UserRepos(accessToken string, refreshToken string) ([]string, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL