context

package
v0.1.0-beta.4 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

func Copy(dst, src afero.Fs) error

Copy copies src afero.Fs into dst.

func CopyFile

func CopyFile(dst, src afero.Fs, name string, stat iofs.FileMode) (int64, error)

CopyFile copy a file from src to dst, keeping the same file name and path.

Types

type Context

type Context struct {
	// contains filtered or unexported fields
}

func FromArgs

func FromArgs(args []string) (*Context, error)

func New

func New() *Context

func (*Context) Add

func (c *Context) Add(fs afero.Fs) error

Add copies the content of fs into this Context. The content of fs takes priority if there is a conflict.

func (*Context) GetAferoFS

func (c *Context) GetAferoFS() afero.Fs

GetAferoFS returns the uderlying afero.Fs of this context.

func (*Context) GetFS

func (c *Context) GetFS() iofs.FS

GetFS returns the standard fs.FS underlying filesystem. The returned filesystem is read only.

Jump to

Keyboard shortcuts

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