Documentation ¶
Index ¶
- Constants
- func Access[M any, P compdesc.ArtifactMetaPointer[M]](ctx ocm.Context, meta P, repo *maven.Repository, ...) cpi.ArtifactAccess[M]
- func ResourceAccess(ctx ocm.Context, meta *ocm.ResourceMeta, repo *maven.Repository, ...) cpi.ResourceAccess
- func ResourceAccessForMavenCoords(ctx ocm.Context, meta *ocm.ResourceMeta, repo *maven.Repository, ...) cpi.ResourceAccess
- func SourceAccess(ctx ocm.Context, meta *ocm.SourceMeta, repo *maven.Repository, ...) cpi.SourceAccess
- func SourceAccessForMavenCoords(ctx ocm.Context, meta *ocm.SourceMeta, repo *maven.Repository, ...) cpi.SourceAccess
- type Option
- func WithCachingContext(cachectx datacontext.Context) Option
- func WithCachingFileSystem(fs vfs.FileSystem) Option
- func WithCachingPath(p string) Option
- func WithClassifier(c string) Option
- func WithCredentialContext(credctx credentials.ContextProvider) Option
- func WithCredentials(c credentials.Credentials) Option
- func WithExtension(e string) Option
- func WithGlobalAccess(a cpi.AccessSpec) Option
- func WithHint(h string) Option
- func WithHintForCoords(coords *maven.Coordinates) Option
- func WithLoggingContext(logctx logging.ContextProvider) Option
- func WithOptionalClassifier(c *string) Option
- func WithOptionalExtension(e *string) Option
- type Options
Constants ¶
View Source
const TYPE = resourcetypes.MAVEN_PACKAGE
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 WithClassifier ¶
func WithCredentialContext ¶
func WithCredentialContext(credctx credentials.ContextProvider) Option
func WithCredentials ¶
func WithCredentials(c credentials.Credentials) Option
func WithExtension ¶
func WithGlobalAccess ¶
func WithGlobalAccess(a cpi.AccessSpec) Option
func WithHintForCoords ¶
func WithHintForCoords(coords *maven.Coordinates) Option
func WithLoggingContext ¶
func WithLoggingContext(logctx logging.ContextProvider) Option
func WithOptionalClassifier ¶
func WithOptionalExtension ¶
Click to show internal directories.
Click to hide internal directories.