writers

package
v3.2.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PathAndParents

func PathAndParents(path string) ([]string, error)

PathAndParents takes an absolute path, e.g. /a/b/c and returns it along with its parents, ordered from root to path, e.g. /, /a, /a/b, /a/b/c

Types

type Writer

type Writer interface {
	Close() error
	MkdirAll(path string, perm os.FileMode) error
	WriteFile(path string, b []byte, perm os.FileMode) error
}

func NewFilesystemWriter

func NewFilesystemWriter() Writer

func NewTarWriter

func NewTarWriter(w io.Writer) Writer

Jump to

Keyboard shortcuts

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