Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct {
// contains filtered or unexported fields
}
Command is a simple wrapper for exec.CommandContext
type Config ¶
type Config struct {
Replace bool // config.sh --replace option. default true
Once bool // run.sh --once option
URL string // organization/repository registration url
Path string // installation path of the runner.
WorkDir string // working directory for the runner
Name string // name of the runner
Labels []string // additional runner labels
TokenProvider *TokenProvider // token provider instance
}
Config represents runner configuration
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
Runner represents self-hosted runner instance
type TokenProvider ¶
type TokenProvider struct {
// contains filtered or unexported fields
}
TokenProvider is simple github.Client wrapper responsible for creating registration and remove tokens for runners
func NewTokenProvider ¶
func NewTokenProvider(url string, client *github.Client) (*TokenProvider, error)
NewTokenProvider returns new TokenProvider instance
func (*TokenProvider) CreateRegistrationToken ¶
func (tp *TokenProvider) CreateRegistrationToken() (*github.RegistrationToken, error)
CreateRegistrationToken returns new runner registration token
func (*TokenProvider) CreateRemoveToken ¶
func (tp *TokenProvider) CreateRemoveToken() (*github.RemoveToken, error)
CreateRemoveToken returns new runner remove token
Click to show internal directories.
Click to hide internal directories.