commands

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2016 License: MIT Imports: 28 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunServiceControl

func RunServiceControl(c *cli.Context)

Types

type ExecCommand

type ExecCommand struct {
	common.RunnerSettings
	Job string
}

func (*ExecCommand) Execute

func (c *ExecCommand) Execute(context *cli.Context)

type ListCommand

type ListCommand struct {
	// contains filtered or unexported fields
}

func (*ListCommand) Execute

func (c *ListCommand) Execute(context *cli.Context)

type NullService

type NullService struct {
}

func (*NullService) Start

func (n *NullService) Start(s service.Service) error

func (*NullService) Stop

func (n *NullService) Stop(s service.Service) error

type RegisterCommand

type RegisterCommand struct {
	TagList           string `long:"tag-list" env:"RUNNER_TAG_LIST" description:"Tag list"`
	NonInteractive    bool   `short:"n" long:"non-interactive" env:"REGISTER_NON_INTERACTIVE" description:"Run registration unattended"`
	LeaveRunner       bool   `long:"leave-runner" env:"REGISTER_LEAVE_RUNNER" description:"Don't remove runner if registration fails"`
	RegistrationToken string `short:"r" long:"registration-token" env:"REGISTRATION_TOKEN" description:"Runner's registration token"`

	common.RunnerConfig
	// contains filtered or unexported fields
}

func (*RegisterCommand) Execute

func (s *RegisterCommand) Execute(context *cli.Context)

type RunCommand

type RunCommand struct {
	ServiceName      string `short:"n" long:"service" description:"Use different names for different services"`
	WorkingDirectory string `short:"d" long:"working-directory" description:"Specify custom working directory"`
	User             string `short:"u" long:"user" description:"Use specific user to execute shell scripts"`
	Syslog           bool   `long:"syslog" description:"Log to syslog"`
	// contains filtered or unexported fields
}

func (*RunCommand) Execute

func (mr *RunCommand) Execute(context *cli.Context)

func (*RunCommand) Run

func (mr *RunCommand) Run()

func (*RunCommand) Start

func (mr *RunCommand) Start(s service.Service) error

func (*RunCommand) Stop

func (mr *RunCommand) Stop(s service.Service) (err error)

type RunSingleCommand

type RunSingleCommand struct {
	common.RunnerConfig
	// contains filtered or unexported fields
}

func (*RunSingleCommand) Execute

func (r *RunSingleCommand) Execute(c *cli.Context)

type ServiceLogHook

type ServiceLogHook struct {
	service.Logger
}

func (*ServiceLogHook) Fire

func (s *ServiceLogHook) Fire(e *logrus.Entry) error

func (*ServiceLogHook) Levels

func (s *ServiceLogHook) Levels() []logrus.Level

type UnregisterCommand

type UnregisterCommand struct {
	common.RunnerCredentials
	// contains filtered or unexported fields
}

func (*UnregisterCommand) Execute

func (c *UnregisterCommand) Execute(context *cli.Context)

type VerifyCommand

type VerifyCommand struct {
	DeleteNonExisting bool `long:"delete" description:"Delete no longer existing runners?"`
	// contains filtered or unexported fields
}

func (*VerifyCommand) Execute

func (c *VerifyCommand) Execute(context *cli.Context)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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