package
Version:
v0.2.12
Opens a new window with list of versions in this module.
Published: Nov 22, 2020
License: MPL-2.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func FakeGetLogs(ctx context.Context, opts Options) (io.ReadCloser, error)
func GetLogs(ctx context.Context, opts Options) (io.ReadCloser, error)
func Stream(ctx context.Context, f GetLogsFunc, out io.Writer, podsClient typedv1.PodInterface, podName, containerName string) error
type GetLogsFunc func(context.Context, Options) (io.ReadCloser, error)
Substitutable for testing
type Options struct {
PodsClient typedv1.PodInterface
PodName string
PodLogOptions *corev1.PodLogOptions
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.