Documentation
¶
Index ¶
- Variables
- func CheckSignature(installationID int64) error
- func DivideScope(scope string) (string, string)
- func ExistGitHubRepository(scope, gheDomain string, githubPersonalToken string) error
- func GenerateGitHubAppsToken(gheDomain string, installationID int64) (string, *time.Time, error)
- func IsInstalledGitHubApp(ctx context.Context, gheDomain, inputScope string) (int64, error)
- func ListRunners(ctx context.Context, client *github.Client, owner, repo string) ([]*github.Runner, error)
- func NewClient(ctx context.Context, personalToken, gheDomain string) (*github.Client, error)
- type Scope
Constants ¶
This section is empty.
Variables ¶
View Source
var ( GHlistInstallations = listInstallations GHlistAppsInstalledRepo = listAppsInstalledRepo )
function pointers (for testing)
Functions ¶
func CheckSignature ¶
CheckSignature check trust installation id from event.
func DivideScope ¶ added in v1.6.1
DivideScope divide scope to owner and repo
func ExistGitHubRepository ¶
ExistGitHubRepository check exist of github repository
func GenerateGitHubAppsToken ¶ added in v1.7.0
GenerateGitHubAppsToken generate token of GitHub Apps using private key
func IsInstalledGitHubApp ¶ added in v1.7.0
IsInstalledGitHubApp check installed GitHub Apps in gheDomain + inputScope
Types ¶
Click to show internal directories.
Click to hide internal directories.