Documentation ¶
Index ¶
- type Client
- type FileClient
- func (c *FileClient) Copy(ctx context.Context, filePath string, dstDir string) error
- func (c *FileClient) Exec(ctx context.Context, cmdStr string) error
- func (c *FileClient) Ls(ctx context.Context, st *time.Time, et *time.Time) error
- func (c *FileClient) Out() <-chan Line
- func (c *FileClient) RandomOne(ctx context.Context) error
- func (c *FileClient) Read(ctx context.Context, st *time.Time, et *time.Time) error
- func (c *FileClient) Tailf(ctx context.Context) error
- type Line
- type SSHClient
- func (c *SSHClient) Copy(ctx context.Context, filePath string, dstDir string) error
- func (c *SSHClient) Exec(ctx context.Context, cmd string) error
- func (c *SSHClient) Ls(ctx context.Context, st *time.Time, et *time.Time) error
- func (c *SSHClient) Out() <-chan Line
- func (c *SSHClient) RandomOne(ctx context.Context) error
- func (c *SSHClient) Read(ctx context.Context, st *time.Time, et *time.Time) error
- func (c *SSHClient) Tailf(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { Read(ctx context.Context, st *time.Time, et *time.Time) error Tailf(ctx context.Context) error RandomOne(ctx context.Context) error Ls(ctx context.Context, st *time.Time, et *time.Time) error Copy(ctx context.Context, filePath string, dstDir string) error Out() <-chan Line }
Client ...
func NewFileClient ¶
NewFileClient ...
type FileClient ¶
type FileClient struct {
// contains filtered or unexported fields
}
FileClient ...
func (*FileClient) Exec ¶
func (c *FileClient) Exec(ctx context.Context, cmdStr string) error
Exec ...
func (*FileClient) RandomOne ¶ added in v0.2.0
func (c *FileClient) RandomOne(ctx context.Context) error
RandomOne ...
Click to show internal directories.
Click to hide internal directories.