git

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitPersister

type GitPersister struct {
	persist.Persister
	// contains filtered or unexported fields
}

GitPersister persists data by pushing changes to a git repository.

func New

New creates a new GitPersister. If expectChangesFromRemote is false, the Persister assumes that it is the only one pushing to the repository and pulls only in case of an error during push. If it is true, every action causes it to pull first.

func (*GitPersister) Delete

func (p *GitPersister) Delete(ctx context.Context, name, namespace string, gvk schema.GroupVersionKind, subPath string) error

func (*GitPersister) Exists

func (p *GitPersister) Exists(ctx context.Context, name, namespace string, gvk schema.GroupVersionKind, subPath string) (bool, error)

func (*GitPersister) Get

func (p *GitPersister) Get(ctx context.Context, name, namespace string, gvk schema.GroupVersionKind, subPath string) (*unstructured.Unstructured, error)

func (*GitPersister) InjectLogger

func (p *GitPersister) InjectLogger(il *logging.Logger)

func (*GitPersister) InternalPersister

func (p *GitPersister) InternalPersister() persist.Persister

func (*GitPersister) Persist

Jump to

Keyboard shortcuts

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