pkg

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddNamespaceFlags

func AddNamespaceFlags(flags *pflag.FlagSet, allowAll bool)

AddNamespaceFlags adds the namespace-related flags: * --namespace * --all-namespaces

func NewLogCommand

func NewLogCommand() *cobra.Command

Types

type Log

type Log struct {
	// Message is the log message itself
	Message string

	// namespace of the pod
	Namespace string

	// podName of the pod
	PodName string

	// PodIndex is the pod's short name
	PodIndex string

	// revisionName of the container
	RevisionName string

	// PodColor is the color for printing a pod
	PodColor *color.Color

	// Revision color to use
	RevisionColor *color.Color
}

Log is the object which will be used together with the template to generate the output.

type Tail

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

func NewTail

func NewTail(namespace, podName, podIndex, revisionName string) *Tail

func (*Tail) Close

func (t *Tail) Close()

close stops tailing

func (*Tail) Start

func (t *Tail) Start(ctx context.Context, pod v1.PodInterface)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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