gitops

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2026 License: Apache-2.0 Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package gitops runs the git binary; go-git cannot do the three-way merges upgrades need.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Available

func Available() error

func GitHubURL

func GitHubURL(slug string) string

Types

type Git

type Git struct {
	Dir string
	// contains filtered or unexported fields
}

func New

func New(dir, token, userName, userEmail string) *Git

New binds git to dir. The token is passed as a GitHub auth header through GIT_CONFIG_* variables, so it never appears in arguments, remote URLs or .git/config.

func (*Git) Lines

func (g *Git) Lines(ctx context.Context, args ...string) ([]string, error)

Lines runs git and splits stdout into non-empty lines.

func (*Git) Run

func (g *Git) Run(ctx context.Context, args ...string) (string, error)

Run executes git in g.Dir and returns trimmed stdout; errors carry stderr.

Jump to

Keyboard shortcuts

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