fs

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigFS

type ConfigFS struct {
	FS billy.Filesystem
}

ConfigFS configuration filesystem struct

func NewConfigFS

func NewConfigFS() *ConfigFS

NewConfigFS returns a ConfigFS object with the default FS

func (*ConfigFS) GetCacheFile

func (c *ConfigFS) GetCacheFile() (billy.File, error)

GetCacheFile gets the cache file from the config folder, if file doesn't exists it attempts to create it

func (*ConfigFS) SetTarget

func (c *ConfigFS) SetTarget(target string) error

SetTarget creates a target file with the directory to move to

func (*ConfigFS) Setup

func (c *ConfigFS) Setup() error

Setup runs the initial hermes setup

Jump to

Keyboard shortcuts

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