Documentation
¶
Index ¶
- func Sink(log logr.Logger) (observe.ObservationSink, error)
- type GitStorage
- func (s *GitStorage) GC(ctx context.Context) error
- func (s *GitStorage) OnAdd(ctx context.Context, timestamp time.Time, gvr schema.GroupVersionResource, ...)
- func (s *GitStorage) OnDelete(ctx context.Context, timestamp time.Time, gvr schema.GroupVersionResource, ...)
- func (s *GitStorage) OnUpdate(ctx context.Context, timestamp time.Time, gvr schema.GroupVersionResource, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GitStorage ¶
type GitStorage struct {
// contains filtered or unexported fields
}
func NewGitStorage ¶
func NewGitStorage(path string) (*GitStorage, 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.
func (*GitStorage) OnAdd ¶
func (s *GitStorage) OnAdd(ctx context.Context, timestamp time.Time, gvr schema.GroupVersionResource, obj interface{})
func (*GitStorage) OnDelete ¶
func (s *GitStorage) OnDelete(ctx context.Context, timestamp time.Time, gvr schema.GroupVersionResource, obj interface{})
func (*GitStorage) OnUpdate ¶
func (s *GitStorage) OnUpdate(ctx context.Context, timestamp time.Time, gvr schema.GroupVersionResource, oldObj, obj interface{})
Click to show internal directories.
Click to hide internal directories.