filesystem

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultRootPath = "/"

Variables

This section is empty.

Functions

This section is empty.

Types

type ContextFilesystem

type ContextFilesystem struct {
	afero.Fs
	RootPath string
}

ContextFilesystem is an afero fs extension

func Join

func Join(forceOverride bool, filesystem ...*ContextFilesystem) (*ContextFilesystem, error)

Join create a new ContextFilesystem joining the input filesystems content

func NewContextFilesystem

func NewContextFilesystem(fs afero.Fs) *ContextFilesystem

func (*ContextFilesystem) Tar

func (f *ContextFilesystem) Tar() (io.Reader, error)

Tar return an io.Reader with ContextFilesystem archived

Jump to

Keyboard shortcuts

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