maven

package
v0.0.0-...-877fc11 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

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 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
	// Classifier defines the classifier of the maven file coordinates
	Classifier *string
	// Extension defines the extension of the maven file coordinates
	Extension *string
}

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