mavenblob

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

Variables

This section is empty.

Functions

func Access

func Access[M any, P compdesc.ArtifactMetaPointer[M]](ctx ocm.Context, meta P, repo *maven.Repository, groupId, artifactId, version string, opts ...Option) cpi.ArtifactAccess[M]

func ResourceAccess

func ResourceAccess(ctx ocm.Context, meta *ocm.ResourceMeta, repo *maven.Repository, groupId, artifactId, version string, opts ...Option) cpi.ResourceAccess

func ResourceAccessForMavenCoords

func ResourceAccessForMavenCoords(ctx ocm.Context, meta *ocm.ResourceMeta, repo *maven.Repository, coords *maven.Coordinates, opts ...Option) cpi.ResourceAccess

func SourceAccess

func SourceAccess(ctx ocm.Context, meta *ocm.SourceMeta, repo *maven.Repository, groupId, artifactId, version string, opts ...Option) cpi.SourceAccess

func SourceAccessForMavenCoords

func SourceAccessForMavenCoords(ctx ocm.Context, meta *ocm.SourceMeta, repo *maven.Repository, coords *maven.Coordinates, opts ...Option) cpi.SourceAccess

Types

type Option

type Option = optionutils.Option[*Options]

func WithCachingContext

func WithCachingContext(cachectx 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(credctx credentials.ContextProvider) Option

func WithCredentials

func WithCredentials(c credentials.Credentials) Option

func WithExtension

func WithExtension(e string) Option

func WithGlobalAccess

func WithGlobalAccess(a cpi.AccessSpec) Option

func WithHint

func WithHint(h string) Option

func WithHintForCoords

func WithHintForCoords(coords *maven.Coordinates) Option

func WithLoggingContext

func WithLoggingContext(logctx logging.ContextProvider) Option

func WithOptionalClassifier

func WithOptionalClassifier(c *string) Option

func WithOptionalExtension

func WithOptionalExtension(e *string) Option

type Options

type Options struct {
	api.Options
	Blob base.Options
}

func (*Options) Apply

func (o *Options) Apply(opts ...Option)

func (*Options) ApplyTo

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

Jump to

Keyboard shortcuts

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