package util

import "github.com/moby/buildkit/cache/util"

Index

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
}

Source Files

fsutil.go

Version
v0.19.0-rc2
Published
Jan 15, 2025
Platform
js/wasm
Imports
9 packages
Last checked
2 minutes ago

Tools for package owners.