logstreamer

package
v0.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 5, 2021 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FakeGetLogs

func FakeGetLogs(ctx context.Context, opts Options) (io.ReadCloser, error)

func GetLogs

func GetLogs(ctx context.Context, opts Options) (io.ReadCloser, error)

func Stream

func Stream(ctx context.Context, f GetLogsFunc, out io.Writer, podsClient typedv1.PodInterface, podName, containerName string) error

Types

type GetLogsFunc

type GetLogsFunc func(context.Context, Options) (io.ReadCloser, error)

Substitutable for testing

type Options

type Options struct {
	PodsClient    typedv1.PodInterface
	PodName       string
	PodLogOptions *corev1.PodLogOptions
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL