aferox

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: MIT Imports: 17 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContinueOnError

func ContinueOnError(options *iterOptions)

func Copy

func Copy(src, dest afero.Fs) error

func Fold

func Fold[T any](fsys afero.Fs, root string, folder FoldFunc[T], initial T) (acc T, err error)

func FromContext

func FromContext(ctx context.Context) afero.Fs

func Iter

func Iter(fsys afero.Fs, root string, options ...IterOption) iter.Seq3[string, fs.FileInfo, error]

func NewDocker

func NewDocker(client client.ContainerAPIClient, container string) context.Fs

func NewWriter

func NewWriter(w io.Writer) afero.Fs

func OpenFirst

func OpenFirst(fsys afero.Fs, root string, options ...IterOption) (afero.File, error)

func OpenSingle

func OpenSingle(fsys afero.Fs, root string, options ...IterOption) (afero.File, error)

func SetContext

func SetContext(fs afero.Fs, ctx context.Context) error

func SkipDirs

func SkipDirs(options *iterOptions)

func StatFirst

func StatFirst(fsys afero.Fs, root string, options ...IterOption) (fs.FileInfo, error)

func StatSingle

func StatSingle(fsys afero.Fs, root string, options ...IterOption) (fs.FileInfo, error)

Types

type Docker

type Docker = docker.Fs

type ErrFilter

type ErrFilter func(error) error

type FoldFunc

type FoldFunc[T any] func(string, fs.FileInfo, T, error) (T, error)

type GitHub

type GitHub = github.Fs

type GitHubRelease

type GitHubRelease = release.Fs

type GitHubRepository

type GitHubRepository = repository.Fs

type GitHubRepositoryContent

type GitHubRepositoryContent = content.Fs

type GitHubUser

type GitHubUser = user.Fs

type IterOption

type IterOption func(*iterOptions)

func FilterErrors

func FilterErrors(filter ErrFilter) IterOption

type Writer

type Writer = writer.Fs

Jump to

Keyboard shortcuts

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