Documentation
¶
Index ¶
- type ConfigureRemoveRunner
- type ConfigureRunner
- func (config *ConfigureRunner) Authenicate(c *http.Client, survey Survey) (*protocol.GitHubAuthResult, error)
- func (config *ConfigureRunner) Configure(settings *RunnerSettings, survey Survey, auth *protocol.GitHubAuthResult) (*RunnerSettings, error)
- func (config *ConfigureRunner) ReadFromEnvironment()
- type RemoveRunner
- type RunnerInstance
- type RunnerSettings
- type Survey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigureRemoveRunner ¶
type ConfigureRemoveRunner struct {
Client *http.Client
URL string
Name string
Token string
Pat string
Unattended bool
Trace bool
}
func (*ConfigureRemoveRunner) GetHttpClient ¶ added in v0.6.0
func (c *ConfigureRemoveRunner) GetHttpClient() *http.Client
func (*ConfigureRemoveRunner) ReadFromEnvironment ¶
func (confremove *ConfigureRemoveRunner) ReadFromEnvironment()
type ConfigureRunner ¶
type ConfigureRunner struct {
ConfigureRemoveRunner
Labels []string
NoDefaultLabels bool
SystemLabels []string
RunnerGroup string
Ephemeral bool
RunnerGuard string
Replace bool
DisableUpdate bool
WorkFolder string
}
func (*ConfigureRunner) Authenicate ¶
func (config *ConfigureRunner) Authenicate(c *http.Client, survey Survey) (*protocol.GitHubAuthResult, error)
func (*ConfigureRunner) Configure ¶
func (config *ConfigureRunner) Configure(settings *RunnerSettings, survey Survey, auth *protocol.GitHubAuthResult) (*RunnerSettings, error)
func (*ConfigureRunner) ReadFromEnvironment ¶
func (config *ConfigureRunner) ReadFromEnvironment()
type RemoveRunner ¶
type RemoveRunner struct {
ConfigureRemoveRunner
Force bool
}
func (*RemoveRunner) Authenicate ¶
func (config *RemoveRunner) Authenicate(c *http.Client, survey Survey) (*protocol.GitHubAuthResult, error)
func (*RemoveRunner) Remove ¶
func (config *RemoveRunner) Remove(settings *RunnerSettings, survey Survey, auth *protocol.GitHubAuthResult) (*RunnerSettings, error)
type RunnerInstance ¶
type RunnerInstance struct {
PoolID int64
RegistrationURL string
Auth *protocol.GitHubAuthResult
Agent *protocol.TaskAgent
Key string
PKey *rsa.PrivateKey `json:"-"`
RunnerGuard string
WorkFolder string // Currently unused for actions/runner compat
}
func (*RunnerInstance) EnshurePKey ¶ added in v0.6.3
func (instance *RunnerInstance) EnshurePKey() error
type RunnerSettings ¶
type RunnerSettings struct {
PoolID int64
RegistrationURL string
Instances []*RunnerInstance
}
Click to show internal directories.
Click to hide internal directories.