client

package
v1.28.3 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package client provides the client interface for 'exec'

Index

Constants

This section is empty.

Variables

View Source
var DefaultStreaming = false

Default value for using streaming exec. This is exposed so that clients can set a default that works for their environment. StreamingExec was added after Exec, so policies or sansshell nodes may not have been updated to support streaming.

Functions

func ExecRemoteCommand

func ExecRemoteCommand(ctx context.Context, conn *proxy.Conn, binary string, args ...string) (*pb.ExecResponse, error)

ExecRemoteCommand is a helper function for execing a command on a remote host using a proxy.Conn. If the conn is defined for >1 targets this will return an error.

func ExecRemoteCommandMany added in v1.23.6

func ExecRemoteCommandMany(ctx context.Context, conn *proxy.Conn, binary string, args ...string) ([]*pb.RunManyResponse, error)

ExecRemoteCommand is a helper function for execing a command on one or remote hosts using a proxy.Conn. `binary` refers to the absolute path of the binary file on the remote host.

Types

This section is empty.

Jump to

Keyboard shortcuts

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