package util

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

Index

Functions

func ReadDir

func ReadDir(ctx context.Context, ref cache.ImmutableRef, req ReadDirRequest) ([]*fstypes.Stat, error)

func ReadFile

func ReadFile(ctx context.Context, ref cache.ImmutableRef, req ReadRequest) ([]byte, error)

func StatFile

func StatFile(ctx context.Context, ref cache.ImmutableRef, 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.7.0-rc1
Published
Mar 12, 2020
Platform
js/wasm
Imports
11 packages
Last checked
2 seconds ago

Tools for package owners.