Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGitStorage ¶
func NewGitStorage(path string) (cache.ResourceEventHandler, error)
NewGitStorage returns the resource event handler capable of storing changes observed on resource into a Git repository. Each change is stored as separate commit which means a full history of the resource lifecycle is preserved.
Types ¶
type GitStorage ¶
type GitStorage struct { // Writing to Git repository must be synced otherwise Git will freak out sync.Mutex // contains filtered or unexported fields }
func (*GitStorage) OnAdd ¶
func (s *GitStorage) OnAdd(obj interface{})
func (*GitStorage) OnDelete ¶
func (s *GitStorage) OnDelete(obj interface{})
func (*GitStorage) OnUpdate ¶
func (s *GitStorage) OnUpdate(_, obj interface{})
Click to show internal directories.
Click to hide internal directories.