git

package
v0.40.1 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 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 CommandRunner added in v0.40.0

type CommandRunner interface {
	RunMultiple(argss [][]string, env []string, dstPath string) error
	Run(args []string, env []string, dstPath string) (string, string, error)
}

type Git

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

func NewGit

func NewGit(opts ctlconf.DirectoryContentsGit,
	infoLog io.Writer, refFetcher ctlfetch.RefFetcher) *Git

func NewGitWithRunner added in v0.40.0

func NewGitWithRunner(opts ctlconf.DirectoryContentsGit,
	infoLog io.Writer, refFetcher ctlfetch.RefFetcher, cmdRunner CommandRunner) *Git

NewGitWithRunner creates a Git retriever with a provided runner

func (*Git) Retrieve

func (t *Git) Retrieve(dstPath string, tempArea ctlfetch.TempArea) (GitInfo, error)

type GitInfo

type GitInfo struct {
	SHA         string
	Tags        []string
	CommitTitle string
}

type Sync

type Sync struct {
	// contains filtered or unexported fields
}

func NewSync

func NewSync(opts ctlconf.DirectoryContentsGit,
	log io.Writer, refFetcher ctlfetch.RefFetcher) Sync

func (Sync) Desc

func (d Sync) Desc() string

func (Sync) Sync

func (d Sync) Sync(dstPath string, tempArea ctlfetch.TempArea) (ctlconf.LockDirectoryContentsGit, error)

type Verification

type Verification struct {
	// contains filtered or unexported fields
}

Verification verifies Git commit/tag against a set of public keys (Git details: https://github.com/git/git/blob/e2850a27a95c6f5b141dd88398b1702d2e524a81/Documentation/technical/hash-function-transition.txt#L386-L414)

func (Verification) Verify

func (v Verification) Verify(ref string) error

Jump to

Keyboard shortcuts

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