Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Matcher ¶
type Matcher struct {
// contains filtered or unexported fields
}
Matcher provides functionality to match and resolve Kubernetes resource kinds
func NewMatcher ¶
func NewMatcher() *Matcher
NewMatcher creates a new Matcher with common Kubernetes resource kinds
func (*Matcher) Match ¶
Match checks if a resource kind matches a given filter The filter can be a short name, singular, or plural form
func (*Matcher) MatchesAny ¶
MatchesAny checks if a resource kind matches any of the filters
type ResourceKind ¶
type ResourceKind struct {
Kind string // Canonical kind name (e.g., "Deployment")
Singular string // Singular form (e.g., "deployment")
Plural string // Plural form (e.g., "deployments")
ShortNames []string // Short names (e.g., ["deploy"])
}
ResourceKind represents a Kubernetes resource with its various name forms
Click to show internal directories.
Click to hide internal directories.