package git

import "github.com/moby/buildkit/source/git"

Index

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
}

Source Files

identifier.go source.go source_unix.go

Version
v0.14.0-rc1
Published
May 31, 2024
Platform
js/wasm
Imports
38 packages
Last checked
12 hours ago

Tools for package owners.