runners

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2024 License: GPL-3.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Unknown int = iota
	Success
	Failed
	Skipped
)

Variables

View Source
var ServiceStateMap = map[string]string{
	"started":   "start",
	"stopped":   "stop",
	"restarted": "restart",
	"reloaded":  "reload",
}

Functions

func All

func All() []string

func Command

func Command(t *model.Task) (tr model.TaskResult)

func LineInFile

func LineInFile(t *model.Task) (tr model.TaskResult)

func PreRun

func PreRun(task *model.Task, playVars model.TaskVars) (tr model.TaskResult)

func Run

func Run(task *model.Task, playVars model.TaskVars) (tr model.TaskResult)

Run is called by the deputy to run a task on localhost.

func Service

func Service(t *model.Task) (tr model.TaskResult)

Types

type OsUser

type OsUser interface {
	Current() (*user.User, error)
	Lookup(username string) (*user.User, error)
	// LookupId(uid string) (*user.User, error)
	// LookupGroupId(gid string) (*user.Group, error)
	LookupGroup(groupname string) (*user.Group, error)
}

Jump to

Keyboard shortcuts

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