util

package
v0.0.0-...-f05ad83 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2019 License: Apache-2.0 Imports: 13 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DockerLoad

func DockerLoad(ctx context.Context, image io.Reader) error

DockerLoad loads an image into docker from an io.Reader

func DockerRun

func DockerRun(ctx context.Context, config *config.Config, p *project.Project, args ...string) error

DockerRun runs a command within the project's container.

func DockerRunWithFD

func DockerRunWithFD(ctx context.Context, config *config.Config, p *project.Project, stdin io.Reader, stdout, stderr io.Writer, args ...string) error

DockerRunWithFD is like DockerRun but accepts stdin/stdout/stderr.

func Run

func Run(ctx context.Context, command string, args ...string) error

Run runs a system command.

func RunWithFD

func RunWithFD(ctx context.Context, stdin io.Reader, stdout, stderr io.Writer, command string, args ...string) error

RunWithFD is like Run, but accepts custom stdin/stdout/stderr.

Types

This section is empty.

Jump to

Keyboard shortcuts

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