maven

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 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

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 BlobMeta

type BlobMeta = maven.FileMeta

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 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 WithDataContext added in v0.15.0

func WithDataContext(ctx datacontext.ContextProvider) Option

func WithExtension

func WithExtension(e string) Option

func WithLoggingContext

func WithLoggingContext(ctx logging.ContextProvider) Option

func WithMediaType added in v0.16.0

func WithMediaType(c string) Option

func WithOptionalClassifier

func WithOptionalClassifier(c *string) Option

func WithOptionalExtension

func WithOptionalExtension(e *string) Option

func WithOptionalMediaType added in v0.16.0

func WithOptionalMediaType(c *string) Option

type Options

type Options struct {
	stdopts.StandardContexts

	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

func (*Options) SetClassifier added in v0.15.0

func (o *Options) SetClassifier(v string)

func (*Options) SetDataContext added in v0.15.0

func (o *Options) SetDataContext(ctx datacontext.Context)

func (*Options) SetExtension added in v0.15.0

func (o *Options) SetExtension(v string)

func (*Options) SetMediaType added in v0.16.0

func (o *Options) SetMediaType(v string)

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