Added support for the encoding key in write_files

Supported encodings are base64, gzip, and base64 encoded gzip
This commit is contained in:
cnelson
2014-12-09 08:10:23 -08:00
parent 9c3cd9e69c
commit 112ba1e31f
4 changed files with 168 additions and 7 deletions

View File

@@ -17,7 +17,7 @@
package config
type File struct {
Encoding string `yaml:"-"`
Encoding string `yaml:"encoding" valid:"base64,b64,gz,gzip,gz+base64,gzip+base64,gz+b64,gzip+b64"`
Content string `yaml:"content"`
Owner string `yaml:"owner"`
Path string `yaml:"path"`