dirtreeblob

package
v0.0.0-...-877fc11 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: Apache-2.0 Imports: 9 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, 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 WithCompressWithGzip(b ...bool) Option

func WithExcludeFiles

func WithExcludeFiles(files []string) Option

func WithFileSystem

func WithFileSystem(fs vfs.FileSystem) Option
func WithFollowSymlinks(b ...bool) Option

func WithGlobalAccess

func WithGlobalAccess(a cpi.AccessSpec) Option

func WithHint

func WithHint(h string) Option

func WithIncludeFiles

func WithIncludeFiles(files []string) Option

func WithPreserveDir

func WithPreserveDir(b ...bool) 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