githubapp

package
v0.0.581 Latest Latest
Warning

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

Go to latest
Published: May 8, 2020 License: Apache-2.0 Imports: 20 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGitHubAppKeeperController

func NewGitHubAppKeeperController(githubAppSecretDir string, configAgent *config.Agent, mpClient metapipeline.Client, botName string, gitKind string, maxRecordsPerPool int, historyURI string, statusURI string) (keeper.Controller, error)

NewGitHubAppKeeperController creates a GitHub App style controller which needs to process each github owner using a separate git provider client due to the way GitHub App tokens work

func NewKeeperController

func NewKeeperController(configAgent *config.Agent, botName string, gitKind string, gitToken string, serverURL string, maxRecordsPerPool int, historyURI string, statusURI string) (keeper.Controller, error)

NewKeeperController creates a new controller; either regular or a GitHub App flavour depending on the $GITHUB_APP_SECRET_DIR environment variable

func SplitKeeperQueries

func SplitKeeperQueries(queries config.KeeperQueries) map[string]config.KeeperQueries

SplitKeeperQueries splits the keeper queries into a sequence of owner queries

func SplitRepositories

func SplitRepositories(repos []string) map[string][]string

SplitRepositories splits the list of repositories into a map indexed by owner

Types

type OwnerQueries

type OwnerQueries struct {
	Owner   string
	Queries config.KeeperQueries
}

OwnerQueries separates keeper queries by the owner

Jump to

Keyboard shortcuts

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