file: refactor config

- Seperate the config from Permissions()
- Add YAML tags for the fields
This commit is contained in:
Alex Crawford
2014-09-21 19:22:27 -07:00
parent 1fbbaaec19
commit 85b8d804c8
16 changed files with 92 additions and 70 deletions

9
config/file.go Normal file
View File

@@ -0,0 +1,9 @@
package config
type File struct {
Encoding string `yaml:"-"`
Content string `yaml:"content"`
Owner string `yaml:"owner"`
Path string `yaml:"path"`
RawFilePermissions string `yaml:"permissions"`
}