Documentation ¶
Index ¶
- func BlobAccessForMaven(repo *maven.Repository, groupId, artifactId, version string, opts ...Option) (blobaccess.BlobAccess, error)
- func BlobAccessForMavenCoords(repo *maven.Repository, coords *maven.Coordinates, opts ...Option) (blobaccess.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 DataAccessForMaven(repo *maven.Repository, groupId, artifactId, version string, opts ...Option) (blobaccess.DataAccess, error)
- func GetCredentials(ctx credentials.ContextProvider, repo *Repository, groupId string) (maven.Credentials, error)
- func MapCredentials(creds credentials.Credentials) maven.Credentials
- 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 BlobAccessForMaven ¶
func BlobAccessForMaven(repo *maven.Repository, groupId, artifactId, version string, opts ...Option) (blobaccess.BlobAccess, error)
func BlobAccessForMavenCoords ¶
func BlobAccessForMavenCoords(repo *maven.Repository, coords *maven.Coordinates, opts ...Option) (blobaccess.BlobAccess, error)
func BlobAccessProviderForMaven ¶
func BlobAccessProviderForMaven(repo *maven.Repository, groupId, artifactId, version string, opts ...Option) bpi.BlobAccessProvider
func BlobAccessProviderForMavenCoords ¶
func BlobAccessProviderForMavenCoords(repo *maven.Repository, coords *maven.Coordinates, opts ...Option) bpi.BlobAccessProvider
func DataAccessForMaven ¶
func DataAccessForMaven(repo *maven.Repository, groupId, artifactId, version string, opts ...Option) (blobaccess.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
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 // Classifier defines the classifier of the maven file coordinates Classifier *string // Extension defines the extension of the maven file coordinates Extension *string }
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)
Click to show internal directories.
Click to hide internal directories.