Documentation ¶
Index ¶
- func BlobAccess(repo *maven.Repository, groupId, artifactId, version string, opts ...Option) (bpi.BlobAccess, error)
- func BlobAccessForCoords(repo *maven.Repository, coords *maven.Coordinates, opts ...Option) (bpi.BlobAccess, error)
- func DataAccess(repo *maven.Repository, groupId, artifactId, version string, opts ...Option) (bpi.DataAccess, error)
- func GetCredentials(ctx credentials.ContextProvider, repo *Repository, groupId string) (maven.Credentials, error)
- func MapCredentials(creds credentials.Credentials) maven.Credentials
- func Provider(repo *maven.Repository, groupId, artifactId, version string, opts ...Option) bpi.BlobAccessProvider
- func ProviderCoords(repo *maven.Repository, coords *maven.Coordinates, opts ...Option) bpi.BlobAccessProvider
- type BlobMeta
- type ClassifierOptionBag
- type Coordinates
- type ExtensionOptionBag
- type MediaTypeOptionBag
- type Option
- func WithCachingContext(ctx datacontext.Context) Option
- func WithCachingFileSystem(fs vfs.FileSystem) Option
- func WithCachingPath(p string) Option
- func WithClassifier(c string) Option
- func WithCredentialContext(ctx credentials.ContextProvider) Option
- func WithCredentials(c credentials.Credentials) Option
- func WithDataContext(ctx datacontext.ContextProvider) Option
- func WithExtension(e string) Option
- func WithLoggingContext(ctx logging.ContextProvider) Option
- func WithMediaType(c string) Option
- func WithOptionalClassifier(c *string) Option
- func WithOptionalExtension(e *string) Option
- func WithOptionalMediaType(c *string) Option
- type Options
- func (o *Options) ApplyTo(opts *Options)
- func (o *Options) Cache() *tmpcache.Attribute
- func (o *Options) GetCredentials(repo *maven.Repository, groupId string) (maven.Credentials, error)
- func (o *Options) Logger(keyValuePairs ...interface{}) logging.Logger
- func (o *Options) SetClassifier(v string)
- func (o *Options) SetDataContext(ctx datacontext.Context)
- func (o *Options) SetExtension(v string)
- func (o *Options) SetMediaType(v string)
- type Repository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BlobAccess ¶
func BlobAccess(repo *maven.Repository, groupId, artifactId, version string, opts ...Option) (bpi.BlobAccess, error)
func BlobAccessForCoords ¶
func BlobAccessForCoords(repo *maven.Repository, coords *maven.Coordinates, opts ...Option) (bpi.BlobAccess, error)
func DataAccess ¶
func DataAccess(repo *maven.Repository, groupId, artifactId, version string, opts ...Option) (bpi.DataAccess, error)
func GetCredentials ¶
func GetCredentials(ctx credentials.ContextProvider, repo *Repository, groupId string) (maven.Credentials, error)
func MapCredentials ¶
func MapCredentials(creds credentials.Credentials) maven.Credentials
func Provider ¶
func Provider(repo *maven.Repository, groupId, artifactId, version string, opts ...Option) bpi.BlobAccessProvider
func ProviderCoords ¶
func ProviderCoords(repo *maven.Repository, coords *maven.Coordinates, opts ...Option) bpi.BlobAccessProvider
Types ¶
type ClassifierOptionBag ¶ added in v0.15.0
type ClassifierOptionBag interface {
SetClassifier(v string)
}
type Coordinates ¶
type Coordinates = maven.Coordinates
func NewCoordinates ¶
func NewCoordinates(groupId, artifactId, version string, opts ...Option) *Coordinates
type ExtensionOptionBag ¶ added in v0.15.0
type ExtensionOptionBag interface {
SetExtension(v string)
}
type MediaTypeOptionBag ¶ added in v0.16.0
type MediaTypeOptionBag interface {
SetMediaType(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 WithCachingPath ¶
func WithClassifier ¶
func WithCredentialContext ¶
func WithCredentialContext(ctx credentials.ContextProvider) Option
func WithCredentials ¶
func WithCredentials(c credentials.Credentials) Option
func WithDataContext ¶ added in v0.15.0
func WithDataContext(ctx datacontext.ContextProvider) Option
func WithExtension ¶
func WithLoggingContext ¶
func WithLoggingContext(ctx logging.ContextProvider) Option
func WithMediaType ¶ added in v0.16.0
func WithOptionalClassifier ¶
func WithOptionalExtension ¶
func WithOptionalMediaType ¶ added in v0.16.0
type Options ¶
type Options struct { stdopts.StandardContexts maven.FileCoordinates }
func (*Options) GetCredentials ¶
func (o *Options) GetCredentials(repo *maven.Repository, groupId string) (maven.Credentials, error)
func (*Options) SetClassifier ¶ added in v0.15.0
func (*Options) SetDataContext ¶ added in v0.15.0
func (o *Options) SetDataContext(ctx datacontext.Context)
func (*Options) SetExtension ¶ added in v0.15.0
func (*Options) SetMediaType ¶ added in v0.16.0
type Repository ¶
type Repository = maven.Repository
func NewFileRepository ¶
func NewFileRepository(path string, fss ...vfs.FileSystem) *Repository
func NewUrlRepository ¶
func NewUrlRepository(repoUrl string, fss ...vfs.FileSystem) (*Repository, error)
Click to show internal directories.
Click to hide internal directories.