filter

package
v0.8.4 Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package filter provides the general struct used to filter the imports

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filter

type Filter struct {
	Tags    []tag.Tag
	Include []string
	Exclude []string
	Targets []string
	// contains filtered or unexported fields
}

Filter is the list of all possible filters that can be used to filter the results

func (*Filter) IsExcluded

func (f *Filter) IsExcluded(v ...string) bool

IsExcluded checks if the v is on the Exclude list

func (*Filter) IsIncluded added in v0.5.0

func (f *Filter) IsIncluded(v ...string) bool

IsIncluded checks if the v is on the Include list

func (*Filter) String added in v0.1.6

func (f *Filter) String() string

String returns a stringification of the Filter

func (*Filter) TargetsTypesWithIDs added in v0.4.0

func (f *Filter) TargetsTypesWithIDs() map[string][]string

TargetsTypesWithIDs returns all the types (ex: aws_instance) from the list of Targets and the IDs

func (*Filter) Validate added in v0.4.0

func (f *Filter) Validate() error

Validate validates that the data inside of the filters is right

Jump to

Keyboard shortcuts

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