{"modulePath":"github.com/actions/actions-runner-controller","version":"v0.27.6","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package github\n\n## Types\n\n```go\ntype BasicAuthTransport struct {\n\tUsername string\n\tPassword string\n}\n```\n\n```go\nfunc (p BasicAuthTransport) RoundTrip(req *http.Request) (*http.Response, error)\n```\n\n```go\ntype Client struct {\n\t*github.Client\n\n\t// GithubBaseURL to Github without API suffix.\n\tGithubBaseURL string\n\tIsEnterprise  bool\n\t// contains filtered or unexported fields\n}\n```\nClient wraps GitHub client with some additional\n\n```go\nfunc (c *Client) GetRegistrationToken(ctx context.Context, enterprise, org, repo, name string) (*github.RegistrationToken, error)\n```\nGetRegistrationToken returns a registration token tied with the name of repository and runner.\n\n```go\nfunc (r *Client) IsRunnerBusy(ctx context.Context, enterprise, org, repo, name string) (bool, error)\n```\n\n```go\nfunc (c *Client) ListOrganizationRunnerGroupsForRepository(ctx context.Context, org, repo string) ([]*github.RunnerGroup, error)\n```\nListOrganizationRunnerGroupsForRepository returns all the runner groups defined in the organization and inherited to the organization from an enterprise. We can remove this when google/go-github library is updated to support this.\n\n```go\nfunc (c *Client) ListRepositoryWorkflowRuns(ctx context.Context, user string, repoName string) ([]*github.WorkflowRun, error)\n```\n\n```go\nfunc (c *Client) ListRunnerGroupRepositoryAccesses(ctx context.Context, org string, runnerGroupId int64) ([]*github.Repository, error)\n```\n\n```go\nfunc (c *Client) ListRunners(ctx context.Context, enterprise, org, repo string) ([]*github.Runner, error)\n```\nListRunners returns a list of runners of specified owner/repository name.\n\n```go\nfunc (c *Client) RemoveRunner(ctx context.Context, enterprise, org, repo string, runnerID int64) error\n```\nRemoveRunner removes a runner with specified runner ID from repository.\n\n```go\ntype Config struct {\n\tEnterpriseURL     string `split_words:\"true\"`\n\tAppID             int64  `split_words:\"true\"`\n\tAppInstallationID int64  `split_words:\"true\"`\n\tAppPrivateKey     string `split_words:\"true\"`\n\tToken             string\n\tURL               string `split_words:\"true\"`\n\tUploadURL         string `split_words:\"true\"`\n\tBasicauthUsername string `split_words:\"true\"`\n\tBasicauthPassword string `split_words:\"true\"`\n\tRunnerGitHubURL   string `split_words:\"true\"`\n\n\tLog *logr.Logger\n}\n```\nConfig contains configuration for Github client\n\n```go\nfunc (c *Config) NewClient() (*Client, error)\n```\nNewClient creates a Github Client\n\n```go\ntype RunnerNotFound struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (e *RunnerNotFound) Error() string\n```\n\n```go\ntype RunnerOffline struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (e *RunnerOffline) Error() string\n```\n\n","path":"github.com/actions/actions-runner-controller/github","name":"github","synopsis":"","isRedistributable":true}
