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.
Click to show internal directories.
Click to hide internal directories.