filter

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerContext

type ContainerContext struct {
	Container        *corev1.ContainerStatus
	Reason           string
	Msg              string
	ExitCode         int32
	Logs             string
	HasRestarts      bool
	LastTerminatedOn time.Time
	State            string
	Status           string
}

type ContainerKillingFilter

type ContainerKillingFilter struct{}

func (ContainerKillingFilter) Execute

func (f ContainerKillingFilter) Execute(ctx *Context) bool

type ContainerLogsFilter

type ContainerLogsFilter struct{}

func (ContainerLogsFilter) Execute

func (f ContainerLogsFilter) Execute(ctx *Context) bool

type ContainerNameFilter

type ContainerNameFilter struct{}

func (ContainerNameFilter) Execute

func (f ContainerNameFilter) Execute(ctx *Context) bool

type ContainerReasonsFilter

type ContainerReasonsFilter struct{}

func (ContainerReasonsFilter) Execute

func (f ContainerReasonsFilter) Execute(ctx *Context) bool

type ContainerRestartsFilter

type ContainerRestartsFilter struct{}

func (ContainerRestartsFilter) Execute

func (f ContainerRestartsFilter) Execute(ctx *Context) bool

type ContainerStateFilter

type ContainerStateFilter struct{}

func (ContainerStateFilter) Execute

func (f ContainerStateFilter) Execute(ctx *Context) bool

type Context

type Context struct {
	Client kubernetes.Interface
	Config *config.Config
	Memory storage.Storage

	Pod    *corev1.Pod
	EvType string

	Owner  *apiv1.OwnerReference
	Events *[]corev1.Event

	PodHasIssues        bool
	ContainersHasIssues bool
	PodReason           string
	PodMsg              string

	// Container
	Container *ContainerContext
}

type EventFilter

type EventFilter struct{}

func (EventFilter) Execute

func (f EventFilter) Execute(ctx *Context) bool

type Filter

type Filter interface {
	Execute(ctx *Context) (ShouldStop bool)
}

type FilterResult

type FilterResult struct {
	ShouldStop bool
}

type NamespaceFilter added in v0.9.3

type NamespaceFilter struct{}

func (NamespaceFilter) Execute added in v0.9.3

func (f NamespaceFilter) Execute(ctx *Context) bool

type PodEventsFilter

type PodEventsFilter struct{}

func (PodEventsFilter) Execute

func (f PodEventsFilter) Execute(ctx *Context) bool

type PodNameFilter added in v0.9.3

type PodNameFilter struct{}

func (PodNameFilter) Execute added in v0.9.3

func (f PodNameFilter) Execute(ctx *Context) bool

type PodOwnersFilter

type PodOwnersFilter struct{}

func (PodOwnersFilter) Execute

func (f PodOwnersFilter) Execute(ctx *Context) bool

type PodStatusFilter

type PodStatusFilter struct{}

func (PodStatusFilter) Execute

func (f PodStatusFilter) Execute(ctx *Context) bool

Jump to

Keyboard shortcuts

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