podlogs

package
v0.0.0-...-1dfa148 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrPodNotFound      = errors.New(`no logs return,because not found instance`)
	ErrTooManyPodsFound = errors.New(`too many pods found in the job,`)
	ErrPodNotRunning    = errors.New(`is not running`)
	ErrPodStatusUnknown = errors.New(`status is unknown`)
)

Functions

func ParseSinceSeconds

func ParseSinceSeconds(since string) (*int64, error)

func ParseSinceTime

func ParseSinceTime(sinceTime string) (*metav1.Time, error)

Types

type OuterRequestArgs

type OuterRequestArgs struct {
	PodName      string
	Namespace    string
	Follow       bool
	Tail         int
	RetryCount   int
	RetryTimeout time.Duration
	SinceSeconds string
	SinceTime    string
	Timestamps   bool
	KubeClient   kubernetes.Interface
}

type PodLogger

type PodLogger struct {
	*types.LogArgs
	// contains filtered or unexported fields
}

func NewPodLogger

func NewPodLogger(args *types.LogArgs) *PodLogger

func (*PodLogger) AcceptLogs

func (p *PodLogger) AcceptLogs() (int, error)

func (*PodLogger) Print

func (p *PodLogger) Print() (int, error)

Jump to

Keyboard shortcuts

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