runnerconfiguration

package
v0.6.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 2, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

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 deprecated

func (config *ConfigureRunner) Authenicate(c *http.Client, survey Survey) (*protocol.GitHubAuthResult, error)

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 RemoveRunner

type RemoveRunner struct {
	ConfigureRemoveRunner
	Force bool
}

func (*RemoveRunner) Authenicate deprecated

func (config *RemoveRunner) Authenicate(c *http.Client, survey Survey) (*protocol.GitHubAuthResult, error)

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) EnshurePKey added in v0.6.3

func (instance *RunnerInstance) EnshurePKey() error

type RunnerSettings

type RunnerSettings struct {
	PoolID          int64
	RegistrationURL string
	Instances       []*RunnerInstance
}

type Survey

type Survey interface {
	GetInput(prompt string, def string) string
	GetSelectInput(prompt string, options []string, def string) string
	GetMultiSelectInput(prompt string, options []string) []string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL