filter

package
v1.0.46 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2023 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DestinationFilters

type DestinationFilters interface {
	// Any returns a filter that matches any destination
	Any() terra.DestinationFilter
	// HasName returns a filter that matches destinations with the given name(s)
	HasName(names ...string) terra.DestinationFilter
	// HasBase returns a filter that matches destinations with the given configuration base(s)
	HasBase(bases ...string) terra.DestinationFilter
	// OfType returns a filter that matches destinations of the given type
	OfType(destinationType terra.DestinationType) terra.DestinationFilter
	// OfTypeName returns a filter that matches the destination type name
	OfTypeName(typeNames ...string) terra.DestinationFilter
	// IsEnvironmentMatching returns a filter that matches destinations that are environments that match the given terra.EnvironmentFilter
	IsEnvironmentMatching(filter terra.EnvironmentFilter) terra.DestinationFilter
	// IsCluster returns a filter that matches clusters
	IsCluster() terra.DestinationFilter
	// IsEnvironment returns a filter that matches environments
	IsEnvironment() terra.DestinationFilter
	// Or returns a filter that matches destinations that match _any_ of the given filters
	Or(filters ...terra.DestinationFilter) terra.DestinationFilter
	//And returns a filter that matches destinations that match _all_ of the given filters
	And(filters ...terra.DestinationFilter) terra.DestinationFilter
}

DestinationFilters provides helper functions for building terra.DestinationFilter instances

func Destinations

func Destinations() DestinationFilters

type EnvironmentFilters

type EnvironmentFilters interface {
	// Any returns a filter that matches any environment
	Any() terra.EnvironmentFilter
	// HasBase returns a filter that matches environments with the given configuration base(s)
	HasBase(base ...string) terra.EnvironmentFilter
	// HasLifecycle matches environments with the given lifecycle(s)
	HasLifecycle(lifecycle terra.Lifecycle) terra.EnvironmentFilter
	// HasLifecycleName matches environments with the given lifecycle name(s)
	HasLifecycleName(lifecycleName ...string) terra.EnvironmentFilter
	// HasTemplate matches environments with the given template
	HasTemplate(template terra.Environment) terra.EnvironmentFilter
	// HasTemplateName matches environments with the given template name(s)
	HasTemplateName(templateNames ...string) terra.EnvironmentFilter
	// NameIncludes returns environments with names that include the given substring
	NameIncludes(substring string) terra.EnvironmentFilter
	// OlderThan returns environments that are older than a given duration
	OlderThan(dur time.Duration) terra.EnvironmentFilter
	// AutoDeletable returns environments that can be automatically deleted
	AutoDeletable() terra.EnvironmentFilter
	// Or returns a filter that matches environments that match _any_ of the given filters
	Or(filters ...terra.EnvironmentFilter) terra.EnvironmentFilter
	//And returns a filter that matches environments that match _all_ of the given filters
	And(filters ...terra.EnvironmentFilter) terra.EnvironmentFilter
}

EnvironmentFilters provides helper functions for building terra.EnvironmentFilter instances

func Environments

func Environments() EnvironmentFilters

type ReleaseFilters

type ReleaseFilters interface {
	// Any returns a filter that matches any release
	Any() terra.ReleaseFilter
	// HasName returns a filter that matches releases with the given name(s)
	HasName(releaseName ...string) terra.ReleaseFilter
	// HasFullName returns a filter that matches release with the given full name(s)
	HasFullName(releaseFullName ...string) terra.ReleaseFilter
	// HasDestinationName returns a filter that matches releases with the given destination
	HasDestinationName(destinationName string) terra.ReleaseFilter
	// DestinationMatches returns a filter that matches releases with matching destinations
	DestinationMatches(filter terra.DestinationFilter) terra.ReleaseFilter
	// BelongsToEnvironment returns a filter that matches releases in the given environment
	BelongsToEnvironment(env terra.Environment) terra.ReleaseFilter
	// Or returns a filter that matches environments that match _any_ of the given filters
	Or(filters ...terra.ReleaseFilter) terra.ReleaseFilter
	//And returns a filter that matches environments that match _all_ of the given filters
	And(filters ...terra.ReleaseFilter) terra.ReleaseFilter
}

ReleaseFilters provides helper functions for building terra.ReleaseFilter instances

func Releases

func Releases() ReleaseFilters

Releases is for building terra.ReleaseFilter instances

Jump to

Keyboard shortcuts

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