mount

package
v0.0.0-...-ab16c52 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FSSnap

type FSSnap interface {
	Open(ctx context.Context, path string) (*manifest.Metadata, *streams.Stream, error)
	HasPrefix(ctx context.Context, prefix string) (exists bool, err error)
	List(ctx context.Context, prefix string, recursive bool,
		cb func(ctx context.Context, entry *session.ListEntry) error) error
}

func AsyncFSSnap

func AsyncFSSnap(ctx context.Context, constructor func(context.Context) (FSSnap, error)) FSSnap

type Session

type Session struct {
	// contains filtered or unexported fields
}

func Mount

func Mount(ctx context.Context, snap FSSnap, target string, maxReadahead int) (
	*Session, error)

func (*Session) Close

func (s *Session) Close() error

func (*Session) Serve

func (s *Session) Serve() error

Jump to

Keyboard shortcuts

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