Documentation
¶
Index ¶
- type ConfigureRemoveRunner
- type ConfigureRunner
- func (config *ConfigureRunner) Authenicate(c *http.Client, survey Survey) (*protocol.GitHubAuthResult, error)
- func (config *ConfigureRunner) Authenticate(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 GithubApiUrlBuilder
- type RSAKeyValue
- type RemoveRunner
- func (config *RemoveRunner) Authenicate(c *http.Client, survey Survey) (*protocol.GitHubAuthResult, error)
- func (config *RemoveRunner) Authenticate(c *http.Client, survey Survey) (*protocol.GitHubAuthResult, error)
- func (config *RemoveRunner) Remove(settings *RunnerSettings, survey Survey, auth *protocol.GitHubAuthResult) (*RunnerSettings, error)
- 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.11.0
func (c *ConfigureRemoveRunner) GetHTTPClient() *http.Client
func (*ConfigureRemoveRunner) ReadFromEnvironment ¶
func (c *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)
Authenicate is deprecated: Use the Authenticate method.
func (*ConfigureRunner) Authenticate ¶ added in v0.6.4
func (config *ConfigureRunner) Authenticate(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 GithubApiUrlBuilder ¶ added in v0.11.0
func NewGithubApiUrlBuilder ¶ added in v0.11.0
func NewGithubApiUrlBuilder(baseURLString string) (*GithubApiUrlBuilder, error)
func (*GithubApiUrlBuilder) AbsoluteApiUrl ¶ added in v0.11.0
func (apiBuilder *GithubApiUrlBuilder) AbsoluteApiUrl(p string) string
func (*GithubApiUrlBuilder) ScopedApiUrl ¶ added in v0.11.0
func (apiBuilder *GithubApiUrlBuilder) ScopedApiUrl(p string) (string, error)
type RSAKeyValue ¶ added in v0.11.0
type RemoveRunner ¶
type RemoveRunner struct {
ConfigureRemoveRunner
Force bool
}
func (*RemoveRunner) Authenicate ¶
func (config *RemoveRunner) Authenicate(c *http.Client, survey Survey) (*protocol.GitHubAuthResult, error)
Authenicate is deprecated: Use the Authenticate method.
func (*RemoveRunner) Authenticate ¶ added in v0.6.4
func (config *RemoveRunner) Authenticate(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) EnsurePKey ¶ added in v0.11.0
func (instance *RunnerInstance) EnsurePKey() error
type RunnerSettings ¶
type RunnerSettings struct {
PoolID int64
RegistrationURL string
Instances []*RunnerInstance
}
Click to show internal directories.
Click to hide internal directories.