Documentation
¶
Index ¶
- func BlobAccess(opt ...Option) (_ bpi.BlobAccess, rerr error)
- type CommitOptionBag
- type Digest
- type Option
- func WithCachingContext(ctx datacontext.Context) Option
- func WithCachingFileSystem(fs vfs.FileSystem) Option
- func WithCommit(ref string) Option
- func WithCredentialContext(ctx credentials.ContextProvider) Option
- func WithCredentials(c credentials.Credentials) Option
- func WithLoggingContext(ctx logging.ContextProvider) Option
- func WithPathFileSystem(fs vfs.FileSystem) Option
- func WithRef(ref string) Option
- func WithURL(url string) Option
- type Options
- func (o *Options) ApplyTo(opts *Options)
- func (o *Options) Cache() *tmpcache.Attribute
- func (o *Options) CachingFilesystem() (vfs.FileSystem, func() error, error)
- func (o *Options) ConfigureAuthMethod() error
- func (o *Options) Logger(keyValuePairs ...interface{}) logging.Logger
- func (o *Options) SetCommit(v string)
- func (o *Options) SetRef(v string)
- func (o *Options) SetURL(v string)
- type RefOptionBag
- type URLOptionBag
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 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 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
type Options ¶
type Options struct { git.ClientOptions stdopts.StandardContexts stdopts.PathFileSystem }
func (*Options) CachingFilesystem ¶
func (o *Options) CachingFilesystem() (vfs.FileSystem, func() error, error)
func (*Options) ConfigureAuthMethod ¶
type RefOptionBag ¶
type RefOptionBag interface {
SetRef(v string)
}
type URLOptionBag ¶
type URLOptionBag interface {
SetURL(v string)
}
Click to show internal directories.
Click to hide internal directories.