file

package
v0.0.0-...-7229ba2 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2020 License: BSD-2-Clause Imports: 9 Imported by: 0

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.

Jump to

Keyboard shortcuts

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