Documentation
¶
Index ¶
- Constants
- func Access[M any, P compdesc.ArtifactMetaPointer[M]](ctx ocm.Context, meta P, repo, pkg, version string, opts ...Option) cpi.ArtifactAccess[M]
- func ResourceAccess(ctx ocm.Context, meta *ocm.ResourceMeta, repo, pkg, version string, ...) cpi.ResourceAccess
- func SourceAccess(ctx ocm.Context, meta *ocm.SourceMeta, repo, pkg, version string, ...) cpi.SourceAccess
- type Option
- func WithCachingContext(cachectx datacontext.Context) Option
- func WithCachingFileSystem(fs vfs.FileSystem) Option
- func WithCachingPath(p string) Option
- func WithCredentialContext(credctx credentials.ContextProvider) Option
- func WithCredentials(c credentials.Credentials) Option
- func WithDataContext(ctx datacontext.Context) 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 WithPathFileSystem(fs vfs.FileSystem) Option
- type Options
Constants ¶
View Source
const TYPE = resourcetypes.NPM_PACKAGE
Variables ¶
This section is empty.
Functions ¶
func Access ¶
func Access[M any, P compdesc.ArtifactMetaPointer[M]](ctx ocm.Context, meta P, repo, pkg, version string, opts ...Option) cpi.ArtifactAccess[M]
func ResourceAccess ¶
func ResourceAccess(ctx ocm.Context, meta *ocm.ResourceMeta, repo, pkg, version string, opts ...Option) cpi.ResourceAccess
func SourceAccess ¶
func SourceAccess(ctx ocm.Context, meta *ocm.SourceMeta, repo, pkg, version string, 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 WithCredentialContext ¶
func WithCredentialContext(credctx credentials.ContextProvider) Option
func WithCredentials ¶
func WithCredentials(c credentials.Credentials) Option
func WithDataContext ¶
func WithDataContext(ctx datacontext.Context) Option
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 WithPathFileSystem ¶
func WithPathFileSystem(fs vfs.FileSystem) Option
Click to show internal directories.
Click to hide internal directories.