Package logs
- type Client
- type ContainerLogs
- type Events
- type InvalidModeError
- func (e InvalidModeError) Error() string
- type LogsClient
- func NewLogsClient(platformClient platform.Client) *LogsClient
- func (o *LogsClient) DisplayLogs(ctx context.Context, mode string, componentName string, namespace string, follow bool, out io.Writer) error
- func (o *LogsClient) GetLogsForMode(ctx context.Context, mode string, componentName string, namespace string, follow bool) (Events, error)
Package files
errors.go
interface.go
logs.go
type Client interface {
DisplayLogs(
ctx context.Context,
mode string,
componentName string,
namespace string,
follow bool,
out io.Writer,
) error
GetLogsForMode(
ctx context.Context,
mode string,
componentName string,
namespace string,
follow bool,
) (Events, error)
}
type ContainerLogs struct {
PodName string
ContainerName string
Logs io.ReadCloser
}
type Events struct {
Logs chan ContainerLogs
Err chan error
Done chan struct{}
}
type InvalidModeError struct {
}
func (InvalidModeError) Error
¶
func (e InvalidModeError) Error() string
type LogsClient struct {
}
func NewLogsClient(platformClient platform.Client) *LogsClient
func (o *LogsClient) DisplayLogs(
ctx context.Context,
mode string,
componentName string,
namespace string,
follow bool,
out io.Writer,
) error
func (o *LogsClient) GetLogsForMode(
ctx context.Context,
mode string,
componentName string,
namespace string,
follow bool,
) (Events, error)