fs

package module
v0.0.0-...-2cb61d9 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2017 License: MIT Imports: 9 Imported by: 1

README

#FS GoDoc Package fs provides a source and sink stage for Gonzo to read and write files from filesystem.

Documentation

Overview

Package fs provides filesystem based Stages for Gonzo.

Index

Constants

This section is empty.

Variables

View Source
var ErrIsDir = errors.New("path is a directory")

ErrIsDir is returned when a Directory is based where a file is expected.

Functions

func Copy

func Copy(dst string, sources ...string) kargar.Action

func Dest

func Dest(dst string) gonzo.Stage

Dest writes the files from the input channel to the dst folder and closes the files. It never returns Files.

func Read

func Read(path string) (gonzo.File, error)

Read is a simple helper function that opens the file from the given path and returns a pointer to a gonzo.File or an error.

func Src

func Src(ctx context.Context, globs ...string) gonzo.Pipe

Src returns a channel of gonzo.Files that match the provided patterns. TODO: ADD support for prefix to avoid all the util.Trims

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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