gitops

package
v0.0.0-...-f6f694c Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, scheme *runtime.Scheme, cfg Config, store *runtime.Store, status *runtime.StatusStore) error

Types

type Config

type Config struct {
	URL      string
	Branch   string
	Path     string
	Interval time.Duration
	Username string
	Password string
	SubDir   string
}

type Repo

type Repo struct {
	Repo   *git.Repository
	Work   *git.Worktree
	Auth   *http.BasicAuth
	Branch string
	Path   string
	SubDir string
}

func OpenOrClone

func OpenOrClone(ctx context.Context, cfg Config) (*Repo, error)

func (*Repo) CommitAndPush

func (r *Repo) CommitAndPush(ctx context.Context, msg string) error

func (*Repo) PullAndReconcile

func (r *Repo) PullAndReconcile(ctx context.Context, scheme *runtime.Scheme, store *runtime.Store, status *runtime.StatusStore) error

func (*Repo) PullOnce

func (r *Repo) PullOnce(ctx context.Context) error

Jump to

Keyboard shortcuts

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