Documentation
¶
Overview ¶
Package github lists the repositories User discovery selects from, with credentials in the actions-runner-controller's githubConfigSecret format, so discovery and the scale sets share one Secret.
Index ¶
Constants ¶
const ( KeyToken = "github_token" KeyAppID = "github_app_id" KeyAppInstallationID = "github_app_installation_id" KeyAppPrivateKey = "github_app_private_key" )
The keys of an actions-runner-controller githubConfigSecret.
const DefaultAPIURL = "https://api.github.com"
DefaultAPIURL is GitHub.com's REST API.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client lists repositories as one GitHub App installation or token.
func FromSecret ¶
FromSecret returns a Client for the GitHub REST API at apiURL with the credentials in data, the contents of a githubConfigSecret: a token, or a GitHub App's ID, installation ID and private key.
func (*Client) Repositories ¶
Repositories lists every repository the credentials can see: those granted to the App installation, or those the token's owner owns.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package githubtest is an in-memory stand-in for the parts of GitHub's API that package github calls.
|
Package githubtest is an in-memory stand-in for the parts of GitHub's API that package github calls. |