httpfs

package
v1.45.0 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2021 License: MIT, BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFileSystemPath

func NewFileSystemPath(allowedPaths []string, chrootPath string) (http.FileSystem, error)

NewFileSystemPath creates a new fileSystemPaths that can be used to register a file:// protocol with an http.Transport. When the daemon runs inside a chroot we need to strip chrootPath out of each of the allowedPaths so that we are able to find the file correctly inside the chroot. When Open is called, the same chrootPath will be stripped out of the full filepath.

Types

This section is empty.

Jump to

Keyboard shortcuts

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