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, et *time.Time, timeFormat, timeZone string) error
- func (c *FileClient) Tailf(ctx context.Context) error
- type K8sClient
- func (c *K8sClient) Copy(ctx context.Context, filePath string, dstDir string) error
- func (c *K8sClient) Ls(ctx context.Context, st *time.Time, et *time.Time) error
- func (c *K8sClient) Out() <-chan Line
- func (c *K8sClient) RandomOne(ctx context.Context) error
- func (c *K8sClient) Read(ctx context.Context, st, et *time.Time, timeFormat, timeZone string) error
- func (c *K8sClient) Stream(ctx context.Context, follow bool, sinceSeconds, tailLines *int64) error
- func (c *K8sClient) 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, et *time.Time, timeFormat, timeZone string) error
- func (c *SSHClient) Tailf(ctx context.Context) error
- type Tail
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, et *time.Time, timeFormat, timeZone string) 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 ...
func NewK8sClient ¶ added in v0.10.0
NewK8sClient ...
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 ...
type K8sClient ¶ added in v0.10.0
type K8sClient struct {
// contains filtered or unexported fields
}
type Line ¶
type Line struct { Host string Path string Content string TimeZone string TimestampViaClient *time.Time }
Line ...
type SSHClient ¶
type SSHClient struct {
// contains filtered or unexported fields
}
SSHClient ...
type Tail ¶ added in v0.10.0
type Tail struct { ContextName string Namespace string PodName string ContainerName string Closed bool // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.