git

package
v0.20.1 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2025 License: Apache-2.0 Imports: 23 Imported by: 0

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, packs it into a tar.gz file, and returns a BlobAccess object for the tar.gz file.

Types

type CommitOptionBag

type CommitOptionBag interface {
	SetCommit(v string)
}

type Digest

type Digest interface {
	digest.Digest
}

type Option

type Option = optionutils.Option[*Options]

func WithCachingContext

func WithCachingContext(ctx datacontext.Context) Option

func WithCachingFileSystem

func WithCachingFileSystem(fs vfs.FileSystem) Option

func WithCommit

func WithCommit(ref string) Option

func WithCredentialContext

func WithCredentialContext(ctx credentials.ContextProvider) Option

func WithCredentials

func WithCredentials(c credentials.Credentials) Option

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 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