client

package
v0.0.0-...-48f5b12 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 11 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTimeoutSeconds

func GetTimeoutSeconds() int

func Init

func Init(socketPath string)

func SetTimeoutSeconds

func SetTimeoutSeconds(secs int)

Types

type CloseOnce

type CloseOnce struct {
	*os.File
	// contains filtered or unexported fields
}

func (*CloseOnce) Close

func (c *CloseOnce) Close() error

type Cmd

type Cmd struct {
	*Executor

	Path string
	Args []string
	Env  []string
	Dir  string

	Stdin  io.Reader
	Stdout io.Writer
	Stderr io.Writer
	// contains filtered or unexported fields
}

func Command

func Command(path string, args ...string) *Cmd

func CommandContext

func CommandContext(ctx context.Context, path string, args ...string) *Cmd

func (*Cmd) CombinedOutput

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

func (*Cmd) Connect

func (c *Cmd) Connect(ctx context.Context, opts ...grpc.CallOption,
) error

func (*Cmd) Kill

func (c *Cmd) Kill() error

func (*Cmd) Output

func (c *Cmd) Output() ([]byte, error)

func (*Cmd) Run

func (c *Cmd) Run() error

func (*Cmd) Start

func (c *Cmd) Start() error

func (*Cmd) StderrPipe

func (c *Cmd) StderrPipe() (io.ReadCloser, error)

func (*Cmd) StdinPipe

func (c *Cmd) StdinPipe() (io.WriteCloser, error)

func (*Cmd) StdoutPipe

func (c *Cmd) StdoutPipe() (io.ReadCloser, error)

func (*Cmd) Wait

func (c *Cmd) Wait() error

type Executor

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

type ExitError

type ExitError struct {
	ExitStatus syscall.WaitStatus
	Stderr     []byte
}

func (*ExitError) Error

func (e *ExitError) Error() string

func (*ExitError) Sys

func (e *ExitError) Sys() interface{}

Jump to

Keyboard shortcuts

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