cleaner

package
v0.0.0-...-d9f13de Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanCommand

func CleanCommand() cli.Command

func GetRunnerByName

func GetRunnerByName(git *gitlab.Client, name string) (r *gitlab.Runner, err error)

func InitializeConfig

func InitializeConfig()

InitializeConfig unmarshals supplied environment variables as a exposed Config variable.

func ListAllInactiveRunners

func ListAllInactiveRunners(git *gitlab.Client) (r []*gitlab.Runner, err error)

func ListAllProjects

func ListAllProjects(git *gitlab.Client) (r []*gitlab.Project, err error)

func RegisterCommand

func RegisterCommand() cli.Command

func RemoveRunner

func RemoveRunner(git *gitlab.Client, r *gitlab.Runner, c chan string)

func UnregisterRunners

func UnregisterRunners(git *gitlab.Client, p *gitlab.Project, runners []*gitlab.Runner, c chan string)

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

Jump to

Keyboard shortcuts

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