Documentation
¶
Overview ¶
Package selector implements label selector matching for Plugin-to-PaperMCServer relationships.
Index ¶
- func FindMatchingPlugins(ctx context.Context, c client.Client, namespace string, ...) ([]mcv1beta1.Plugin, error)
- func FindMatchingServers(ctx context.Context, c client.Client, namespace string, ...) ([]mcv1beta1.PaperMCServer, error)
- func MatchesSelector(labelSet map[string]string, selector metav1.LabelSelector) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindMatchingPlugins ¶
func FindMatchingPlugins( ctx context.Context, c client.Client, namespace string, serverLabels map[string]string, ) ([]mcv1beta1.Plugin, error)
FindMatchingPlugins finds all Plugin resources in a namespace whose instanceSelector matches the server labels. Returns a list of matching plugins or an error if the query fails.
func FindMatchingServers ¶
func FindMatchingServers( ctx context.Context, c client.Client, namespace string, selector metav1.LabelSelector, ) ([]mcv1beta1.PaperMCServer, error)
FindMatchingServers finds all PaperMCServer resources in a namespace that match the given selector. Returns a list of matching servers or an error if the query fails.
func MatchesSelector ¶
MatchesSelector checks if a set of labels matches a label selector. Returns true if the labels match the selector, false otherwise.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.