storage

package
v1.5.0-alpha.3....-7948e3f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 12, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

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{})

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL