command

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2016 License: Apache-2.0 Imports: 9 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	Output string // name of command output file
	// contains filtered or unexported fields
}

command encapsulates a command (a list of arguments) to be run

func New

func New(args []string, link string) *Command

func (*Command) Args

func (c *Command) Args() []string

func (*Command) Content

func (c *Command) Content() *bytes.Buffer

func (*Command) Header

func (c *Command) Header() *tar.Header
func (c *Command) Link() string

func (*Command) Name

func (c *Command) Name() string

func (*Command) Run

func (c *Command) Run() error

Run runs the command, saving output to a Reader

Jump to

Keyboard shortcuts

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