tail

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tail

type Tail struct {
	// contains filtered or unexported fields
}

Tail represents a "tail" command streaming log outputs to stdout interface, and errors are written to stderr interface directly.

func NewTail

func NewTail(ctx context.Context, clientset kubernetes.Interface) *Tail

NewTail instantiate Tail, using by default regular stdout and stderr.

func (*Tail) SetStderr

func (t *Tail) SetStderr(w io.Writer)

SetStderr set and alternative stderr writer.

func (*Tail) SetStdout

func (t *Tail) SetStdout(w io.Writer)

SetStdout set and alternative stdout writer.

func (*Tail) Start

func (t *Tail) Start(ns, podName, container string)

Start start streaming logs for informed target.

func (*Tail) Stop

func (t *Tail) Stop()

Stop closes stop channel to stop log streaming.

Jump to

Keyboard shortcuts

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