cmdstate

package
v0.0.0-...-9e584df Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package cmdstate implements a overlord.StateManager that excutes arbitrary commands as tasks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecWithTimeout

func ExecWithTimeout(st *state.State, summary string, argv []string, timeout time.Duration) *state.TaskSet

ExecWithTimeout creates a task that will execute the given command with the given timeout.

Types

type CommandManager

type CommandManager struct{}

CommandManager helps running arbitrary commands as tasks.

func Manager

func Manager(st *state.State, runner *state.TaskRunner) *CommandManager

Manager returns a new CommandManager.

func (*CommandManager) Ensure

func (m *CommandManager) Ensure() error

Ensure is part of the overlord.StateManager interface.

Jump to

Keyboard shortcuts

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