Documentation
¶
Index ¶
- func CleanCommand() cli.Command
- func GetRunnerByName(git *gitlab.Client, name string) (r *gitlab.Runner, err error)
- func InitializeConfig()
- func ListAllInactiveRunners(git *gitlab.Client) (r []*gitlab.Runner, err error)
- func ListAllProjects(git *gitlab.Client) (r []*gitlab.Project, err error)
- func RegisterCommand() cli.Command
- func RemoveRunner(git *gitlab.Client, r *gitlab.Runner, c chan string)
- func UnregisterRunners(git *gitlab.Client, p *gitlab.Project, runners []*gitlab.Runner, c chan string)
- type Definition
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanCommand ¶
func GetRunnerByName ¶
func InitializeConfig ¶
func InitializeConfig()
InitializeConfig unmarshals supplied environment variables as a exposed Config variable.
func ListAllInactiveRunners ¶
func RegisterCommand ¶
Types ¶
type Definition ¶
type Definition struct {
GitlabToken string `envconfig:"GITLAB_TOKEN" required:"true"`
GitlabURL string `envconfig:"GITLAB_URL" default:"https://gitlab.com/"`
}
Definition contains all environment variables used during the runtime.
var Config Definition
Config holds the environment configuration
Click to show internal directories.
Click to hide internal directories.