Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultPerm os.FileMode = 0740
)

Functions

This section is empty.

Types

type F

type F struct {
	Path    string
	Mode    os.FileMode
	IsDir   bool // IsDir ensures the resource is a directory.
	Content []byte
	Owner   string
	Group   string
}

func (*F) Ensure

func (f *F) Ensure() error

    Ensure writes the file out onto the disk.

    func (*F) Is

    func (f *F) Is() bool

      Is will check if the file resource exists.

      Source Files