git

package
v0.13.0-beta3 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: Apache-2.0 Imports: 38 Imported by: 131

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSource

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

func Supported added in v0.4.0

func Supported() error

Supported returns nil if the system supports Git source

Types

type GitIdentifier added in v0.13.0

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

func NewGitIdentifier added in v0.13.0

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

func (*GitIdentifier) Capture added in v0.13.0

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

func (GitIdentifier) Scheme added in v0.13.0

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