Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultIncludeNamespaces = []string{ "fat", "sit", "uat", } DefaultExcludeNamespaces = []string{ "system", "kube", } DefaultExcludeNames = []string{ "system", "admin", } )
Functions ¶
This section is empty.
Types ¶
type LabelCreatePredicate ¶
type LabelCreatePredicate struct { Force bool IncludeLabels map[string]string ExcludeLabels map[string]string }
func (LabelCreatePredicate) Create ¶
func (d LabelCreatePredicate) Create(e event.CreateEvent) bool
func (LabelCreatePredicate) Delete ¶
func (d LabelCreatePredicate) Delete(e event.DeleteEvent) bool
func (LabelCreatePredicate) Generic ¶
func (d LabelCreatePredicate) Generic(e event.GenericEvent) bool
func (LabelCreatePredicate) Update ¶
func (d LabelCreatePredicate) Update(e event.UpdateEvent) bool
type NameCreatePredicate ¶
type NameCreatePredicate struct { //include namespaces has higher priority IncludeNames []string ExcludeNames []string }
func (NameCreatePredicate) Create ¶
func (r NameCreatePredicate) Create(e event.CreateEvent) bool
func (NameCreatePredicate) Delete ¶
func (r NameCreatePredicate) Delete(e event.DeleteEvent) bool
func (NameCreatePredicate) Generic ¶
func (r NameCreatePredicate) Generic(e event.GenericEvent) bool
func (NameCreatePredicate) Update ¶
func (r NameCreatePredicate) Update(e event.UpdateEvent) bool
type NameDeletePredicate ¶
type NameDeletePredicate struct { //include namespaces has higher priority IncludeNames []string ExcludeNames []string }
func (NameDeletePredicate) Create ¶
func (r NameDeletePredicate) Create(e event.CreateEvent) bool
func (NameDeletePredicate) Delete ¶
func (r NameDeletePredicate) Delete(e event.DeleteEvent) bool
func (NameDeletePredicate) Generic ¶
func (r NameDeletePredicate) Generic(e event.GenericEvent) bool
func (NameDeletePredicate) Update ¶
func (r NameDeletePredicate) Update(e event.UpdateEvent) bool
type NamespaceCreatePredicate ¶
type NamespaceCreatePredicate struct { //include namespaces has higher priority IncludeNamespaces []string ExcludeNamespaces []string }
func (NamespaceCreatePredicate) Create ¶
func (r NamespaceCreatePredicate) Create(e event.CreateEvent) bool
func (NamespaceCreatePredicate) Delete ¶
func (r NamespaceCreatePredicate) Delete(e event.DeleteEvent) bool
func (NamespaceCreatePredicate) Generic ¶
func (r NamespaceCreatePredicate) Generic(e event.GenericEvent) bool
func (NamespaceCreatePredicate) Update ¶
func (r NamespaceCreatePredicate) Update(e event.UpdateEvent) bool
type NamespaceDeletePredicate ¶
type NamespaceDeletePredicate struct { //include namespaces has higher priority IncludeNamespaces []string ExcludeNamespaces []string }
func (NamespaceDeletePredicate) Create ¶
func (r NamespaceDeletePredicate) Create(e event.CreateEvent) bool
func (NamespaceDeletePredicate) Delete ¶
func (r NamespaceDeletePredicate) Delete(e event.DeleteEvent) bool
func (NamespaceDeletePredicate) Generic ¶
func (r NamespaceDeletePredicate) Generic(e event.GenericEvent) bool
func (NamespaceDeletePredicate) Update ¶
func (r NamespaceDeletePredicate) Update(e event.UpdateEvent) bool
Click to show internal directories.
Click to hide internal directories.