command

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	sync.Mutex
	Bin   string
	Args  []string
	User  *user.User
	Group *user.Group
	// contains filtered or unexported fields
}

func New

func New(bin string, args []string, user *user.User, group *user.Group) (*Command, error)

func (*Command) CombinedOutput

func (c *Command) CombinedOutput() ([]byte, error)

func (*Command) IsRunning

func (c *Command) IsRunning() bool

func (*Command) Kill

func (c *Command) Kill() error

func (*Command) Run

func (c *Command) Run() error

func (*Command) Start

func (c *Command) Start() error

func (*Command) Wait

func (c *Command) Wait() (*os.ProcessState, error)

Jump to

Keyboard shortcuts

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