git

package
v0.55.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: Apache-2.0 Imports: 35 Imported by: 1 module, 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BlobAccess

func BlobAccess(opt ...Option) (_ bpi.BlobAccess, rerr error)

BlobAccess clones the repository into a temporary filesystem and returns a tar.gz containing the checked-out files. WithFullHistory also includes Git history.

Types

type CommitOptionBag

type CommitOptionBag interface {
	SetCommit(v string)
}

type Digest

type Digest interface {
	digest.Digest
}

type Option

type Option interface {
	ApplyTo(opts *Options)
}

func WithCachingContext

func WithCachingContext(ctx datacontext.Context) Option

func WithCachingFileSystem

func WithCachingFileSystem(fs vfs.FileSystem) Option

func WithCommit

func WithCommit(commit string) Option

func WithCredentialContext

func WithCredentialContext(ctx credentials.ContextProvider) Option

func WithCredentials

func WithCredentials(c credentials.Credentials) Option

func WithFullHistory added in v0.55.0

func WithFullHistory() Option

WithFullHistory includes the selected commit's reachable history in the archive.

func WithLoggingContext

func WithLoggingContext(ctx logging.ContextProvider) Option

func WithPathFileSystem

func WithPathFileSystem(fs vfs.FileSystem) Option

func WithRef

func WithRef(ref string) Option

func WithURL

func WithURL(url string) Option

type OptionFunc added in v0.29.0

type OptionFunc func(opts *Options)

func (OptionFunc) ApplyTo added in v0.29.0

func (f OptionFunc) ApplyTo(opts *Options)

type Options

func (*Options) ApplyTo

func (o *Options) ApplyTo(opts *Options)

func (*Options) Cache

func (o *Options) Cache() *tmpcache.Attribute

func (*Options) CachingFilesystem

func (o *Options) CachingFilesystem() (vfs.FileSystem, func() error, error)

func (*Options) ConfigureAuthMethod

func (o *Options) ConfigureAuthMethod() error

func (*Options) Logger

func (o *Options) Logger(keyValuePairs ...interface{}) logging.Logger

func (*Options) SetCommit

func (o *Options) SetCommit(v string)

func (*Options) SetRef

func (o *Options) SetRef(v string)

func (*Options) SetURL

func (o *Options) SetURL(v string)

type RefOptionBag

type RefOptionBag interface {
	SetRef(v string)
}

type URLOptionBag

type URLOptionBag interface {
	SetURL(v string)
}

Jump to

Keyboard shortcuts

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