type Selector … func (s *Selector) Copy() Selector { … } func (s *Selector) String() string { … } type SelectorRegex … // NewSelectorRegex returns a pointer to a new SelectorRegex // which uses the same condition as s. func NewSelectorRegex(s *Selector) (*SelectorRegex, error) { … } func anchorRegex(pattern string) string { … } // MatchGvk return true if gvk can be matched by s. func (s *SelectorRegex) MatchGvk(gvk resid.Gvk) bool { … } // MatchName returns true if the name in selector is // empty or the n can be matches by the name in selector func (s *SelectorRegex) MatchName(n string) bool { … } // MatchNamespace returns true if the namespace in selector is // empty or the ns can be matches by the namespace in selector func (s *SelectorRegex) MatchNamespace(ns string) bool { … }