Documentation ¶
Index ¶
- type BasicAuthTransport
- type Client
- func (c *Client) GetRegistrationToken(ctx context.Context, enterprise, org, repo, name string) (*github.RegistrationToken, error)
- func (r *Client) IsRunnerBusy(ctx context.Context, enterprise, org, repo, name string) (bool, error)
- func (c *Client) ListOrganizationRunnerGroupsForRepository(ctx context.Context, org, repo string) ([]*github.RunnerGroup, error)
- func (c *Client) ListRepositoryWorkflowRuns(ctx context.Context, user string, repoName string) ([]*github.WorkflowRun, error)
- func (c *Client) ListRunnerGroupRepositoryAccesses(ctx context.Context, org string, runnerGroupId int64) ([]*github.Repository, error)
- func (c *Client) ListRunners(ctx context.Context, enterprise, org, repo string) ([]*github.Runner, error)
- func (c *Client) RemoveRunner(ctx context.Context, enterprise, org, repo string, runnerID int64) error
- type Config
- type RunnerNotFound
- type RunnerOffline
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicAuthTransport ¶
type Client ¶
type Client struct { *github.Client // GithubBaseURL to Github without API suffix. GithubBaseURL string IsEnterprise bool // contains filtered or unexported fields }
Client wraps GitHub client with some additional
func (*Client) GetRegistrationToken ¶
func (c *Client) GetRegistrationToken(ctx context.Context, enterprise, org, repo, name string) (*github.RegistrationToken, error)
GetRegistrationToken returns a registration token tied with the name of repository and runner.
func (*Client) IsRunnerBusy ¶
func (*Client) ListOrganizationRunnerGroupsForRepository ¶
func (c *Client) ListOrganizationRunnerGroupsForRepository(ctx context.Context, org, repo string) ([]*github.RunnerGroup, error)
ListOrganizationRunnerGroupsForRepository 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.
func (*Client) ListRepositoryWorkflowRuns ¶
func (*Client) ListRunnerGroupRepositoryAccesses ¶
type Config ¶
type Config struct { EnterpriseURL string `split_words:"true"` AppID int64 `split_words:"true"` AppInstallationID int64 `split_words:"true"` AppPrivateKey string `split_words:"true"` Token string URL string `split_words:"true"` UploadURL string `split_words:"true"` BasicauthUsername string `split_words:"true"` BasicauthPassword string `split_words:"true"` RunnerGitHubURL string `split_words:"true"` Log *logr.Logger }
Config contains configuration for Github client
type RunnerNotFound ¶
type RunnerNotFound struct {
// contains filtered or unexported fields
}
func (*RunnerNotFound) Error ¶
func (e *RunnerNotFound) Error() string
type RunnerOffline ¶
type RunnerOffline struct {
// contains filtered or unexported fields
}
func (*RunnerOffline) Error ¶
func (e *RunnerOffline) Error() string
Click to show internal directories.
Click to hide internal directories.