Documentation ¶
Index ¶
- Constants
- func Access[M any, P compdesc.ArtifactMetaPointer[M]](ctx ocm.Context, meta P, path string, opts ...Option) cpi.ArtifactAccess[M]
- func ResourceAccess(ctx ocm.Context, meta *cpi.ResourceMeta, path string, opts ...Option) cpi.ResourceAccess
- func SourceAccess(ctx ocm.Context, meta *cpi.SourceMeta, path string, opts ...Option) cpi.SourceAccess
- type Option
- func WithCompressWithGzip(b ...bool) Option
- func WithExcludeFiles(files []string) Option
- func WithFileSystem(fs vfs.FileSystem) Option
- func WithFollowSymlinks(b ...bool) Option
- func WithGlobalAccess(a cpi.AccessSpec) Option
- func WithHint(h string) Option
- func WithIncludeFiles(files []string) Option
- func WithPreserveDir(b ...bool) Option
- type Options
Constants ¶
View Source
const TYPE = resourcetypes.DIRECTORY_TREE
Variables ¶
This section is empty.
Functions ¶
func Access ¶
func Access[M any, P compdesc.ArtifactMetaPointer[M]](ctx ocm.Context, meta P, path string, opts ...Option) cpi.ArtifactAccess[M]
func ResourceAccess ¶
func ResourceAccess(ctx ocm.Context, meta *cpi.ResourceMeta, path string, opts ...Option) cpi.ResourceAccess
func SourceAccess ¶
func SourceAccess(ctx ocm.Context, meta *cpi.SourceMeta, path string, opts ...Option) cpi.SourceAccess
Types ¶
type Option ¶
type Option = optionutils.Option[*Options]
func WithCompressWithGzip ¶
func WithExcludeFiles ¶
func WithFileSystem ¶
func WithFileSystem(fs vfs.FileSystem) Option
func WithFollowSymlinks ¶
func WithGlobalAccess ¶
func WithGlobalAccess(a cpi.AccessSpec) Option
func WithIncludeFiles ¶
func WithPreserveDir ¶
Click to show internal directories.
Click to hide internal directories.