filter

package
v0.42.2 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package filter provides CLI-controlled filtering of namespaces by type. It provides the CLI commands "--filter" flag.

Index

Constants

View Source
const (
	FilterFlagName      = "filter"
	FilterFlagShorthand = "f"
)

Names of the CLI flags provided in this package.

Variables

This section is empty.

Functions

func New

func New(cmd *cobra.Command) func(model.Namespace) bool

New returns a filter function configured from the filter flag of the passed command, where the returned function returns true if the given Linux-kernel namespace passes the namespace type filter.

func SetupCLI

func SetupCLI(cmd *cobra.Command)

SetupCLI adds the "--filter" flag to the specified command. The filter flag accepts a set of namespace type names, either separated by commas, or specified using multiple "--filter" flags.

Types

This section is empty.

Jump to

Keyboard shortcuts

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