Documentation
¶
Index ¶
- 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) ListRepositoryWorkflowRuns(ctx context.Context, user string, repoName string) ([]*github.WorkflowRun, 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 Client ¶
type Client struct { *github.Client // GithubBaseURL to Github without API suffix. GithubBaseURL string // 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 ¶ added in v0.18.0
func (*Client) ListRepositoryWorkflowRuns ¶ added in v0.18.0
type Config ¶ added in v0.10.0
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 }
Config contains configuration for Github client
type RunnerNotFound ¶ added in v0.18.0
type RunnerNotFound struct {
// contains filtered or unexported fields
}
func (*RunnerNotFound) Error ¶ added in v0.18.0
func (e *RunnerNotFound) Error() string
type RunnerOffline ¶ added in v0.18.0
type RunnerOffline struct {
// contains filtered or unexported fields
}
func (*RunnerOffline) Error ¶ added in v0.18.0
func (e *RunnerOffline) Error() string
Click to show internal directories.
Click to hide internal directories.