exec

package
v0.0.45 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exec

func Exec(
	timeout time.Duration,
	name string,
	args ...string,
) (string, string, error)

timout ms

Types

type CommandBuilder

type CommandBuilder struct {
	// contains filtered or unexported fields
}

func NewCommandBuilder

func NewCommandBuilder(
	options ...CommandBuilderOption,
) (*CommandBuilder, error)

func (*CommandBuilder) ApplyOptions

func (o *CommandBuilder) ApplyOptions(
	options ...CommandBuilderOption,
) *CommandBuilder

type CommandBuilderOption

type CommandBuilderOption interface {
	// contains filtered or unexported methods
}

func WithTimeout

func WithTimeout(timeout time.Duration) CommandBuilderOption

timeout

type CommandBuilderOptionFunc

type CommandBuilderOptionFunc func(*CommandBuilder)

CopyDirOptionFunc wraps a function that modifies CopyDir into an implementation of the CopyDirOption interface.

type EmptyCommandBuilderOption

type EmptyCommandBuilderOption struct{}

EmptyCommandBuilderOption does not alter the configuration. It can be embedded in another structure to build custom options.

This API is EXPERIMENTAL.

Jump to

Keyboard shortcuts

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