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 BlobAccessForMaven(repo *maven.Repository, groupId, artifactId, version string, opts ...Option) (bpi.BlobAccess, error)
- func BlobAccessForMavenCoords(repo *maven.Repository, coords *maven.Coordinates, opts ...Option) (bpi.BlobAccess, error)
- func BlobAccessProviderForMaven(repo *maven.Repository, groupId, artifactId, version string, opts ...Option) bpi.BlobAccessProvider
- func BlobAccessProviderForMavenCoords(repo *maven.Repository, coords *maven.Coordinates, opts ...Option) bpi.BlobAccessProvider
- func DataAccess(repo *maven.Repository, groupId, artifactId, version string, opts ...Option) (bpi.DataAccess, error)
- func DataAccessForMaven(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 Coordinates
- 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 WithExtension(e string) Option
- func WithLoggingContext(ctx logging.ContextProvider) Option
- func WithOptionalClassifier(c *string) Option
- func WithOptionalExtension(e *string) Option
- type Options
- type Repository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BlobAccess ¶ added in v0.12.0
func BlobAccess(repo *maven.Repository, groupId, artifactId, version string, opts ...Option) (bpi.BlobAccess, error)
func BlobAccessForCoords ¶ added in v0.12.0
func BlobAccessForCoords(repo *maven.Repository, coords *maven.Coordinates, opts ...Option) (bpi.BlobAccess, error)
func BlobAccessForMaven ¶
func BlobAccessForMaven(repo *maven.Repository, groupId, artifactId, version string, opts ...Option) (bpi.BlobAccess, error)
BlobAccessForMaven returns a BlobAccess for the Maven artifact with the given coordinates. Deprecated: use BlobAccess.
func BlobAccessForMavenCoords ¶
func BlobAccessForMavenCoords(repo *maven.Repository, coords *maven.Coordinates, opts ...Option) (bpi.BlobAccess, error)
BlobAccessForMavenCoords returns a BlobAccessProvider for the Maven artifact with the given coordinates. Deprecated: use BlobAccessForCoords.
func BlobAccessProviderForMaven ¶
func BlobAccessProviderForMaven(repo *maven.Repository, groupId, artifactId, version string, opts ...Option) bpi.BlobAccessProvider
BlobAccessProviderForMaven returns a BlobAccessProvider for the Maven artifact with the given coordinates. Deprecated: use Provider.
func BlobAccessProviderForMavenCoords ¶
func BlobAccessProviderForMavenCoords(repo *maven.Repository, coords *maven.Coordinates, opts ...Option) bpi.BlobAccessProvider
BlobAccessProviderForMavenCoords returns a BlobAccessProvider for the Maven artifact with the given coordinates. Deprecated: use ProviderCoords.
func DataAccess ¶ added in v0.12.0
func DataAccess(repo *maven.Repository, groupId, artifactId, version string, opts ...Option) (bpi.DataAccess, error)
func DataAccessForMaven ¶
func DataAccessForMaven(repo *maven.Repository, groupId, artifactId, version string, opts ...Option) (bpi.DataAccess, error)
DataAccessForMaven returns a DataAccess for the Maven artifact with the given coordinates. Deprecated: use DataAccess.
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 ¶ added in v0.12.0
func Provider(repo *maven.Repository, groupId, artifactId, version string, opts ...Option) bpi.BlobAccessProvider
func ProviderCoords ¶ added in v0.12.0
func ProviderCoords(repo *maven.Repository, coords *maven.Coordinates, opts ...Option) bpi.BlobAccessProvider
Types ¶
type Coordinates ¶
type Coordinates = maven.Coordinates
func NewCoordinates ¶
func NewCoordinates(groupId, artifactId, version string, opts ...Option) *Coordinates
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 WithExtension ¶
func WithLoggingContext ¶
func WithLoggingContext(ctx logging.ContextProvider) Option
func WithOptionalClassifier ¶
func WithOptionalExtension ¶
type Options ¶
type Options struct { CredentialContext credentials.Context LoggingContext logging.Context CachingContext datacontext.Context CachingFileSystem vfs.FileSystem CachingPath string // Credentials allows to pass credentials and certificates for the http communication Credentials credentials.Credentials maven.FileCoordinates }
func (*Options) GetCredentials ¶
func (o *Options) GetCredentials(repo *maven.Repository, groupId string) (maven.Credentials, error)
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)