Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WorkloadSelector ¶
type WorkloadSelector struct {
KubeClient kubernetes.Interface
}
WorkloadSelector type for accessing functions
func (*WorkloadSelector) DoesWorkloadMatch ¶
func (w *WorkloadSelector) DoesWorkloadMatch(workload *unstructured.Unstructured, namespaceSelector *metav1.LabelSelector, objectSelector *metav1.LabelSelector, apiGroups []string, apiVersions []string, resources []string) (bool, error)
DoesWorkloadMatch returns a boolean indicating whether an unstructured resource matches any of the criteria for a match. The criteria used to match is a namespace label selector, object label selector, and group, version, and kind of resource.
Click to show internal directories.
Click to hide internal directories.