selectorutils

package
v1.1.0-beta11 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IdentityMatchesWorkload

func IdentityMatchesWorkload(selectors []*commonv1.IdentitySelector, workload *discoveryv1.Workload) bool

func SelectorMatchesDestination added in v1.1.0

func SelectorMatchesDestination(selectors []*commonv1.DestinationSelector, destination *discoveryv1.Destination) bool

func SelectorMatchesWorkload

func SelectorMatchesWorkload(ctx context.Context, selectors []*commonv1.WorkloadSelector, workload *discoveryv1.Workload) bool

func WorkloadSelectorContainsCluster

func WorkloadSelectorContainsCluster(selectors []*commonv1.WorkloadSelector, clusterName string) bool

Return true if any WorkloadSelector selects the specified clusterName

Types

This section is empty.

Jump to

Keyboard shortcuts

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