git

package
v0.0.0-...-e4a8a9b Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2026 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sink

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) GC

func (s *GitStorage) GC(ctx context.Context) error

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

Jump to

Keyboard shortcuts

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