filters

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NodeIDTag   = "marin3r.3scale.net/node-id"
	VersionTag  = "marin3r.3scale.net/config-version"
	EnvoyAPITag = "marin3r.3scale.net/envoy-api"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EnvoyAPIFilter

type EnvoyAPIFilter struct {
	Value string
}

EnvoyAPIFilter is a struct used to filter revisions by theis version

func (*EnvoyAPIFilter) ApplyToLabelSelector

func (ef *EnvoyAPIFilter) ApplyToLabelSelector(selector client.MatchingLabels)

ApplyToLabelSelector applies the VersionFilter to the given MatchingLabels selector

type NodeIDFilter

type NodeIDFilter struct {
	Value string
}

NodeIDFilter is a struct used to filter revisions by theis version

func (*NodeIDFilter) ApplyToLabelSelector

func (nf *NodeIDFilter) ApplyToLabelSelector(selector client.MatchingLabels)

ApplyToLabelSelector applies the VersionFilter to the given MatchingLabels selector

type RevisionFilter

type RevisionFilter interface {
	ApplyToLabelSelector(client.MatchingLabels)
}

RevisionFilter is an interface that revision label selectors implement

func ByEnvoyAPI

func ByEnvoyAPI(envoyAPI envoy.APIVersion) RevisionFilter

ByEnvoyAPI returns a NodeIDFilter

func ByNodeID

func ByNodeID(nodeID string) RevisionFilter

ByNodeID returns a NodeIDFilter

func ByVersion

func ByVersion(version string) RevisionFilter

ByVersion returns a VersionFilter

type VersionFilter

type VersionFilter struct {
	Value string
}

VersionFilter is a struct used to filter revisions by their version

func (*VersionFilter) ApplyToLabelSelector

func (vf *VersionFilter) ApplyToLabelSelector(selector client.MatchingLabels)

ApplyToLabelSelector applies the VersionFilter to the given MatchingLabels selector

Jump to

Keyboard shortcuts

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