Documentation
¶
Index ¶
- Constants
- Variables
- type Client
- func (c *Client) Close() error
- func (c *Client) Execute(ctx context.Context, shell string, opts ...client.ExecOption) (client.ICmd, error)
- func (c *Client) Get(ctx context.Context, src, dst string, opts ...client.GetOption) (err error)
- func (c *Client) Name() string
- func (c *Client) Put(ctx context.Context, src, dst string, opts ...client.PutOption) (err error)
- func (c *Client) ReadFile(ctx context.Context, name string) (data []byte, err error)
- func (c *Client) Stat(ctx context.Context, name string) (*client.Stat, error)
- type Cmd
- type Config
Constants ¶
View Source
const ( DefaultGRPCPort = 15450 DefaultPoolSize = 10 DefaultPoolTTL = time.Minute // DefaultPoolMaxStreams maximum streams on a connections (20) DefaultPoolMaxStreams = 20 // DefaultPoolMaxIdle maximum idle conns of a pool (50) DefaultPoolMaxIdle = 50 )
Variables ¶
View Source
var ( ErrAlreadyStarted = errors.New("cmd already started") ErrNotStarted = errors.New("cmd not started") )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
type Cmd ¶
type Cmd struct {
// contains filtered or unexported fields
}
func (*Cmd) CombinedOutput ¶
Click to show internal directories.
Click to hide internal directories.