Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileEventHandler ¶
type FileEventHandlerFuncs ¶
type FileEventHandlerFuncs struct { AddFunc func(updatedList []*File, obj *File) UpdateFunc func(updatedList []*File, newObj *File) DeleteFunc func(updatedList []*File, obj *File) }
FileEventHandlerFuncs is an adaptor to let you easily specify as many or as few of the notification functions as you want while still implementing FileEventHandler.
func (FileEventHandlerFuncs) OnAdd ¶
func (r FileEventHandlerFuncs) OnAdd(updatedList []*File, obj *File)
OnAdd calls AddFunc if it's not nil.
func (FileEventHandlerFuncs) OnDelete ¶
func (r FileEventHandlerFuncs) OnDelete(updatedList []*File, obj *File)
OnDelete calls DeleteFunc if it's not nil.
func (FileEventHandlerFuncs) OnUpdate ¶
func (r FileEventHandlerFuncs) OnUpdate(updatedList []*File, newObj *File)
OnUpdate calls UpdateFunc if it's not nil.
type FileStorage ¶
type SecretEventHandler ¶
type SecretEventHandlerFuncs ¶
type SecretEventHandlerFuncs struct { AddFunc func(updatedList []*Secret, obj *Secret) UpdateFunc func(updatedList []*Secret, newObj *Secret) DeleteFunc func(updatedList []*Secret, obj *Secret) }
SecretEventHandlerFuncs is an adaptor to let you easily specify as many or as few of the notification functions as you want while still implementing SecretEventHandler.
func (SecretEventHandlerFuncs) OnAdd ¶
func (r SecretEventHandlerFuncs) OnAdd(updatedList []*Secret, obj *Secret)
OnAdd calls AddFunc if it's not nil.
func (SecretEventHandlerFuncs) OnDelete ¶
func (r SecretEventHandlerFuncs) OnDelete(updatedList []*Secret, obj *Secret)
OnDelete calls DeleteFunc if it's not nil.
func (SecretEventHandlerFuncs) OnUpdate ¶
func (r SecretEventHandlerFuncs) OnUpdate(updatedList []*Secret, newObj *Secret)
OnUpdate calls UpdateFunc if it's not nil.
Click to show internal directories.
Click to hide internal directories.