git

package
v0.0.0-...-2745715 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSource

func NewSource(opt Opt) (source.Source, error)

func Supported

func Supported() error

Supported returns nil if the system supports Git source

Types

type GitIdentifier

type GitIdentifier struct {
	Remote           string
	Ref              string
	Subdir           string
	KeepGitDir       bool
	AuthTokenSecret  string
	AuthHeaderSecret string
	MountSSHSock     string
	KnownSSHHosts    string
}

func NewGitIdentifier

func NewGitIdentifier(remoteURL string) (*GitIdentifier, error)

func (*GitIdentifier) Capture

func (id *GitIdentifier) Capture(c *provenance.Capture, pin string) error

func (GitIdentifier) Scheme

func (GitIdentifier) Scheme() string

type Opt

type Opt struct {
	CacheAccessor cache.Accessor
}

Jump to

Keyboard shortcuts

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