maven

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

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 BlobMeta

type BlobMeta = maven.FileMeta

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 WithCachingPath(p string) Option

func WithClassifier

func WithClassifier(c string) Option

func WithCredentialContext

func WithCredentialContext(ctx credentials.ContextProvider) Option

func WithCredentials

func WithCredentials(c credentials.Credentials) Option

func WithExtension

func WithExtension(e string) Option

func WithLoggingContext

func WithLoggingContext(ctx logging.ContextProvider) Option

func WithOptionalClassifier

func WithOptionalClassifier(c *string) Option

func WithOptionalExtension

func WithOptionalExtension(e *string) Option

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

func (o *Options) ApplyTo(opts *Options)

func (*Options) Cache

func (o *Options) Cache() *tmpcache.Attribute

func (*Options) GetCredentials

func (o *Options) GetCredentials(repo *maven.Repository, groupId string) (maven.Credentials, error)

func (*Options) Logger

func (o *Options) Logger(keyValuePairs ...interface{}) logging.Logger

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL