Documentation ¶
Index ¶
- Constants
- func NewGitHubAppTideController(githubAppSecretDir string, configAgent *config.Agent, botName string, ...) (tide.Controller, error)
- func NewTideController(configAgent *config.Agent, botName string, gitClient git.Client, ...) (tide.Controller, error)
- func SplitRepositories(repos []string) map[string][]string
- func SplitTideQueries(queries config.TideQueries) map[string]config.TideQueries
- type OwnerQueries
- type OwnerTokensDir
Constants ¶
View Source
const (
// GithubServer the default github server URL
GithubServer = "https://github.com"
)
Variables ¶
This section is empty.
Functions ¶
func NewGitHubAppTideController ¶
func NewGitHubAppTideController(githubAppSecretDir string, configAgent *config.Agent, botName string, gitClient git.Client, maxRecordsPerPool int, opener io.Opener, historyURI string, statusURI string) (tide.Controller, error)
NewGitHubAppTideController 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 NewTideController ¶
func NewTideController(configAgent *config.Agent, botName string, gitClient git.Client, maxRecordsPerPool int, opener io.Opener, historyURI string, statusURI string) (tide.Controller, error)
NewTideController creates a new controller; either regular or a GitHub App flavour depending on the $GITHUB_APP_SECRET_DIR environment variable
func SplitRepositories ¶
SplitRepositories splits the list of repositories into a map indexed by owner
func SplitTideQueries ¶
func SplitTideQueries(queries config.TideQueries) map[string]config.TideQueries
SplitTideQueries splits the tide queries into a sequence of owner queries
Types ¶
type OwnerQueries ¶
type OwnerQueries struct { Owner string Queries config.TideQueries }
OwnerQueries separates tide queries by the owner
type OwnerTokensDir ¶
type OwnerTokensDir struct {
// contains filtered or unexported fields
}
OwnerTokensDir handles finding owner based tokens in a directory for GitHub Apps
func NewOwnerTokensDir ¶
func NewOwnerTokensDir(gitServer, dir string) *OwnerTokensDir
NewOwnerTokensDir creates a new dir token scanner
Click to show internal directories.
Click to hide internal directories.