Documentation ¶
Index ¶
- func NewGitHubAppKeeperController(githubAppSecretDir string, configAgent *config.Agent, botName string, ...) (keeper.Controller, error)
- func NewKeeperController(configAgent *config.Agent, botName string, gitKind string, gitToken string, ...) (keeper.Controller, error)
- func SplitKeeperQueries(queries keeper.Queries) map[string]keeper.Queries
- func SplitRepositories(repos []string) map[string][]string
- type OwnerQueries
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGitHubAppKeeperController ¶
func NewGitHubAppKeeperController(githubAppSecretDir string, configAgent *config.Agent, botName string, gitKind string, maxRecordsPerPool int, historyURI string, statusURI string, ns 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, ns 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 ¶
SplitKeeperQueries splits the keeper queries into a sequence of owner queries
func SplitRepositories ¶
SplitRepositories splits the list of repositories into a map indexed by owner
Types ¶
type OwnerQueries ¶
OwnerQueries separates keeper queries by the owner
Click to show internal directories.
Click to hide internal directories.