util

package
v0.11.6 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2023 License: Apache-2.0 Imports: 9 Imported by: 17

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadDir

func ReadDir(ctx context.Context, mount snapshot.Mountable, req ReadDirRequest) ([]*fstypes.Stat, error)

func ReadFile

func ReadFile(ctx context.Context, mount snapshot.Mountable, req ReadRequest) ([]byte, error)

func StatFile

func StatFile(ctx context.Context, mount snapshot.Mountable, path string) (*fstypes.Stat, error)

Types

type FileRange

type FileRange struct {
	Offset int
	Length int
}

type ReadDirRequest

type ReadDirRequest struct {
	Path           string
	IncludePattern string
}

type ReadRequest

type ReadRequest struct {
	Filename string
	Range    *FileRange
}

Jump to

Keyboard shortcuts

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