filter

package
v0.0.0-...-d18c366 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Overview

Package filter provides a collection of gornir.FilterFunc

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func And

func And(filterFuncs ...gornir.FilterFunc) gornir.FilterFunc

And returns if all the filters returned true

func Errored

func Errored(host *gornir.Host) bool

Errored returns hosts that returned an error

func Not

func Not(filterFunc gornir.FilterFunc) gornir.FilterFunc

Not returns the inverse of the given FilterFunc

func Or

func Or(filterFuncs ...gornir.FilterFunc) gornir.FilterFunc

Or returns if at least a filter returned true

func WithError

func WithError(err error) gornir.FilterFunc

WithError returns hosts that return a given error

func WithHostname

func WithHostname(hostname string) gornir.FilterFunc

WithHostname returns hosts that have a given hostname

Types

This section is empty.

Jump to

Keyboard shortcuts

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